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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/unix/Makefile
          +++ new/usr/src/uts/i86pc/unix/Makefile
↓ open down ↓ 10 lines elided ↑ open up ↑
  11   11  # and limitations under the License.
  12   12  #
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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      -
  22      -#
  23   21  # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   22  # Use is subject to license terms.
  25   23  #
  26      -#       This makefile drives the production of unix (and unix.o).
  27      -#
  28      -#       i86pc implementation architecture dependent
  29      -#
       24 +# Copyright (c) 2018, Joyent, Inc.
  30   25  
  31   26  #
  32   27  #       Path to the base of the uts directory tree (usually /usr/src/uts).
  33   28  #
  34   29  UTSBASE = ../..
  35   30  
  36   31  #
  37   32  #       Define the module and object file sets.
  38   33  #
  39   34  UNIX            = unix
↓ open down ↓ 115 lines elided ↑ open up ↑
 155  150  CERRWARN        += -_gcc=-Wno-uninitialized
 156  151  CERRWARN        += -_gcc=-Wno-char-subscripts
 157  152  CERRWARN        += -_gcc=-Wno-unused-variable
 158  153  CERRWARN        += -_gcc=-Wno-unused-function
 159  154  CERRWARN        += -_gcc=-Wno-unused-label
 160  155  CERRWARN        += -_gcc=-Wno-type-limits
 161  156  CERRWARN        += -_gcc=-Wno-clobbered
 162  157  CERRWARN        += -_gcc=-Wno-empty-body
 163  158  CERRWARN        += -_gcc=-Wno-unused-value
 164  159  
      160 +# false positives
      161 +SMOFF += index_overflow
      162 +
      163 +# needs work
      164 +SMOFF += all_func_returns,deref_check,signed
      165 +
      166 +$(OBJS_DIR)/fmsmb.o := SMOFF += indenting
      167 +$(OBJS_DIR)/zutil.o := SMOFF += indenting
      168 +$(OBJS_DIR)/bootrd_cpio.o := SMOFF += allocating_enough_data
      169 +
 165  170  # Ensure that lint sees 'struct cpu' containing a fully declared
 166  171  # embedded 'struct machcpu'
 167  172  #
 168  173  LINTFLAGS       += -D_MACHDEP -I../../i86pc
 169  174  
 170  175  #
 171  176  #       Default build targets.
 172  177  #
 173  178  .KEEP_STATE:
 174  179  
↓ open down ↓ 86 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX