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

@@ -22,16 +22,11 @@
 # uts/i86pc/pcie/Makefile
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#
-#       This makefile drives the production of the kernel/misc/pcie module
-#       for PCI-E Error handling support in PCI-E nexus drivers.
-#
-#       i86pc implementation architecture dependent
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 #       Path to the base of the uts directory tree (usually /usr/src/uts).
 #
 UTSBASE = ../..

@@ -67,10 +62,13 @@
 CERRWARN        += -_gcc=-Wno-uninitialized
 CERRWARN        += -_gcc=-Wno-parentheses
 CERRWARN        += -_gcc=-Wno-unused-variable
 CERRWARN        += -_gcc=-Wno-unused-function # safe
 
+# needs work
+SMOFF += all_func_returns,deref_check
+
 #
 #       Default build targets.
 #
 .KEEP_STATE: