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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/nsmb/Makefile
          +++ new/usr/src/uts/intel/nsmb/Makefile
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # uts/intel/nsmb/Makefile
  23   23  #
  24   24  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  25   25  # Use is subject to license terms.
  26   26  #
       27 +# Copyright (c) 2018, Joyent, Inc.
  27   28  
  28   29  #
  29   30  #       intel architecture dependent
  30   31  #
  31   32  
  32   33  #
  33   34  #       Path to the base of the uts directory tree (usually /usr/src/uts).
  34   35  #
  35   36  UTSBASE = ../..
  36   37  
↓ open down ↓ 55 lines elided ↑ open up ↑
  92   93  LDFLAGS         += -dy -Ncrypto/md4 -Ncrypto/md5 -Nmisc/tlimod
  93   94  
  94   95  # Until CR 4994570 is fixed...
  95   96  LINTTAGS        += -erroff=E_BAD_FORMAT_ARG_TYPE2
  96   97  
  97   98  # The mb_put/md_get functions are intentionally used with and without
  98   99  # return value checks, so filter those out like LGREP.2 does.
  99  100  LGREP.nsmb =    egrep -v ' ignored: (mb_init|mb_put|md_get)'
 100  101  LTAIL   +=      2>&1 | $(LGREP.2) | $(LGREP.nsmb) || true
 101  102  
      103 +# same for smatch
      104 +SMOFF += all_func_returns
      105 +
      106 +# needs work
      107 +SMOFF += signed,deref_check
      108 +
 102  109  #
 103  110  #       Default build targets.
 104  111  #
 105  112  .KEEP_STATE:
 106  113  
 107  114  def:            $(DEF_DEPS)
 108  115  
 109  116  all:            $(ALL_DEPS)
 110  117  
 111  118  clean:          $(CLEAN_DEPS)
↓ open down ↓ 25 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX