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

@@ -20,14 +20,13 @@
 #
 # uts/intel/hxge/Makefile
 #
 # Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
 #
-#       This makefile drives the production of the Sun
-#       10G hxge Ethernet leaf driver kernel module.
+# Copyright (c) 2018, Joyent, Inc.
+
 #
-#
 #       Path to the base of the uts directory tree (usually /usr/src/uts).
 #
 UTSBASE = ../..
 
 #

@@ -85,10 +84,12 @@
 CERRWARN        += -_gcc=-Wno-unused-label
 CERRWARN        += -_gcc=-Wno-switch
 CERRWARN        += -_gcc=-Wno-uninitialized
 CERRWARN        += -_gcc=-Wno-parentheses
 
+SMOFF += deref_check,logical_instead_of_bitwise
+
 #
 #       Driver depends on mac & IP
 #
 LDFLAGS         += -dy -N misc/mac -N drv/ip