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

@@ -20,11 +20,12 @@
 #
 #
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# This makefile drives the production of the qlge driver kernel module.
+# Copyright (c) 2018, Joyent, Inc.
+
 #
 # Path to the base of the uts directory tree (usually /usr/src/uts).
 #
 UTSBASE         = ../..
 COMMON_BASE     = ../../../common

@@ -64,10 +65,13 @@
 C99LMODE=       -Xc99=%all
 
 CERRWARN        += -_gcc=-Wno-switch
 CERRWARN        += -_gcc=-Wno-uninitialized
 
+# needs work
+$(OBJS_DIR)/qlge.o := SMOFF += deref_check
+
 #
 #       Default build targets.
 #
 .KEEP_STATE: