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

@@ -22,12 +22,11 @@
 # uts/intel/audioemu10k/Makefile
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#       This makefile drives the production of the audioemu10k driver.
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 #       Path to the base of the uts directory tree (usually /usr/src/uts).
 #
 UTSBASE = ../..

@@ -60,10 +59,13 @@
 
 LDFLAGS         += -dy -Ndrv/audio -Nmisc/ac97
 
 CERRWARN        += -_gcc=-Wno-uninitialized
 
+# needs work
+SMOFF += all_func_returns
+
 $(OBJS_DIR)/%.o                 := CPPFLAGS += -I$(OBJS_DIR)
 $(OBJS_DIR)/%.ln                := CPPFLAGS += -I$(OBJS_DIR)
 $(OBJS_DIR)/emu10k_gpr.h        := ASM10KFLAGS = -v -0 -P gpr
 $(OBJS_DIR)/emu10k1_dsp.h       := ASM10KFLAGS = -v -1 -P emu10k1
 $(OBJS_DIR)/emu10k2_dsp.h       := MODEL10K = SBLIVE