Print this page
10077 usr/src/uts/ Makefile changes for smatch
@@ -20,17 +20,11 @@
#
#
# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
-# uts/intel/igb/Makefile
-#
-# This makefile drives the production of the igb
-# network driver kernel module.
-#
-# intel architecture dependent
-#
+# Copyright (c) 2018, Joyent, Inc.
#
# Paths to the base of the uts directory trees
#
UTSBASE = ../..
@@ -56,10 +50,13 @@
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_cc=-erroff=E_STATEMENT_NOT_REACHED
+# needs work
+SMOFF += all_func_returns,indenting
+
CFLAGS += -I$(UTSBASE)/common/io/e1000api
CFLAGS += -I$(UTSBASE)/common/io/igb
#
# Define targets