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

@@ -19,10 +19,11 @@
 # CDDL HEADER END
 #
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 # uts/intel/mega_sas/Makefile
 #
 #       This makefile drives the production of the mega_sas driver kernel module.

@@ -61,10 +62,13 @@
 #
 LDFLAGS         += -dy -Nmisc/scsi
 
 CERRWARN        += -_gcc=-Wno-uninitialized
 
+# needs work
+$(OBJS_DIR)/megaraid_sas.o := SMOFF += snprintf_overflow,all_func_returns
+
 #
 #       Default build targets.
 #
 .KEEP_STATE: