Print this page
10077 usr/src/uts/ Makefile changes for smatch
*** 22,37 ****
# uts/i86pc/pcie/Makefile
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
! #
! # This makefile drives the production of the kernel/misc/pcie module
! # for PCI-E Error handling support in PCI-E nexus drivers.
! #
! # i86pc implementation architecture dependent
! #
#
# Path to the base of the uts directory tree (usually /usr/src/uts).
#
UTSBASE = ../..
--- 22,32 ----
# uts/i86pc/pcie/Makefile
#
# Copyright 2009 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 = ../..
*** 67,76 ****
--- 62,74 ----
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-unused-function # safe
+ # needs work
+ SMOFF += all_func_returns,deref_check
+
#
# Default build targets.
#
.KEEP_STATE: