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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/pcie/Makefile
          +++ new/usr/src/uts/i86pc/pcie/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/i86pc/pcie/Makefile
  23   23  #
  24   24  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  25   25  # Use is subject to license terms.
  26   26  #
  27      -#
  28      -#       This makefile drives the production of the kernel/misc/pcie module
  29      -#       for PCI-E Error handling support in PCI-E nexus drivers.
  30      -#
  31      -#       i86pc implementation architecture dependent
  32      -#
       27 +# Copyright (c) 2018, Joyent, Inc.
  33   28  
  34   29  #
  35   30  #       Path to the base of the uts directory tree (usually /usr/src/uts).
  36   31  #
  37   32  UTSBASE = ../..
  38   33  
  39   34  #
  40   35  #       Define the module and object file sets.
  41   36  #
  42   37  MODULE          = pcie
↓ open down ↓ 19 lines elided ↑ open up ↑
  62   57  ALL_TARGET      = $(BINARY)
  63   58  LINT_TARGET     = $(MODULE).lint
  64   59  INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  65   60  
  66   61  CERRWARN        += -_gcc=-Wno-unused-value
  67   62  CERRWARN        += -_gcc=-Wno-uninitialized
  68   63  CERRWARN        += -_gcc=-Wno-parentheses
  69   64  CERRWARN        += -_gcc=-Wno-unused-variable
  70   65  CERRWARN        += -_gcc=-Wno-unused-function # safe
  71   66  
       67 +# needs work
       68 +SMOFF += all_func_returns,deref_check
       69 +
  72   70  #
  73   71  #       Default build targets.
  74   72  #
  75   73  .KEEP_STATE:
  76   74  
  77   75  def:            $(DEF_DEPS)
  78   76  
  79   77  all:            $(ALL_DEPS)
  80   78  
  81   79  clean:          $(CLEAN_DEPS)
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX