Print this page
10077 usr/src/uts/ Makefile changes for smatch

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/ibtl/Makefile
          +++ new/usr/src/uts/intel/ibtl/Makefile
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
       25 +# Copyright (c) 2018, Joyent, Inc.
  25   26  
  26   27  #
  27      -#       This makefile drives the production of the ibtl kernel module.
  28      -#
  29      -#       intel architecture dependent
  30      -#
  31      -
  32      -#
  33   28  #       Path to the base of the uts directory tree (usually /usr/src/uts).
  34   29  #
  35   30  UTSBASE = ../..
  36   31  
  37   32  #
  38   33  #       Define the module and object file sets.
  39   34  #
  40   35  MODULE          = ibtl
  41   36  OBJECTS         = $(IBTL_OBJS:%=$(OBJS_DIR)/%)
  42   37  LINTS           = $(IBTL_OBJS:%.o=$(LINTS_DIR)/%.ln)
↓ open down ↓ 8 lines elided ↑ open up ↑
  51   46  #       Define targets
  52   47  #
  53   48  ALL_TARGET      = $(BINARY)
  54   49  LINT_TARGET     = $(MODULE).lint
  55   50  INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  56   51  
  57   52  #
  58   53  #       Overrides.
  59   54  #
  60   55  
  61      -# 
  62      -# lint pass one enforcement 
  63      -# 
       56 +#
       57 +# lint pass one enforcement
       58 +#
  64   59  CFLAGS += $(CCVERBOSE)
  65   60  
  66   61  #
  67   62  # For now, disable these lint checks; maintainers should endeavor
  68   63  # to investigate and remove these for maximum lint coverage.
  69   64  # Please do not carry these forward to new Makefiles.
  70   65  #
  71   66  LINTTAGS        += -erroff=E_SUSPICIOUS_COMPARISON
  72   67  LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  73   68  LINTTAGS        += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
  74   69  LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
  75   70  LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
  76   71  
  77   72  CERRWARN        += -_gcc=-Wno-type-limits
  78   73  CERRWARN        += -_gcc=-Wno-switch
  79   74  CERRWARN        += -_gcc=-Wno-uninitialized
  80   75  CERRWARN        += -_gcc=-Wno-parentheses
  81   76  CERRWARN        += -_gcc=-Wno-unused-value
  82   77  
       78 +# needs work
       79 +$(OBJS_DIR)/ibtl_impl.o := SMOFF += precedence
       80 +
  83   81  #
  84   82  #       Default build targets.
  85   83  #
  86   84  .KEEP_STATE:
  87   85  
  88   86  def:            $(DEF_DEPS)
  89   87  
  90   88  all:            $(ALL_DEPS)
  91   89  
  92   90  clean:          $(CLEAN_DEPS)
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX