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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/e1000g/Makefile
          +++ new/usr/src/uts/intel/e1000g/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 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25      -# uts/intel/e1000g/Makefile
  26      -#
  27      -#       This makefile drives the production of the iprb
  28      -#       network driver kernel module.
  29      -#
  30      -#       intel architecture dependent
  31      -#
       25 +# Copyright (c) 2018, Joyent, Inc.
  32   26  
  33   27  #
  34   28  #       Paths to the base of the uts directory trees
  35   29  #
  36   30  UTSBASE = ../..
  37   31  
  38   32  #
  39   33  #       Define the module and object file sets.
  40   34  #
  41   35  MODULE          = e1000g
↓ open down ↓ 22 lines elided ↑ open up ↑
  64   58  
  65   59  CFLAGS += $(CFLAGS_CPP_COMMENTS)
  66   60  
  67   61  CERRWARN        += -_gcc=-Wno-uninitialized
  68   62  CERRWARN        += -_gcc=-Wno-parentheses
  69   63  CERRWARN        += -_gcc=-Wno-switch
  70   64  CERRWARN        += -_gcc=-Wno-unused-label
  71   65  CERRWARN        += -_gcc=-Wno-unused-variable
  72   66  CERRWARN        += -_cc=-erroff=E_STATEMENT_NOT_REACHED
  73   67  
       68 +SMOFF += all_func_returns,indenting,shift_to_zero
       69 +
  74   70  LINTTAGS        += -erroff=E_CONSTANT_CONDITION
  75   71  
  76   72  #
  77   73  #       Define targets
  78   74  #
  79   75  ALL_TARGET      = $(BINARY) $(CONFMOD)
  80   76  LINT_TARGET     = $(MODULE).lint
  81   77  INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  82   78  
  83   79  #
↓ open down ↓ 30 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX