Print this page
10077 usr/src/uts/ Makefile changes for smatch
@@ -20,17 +20,13 @@
#
#
# 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 gen_drv kernel
-# driver to testing hotplugging operations
-#
-
-#
# Path to the base of the uts directory tree (usually /usr/src/uts).
#
UTSBASE = ../..
#
@@ -62,10 +58,13 @@
#
LINTTAGS += -erroff=E_STATIC_UNUSED
CERRWARN += -_gcc=-Wno-unused-variable
+# needs work
+$(OBJS_DIR)/gen_drv.o := SMOFF += indenting,deref_check
+
#
# Default build targets.
#
.KEEP_STATE: