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

@@ -23,10 +23,11 @@
 # uts/intel/strategy/Makefile
 #
 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 #       This makefile drives the production of the strategy "misc"
 #       kernel module.
 #

@@ -51,10 +52,13 @@
 #
 include $(UTSBASE)/intel/Makefile.intel
 
 CERRWARN        += -_gcc=-Wno-parentheses
 
+# needs work
+$(OBJS_DIR)/strategy.o := SMOFF += all_func_returns
+
 #
 #       Define targets
 #
 ALL_TARGET      = $(BINARY)
 LINT_TARGET     = $(MODULE).lint