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

@@ -22,10 +22,11 @@
 # uts/intel/procfs/Makefile
 #
 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 #       This makefile drives the production of the procfs file system
 #       kernel module.
 #

@@ -74,10 +75,19 @@
 LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
 
 CERRWARN        += -_gcc=-Wno-parentheses
 CERRWARN        += -_gcc=-Wno-switch
 CERRWARN        += -_gcc=-Wno-uninitialized
+
+# needs work
+$(OBJS_DIR)/prsubr.o := SMOFF += all_func_returns
+$(OBJS_DIR)/prcontrol.o := SMOFF += all_func_returns
+$(OBJS_DIR)/prioctl.o := SMOFF += signed
+
+# false positives
+$(OBJS_DIR)/prvnops.o := SMOFF += strcpy_overflow
+
 #
 #       Default build targets.
 #
 .KEEP_STATE: