Print this page
10077 usr/src/uts/ Makefile changes for smatch
*** 21,36 ****
# uts/intel/fp/Makefile
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
! # ident "@(#)Makefile 1.10 08/07/25 SMI"
! #
! # This makefile drives the production of fp driver kernel module.
! #
! # i86pc architecture dependent
! #
#
# Path to the base of the uts directory tree (usually /usr/src/uts).
#
UTSBASE = ../..
--- 21,31 ----
# uts/intel/fp/Makefile
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
! # Copyright (c) 2018, Joyent, Inc.
#
# Path to the base of the uts directory tree (usually /usr/src/uts).
#
UTSBASE = ../..
*** 77,86 ****
--- 72,84 ----
LINTTAGS += -erroff=E_STATIC_UNUSED
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-unused-function
+ # needs work
+ $(OBJS_DIR)/fp.o := SMOFF += all_func_returns,deref_check
+
#
# Default build targets.
#
.KEEP_STATE: