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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/zfs/Makefile
          +++ new/usr/src/uts/intel/zfs/Makefile
↓ open down ↓ 21 lines elided ↑ open up ↑
  22   22  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25   25  #       This makefile drives the production of the zfs file system
  26   26  #       kernel module.
  27   27  #
  28   28  # Copyright 2013 Saso Kiselkov. All rights reserved.
  29   29  #
  30   30  # Copyright (c) 2016 by Delphix. All rights reserved.
  31   31  #
       32 +# Copyright (c) 2018, Joyent, Inc.
  32   33  
  33   34  #
  34   35  #       Path to the base of the uts directory tree (usually /usr/src/uts).
  35   36  #
  36   37  UTSBASE = ../..
  37   38  
  38   39  ARCHDIR:sh = cd ..; basename `pwd`
  39   40  
  40   41  #
  41   42  #       Define the module and object file sets.
↓ open down ↓ 44 lines elided ↑ open up ↑
  86   87  LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
  87   88  LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
  88   89  
  89   90  CERRWARN        += -_gcc=-Wno-type-limits
  90   91  CERRWARN        += -_gcc=-Wno-switch
  91   92  CERRWARN        += -_gcc=-Wno-parentheses
  92   93  CERRWARN        += -_gcc=-Wno-unused-variable
  93   94  CERRWARN        += -_gcc=-Wno-unused-function
  94   95  CERRWARN        += -_gcc=-Wno-unused-label
  95   96  
       97 +# needs work
       98 +SMOFF += all_func_returns,indenting
       99 +$(OBJS_DIR)/llex.o := SMOFF += index_overflow
      100 +$(OBJS_DIR)/metaslab.o := SMOFF += no_if_block
      101 +$(OBJS_DIR)/zfs_vnops.o := SMOFF += signed
      102 +# needs work
      103 +$(OBJS_DIR)/zvol.o := SMOFF += deref_check,signed
      104 +
      105 +# false positives
      106 +$(OBJS_DIR)/zfs_ctldir.o := SMOFF += strcpy_overflow
      107 +$(OBJS_DIR)/zfs_ioctl.o := SMOFF += strcpy_overflow
      108 +
  96  109  #
  97  110  #       Default build targets.
  98  111  #
  99  112  .KEEP_STATE:
 100  113  
 101  114  def:            $(DEF_DEPS)
 102  115  
 103  116  all:            $(ALL_DEPS)
 104  117  
 105  118  clean:          $(CLEAN_DEPS)
↓ open down ↓ 18 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX