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

@@ -22,15 +22,11 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
 #
-# uts/intel/usb_ac/Makefile
-#
-#       This makefile drives the production of the usb_ac driver
-#       kernel module. Intel architecture dependent
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 
 #
 #       Path to the base of the uts directory tree (usually /usr/src/uts).
 #

@@ -66,10 +62,13 @@
 CERRWARN        += -_gcc=-Wno-switch
 CERRWARN        += -_gcc=-Wno-type-limits
 CERRWARN        += -_gcc=-Wno-unused-label
 CERRWARN        += -_gcc=-Wno-uninitialized
 
+# needs work
+$(OBJS_DIR)/usb_ac.o := SMOFF += deref_check,indenting,testing_index_after_use
+
 #
 # depends on misc/usba
 #
 LDFLAGS += -dy -Nmisc/usba -Ndrv/audio