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

@@ -20,10 +20,12 @@
 #
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
+#
 # uts/intel/bpf/Makefile
 #
 #
 #       This makefile drives the production of the bpf driver 
 #       kernel module.

@@ -71,10 +73,13 @@
 LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW -erroff=E_BAD_PTR_CAST_ALIGN
 
 CERRWARN        += -_gcc=-Wno-unused-label
 CERRWARN        += -_gcc=-Wno-uninitialized
 
+# needs work
+$(OBJS_DIR)/bpf.o := SMOFF += all_func_returns
+
 #
 #       Default build targets.
 #
 .KEEP_STATE: