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

@@ -22,10 +22,11 @@
 # uts/intel/nsmb/Makefile
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 #       intel architecture dependent
 #
 

@@ -97,10 +98,16 @@
 # The mb_put/md_get functions are intentionally used with and without
 # return value checks, so filter those out like LGREP.2 does.
 LGREP.nsmb =    egrep -v ' ignored: (mb_init|mb_put|md_get)'
 LTAIL   +=      2>&1 | $(LGREP.2) | $(LGREP.nsmb) || true
 
+# same for smatch
+SMOFF += all_func_returns
+
+# needs work
+SMOFF += signed,deref_check
+
 #
 #       Default build targets.
 #
 .KEEP_STATE: