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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/genunix/Makefile
          +++ new/usr/src/uts/intel/genunix/Makefile
↓ open down ↓ 15 lines elided ↑ open up ↑
  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  #
  23   23  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
       26 +# Copyright (c) 2018, Joyent, Inc.
  26   27  
  27   28  #
  28   29  #       This makefile drives the production of the generic
  29   30  #       unix kernel module.
  30   31  #
  31   32  #       x86 implementation architecture dependent
  32   33  #
  33   34  
  34   35  #
  35   36  #       Path to the base of the uts directory tree (usually /usr/src/uts).
↓ open down ↓ 67 lines elided ↑ open up ↑
 103  104  CERRWARN        += -_gcc=-Wno-unused-variable
 104  105  CERRWARN        += -_gcc=-Wno-unused-value
 105  106  CERRWARN        += -_gcc=-Wno-unused-function
 106  107  CERRWARN        += -_gcc=-Wno-parentheses
 107  108  CERRWARN        += -_gcc=-Wno-switch
 108  109  CERRWARN        += -_gcc=-Wno-type-limits
 109  110  CERRWARN        += -_gcc=-Wno-uninitialized
 110  111  CERRWARN        += -_gcc=-Wno-clobbered
 111  112  CERRWARN        += -_gcc=-Wno-empty-body
 112  113  
      114 +# false positives
      115 +SMOFF += index_overflow
      116 +$(OBJS_DIR)/seg_vn.o := SMOFF += deref_check
      117 +$(OBJS_DIR)/ddi_intr_irm.o := SMOFF += deref_check
      118 +
      119 +# need work still
      120 +SMOFF += signed,indenting,all_func_returns
      121 +$(OBJS_DIR)/clock_highres.o := SMOFF += signed_integer_overflow_check
      122 +$(OBJS_DIR)/evchannels.o := SMOFF += allocating_enough_data
      123 +$(OBJS_DIR)/klpd.o := SMOFF += cast_assign
      124 +$(OBJS_DIR)/lookup.o := SMOFF += strcpy_overflow
      125 +$(OBJS_DIR)/process.o := SMOFF += or_vs_and
      126 +$(OBJS_DIR)/sunpci.o := SMOFF += deref_check
      127 +$(OBJS_DIR)/timers.o := SMOFF += signed_integer_overflow_check
      128 +
      129 +# definitely wrong
      130 +$(OBJS_DIR)/acl_common.o := SMOFF += or_vs_and
      131 +
 113  132  #
 114  133  # Ensure that lint sees 'struct cpu' containing a fully declared
 115  134  # embedded 'struct machcpu'
 116  135  #
 117  136  LINTFLAGS       += -D_MACHDEP -I../../i86pc
 118  137  
 119  138  #
 120  139  #       Default build targets.
 121  140  #
 122  141  .KEEP_STATE:
↓ open down ↓ 45 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX