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

@@ -23,16 +23,11 @@
 # uts/intel/clone/Makefile
 #
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-#
-#       This makefile drives the production of the clone driver
-#
-#       intel implementation architecture dependent
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 #       Path to the base of the uts directory tree (usually /usr/src/uts).
 #
 UTSBASE = ../..

@@ -56,10 +51,13 @@
 #
 ALL_TARGET      = $(BINARY) $(SRC_CONFILE)
 LINT_TARGET     = $(MODULE).lint
 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
 
+# needs work
+$(OBJS_DIR)/clone.o := SMOFF += all_func_returns
+
 #
 #       Default build targets.
 #
 .KEEP_STATE: