Print this page
10077 usr/src/uts/ Makefile changes for smatch
*** 22,36 ****
# uts/intel/smbfs/Makefile
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
! # This makefile drives the production of the smbfs (Server
! # message block file system) kernel module.
! #
! # intel architecture dependent
! #
#
# Path to the base of the uts directory tree (usually /usr/src/uts).
#
UTSBASE = ../..
--- 22,32 ----
# uts/intel/smbfs/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 = ../..
*** 68,77 ****
--- 64,76 ----
# Until CR 4994570 is fixed...
LINTTAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized
+ # needs work
+ SMOFF += all_func_returns,signed,deref_check
+
# The mb_put/md_get functions are intentionally used with and without
# return value checks, so filter those out like LGREP.2 does.
LGREP.nsmb = egrep -v ' ignored: (mb_init|mb_put|md_get)'
LTAIL += 2>&1 | $(LGREP.2) | $(LGREP.nsmb) || true