Print this page
10077 usr/src/uts/ Makefile changes for smatch
*** 20,33 ****
#
# uts/intel/hxge/Makefile
#
# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
#
! # This makefile drives the production of the Sun
! # 10G hxge Ethernet leaf driver kernel module.
#
- #
# Path to the base of the uts directory tree (usually /usr/src/uts).
#
UTSBASE = ../..
#
--- 20,32 ----
#
# uts/intel/hxge/Makefile
#
# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
#
! # Copyright (c) 2018, Joyent, Inc.
!
#
# Path to the base of the uts directory tree (usually /usr/src/uts).
#
UTSBASE = ../..
#
*** 85,94 ****
--- 84,95 ----
CERRWARN += -_gcc=-Wno-unused-label
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-parentheses
+ SMOFF += deref_check,logical_instead_of_bitwise
+
#
# Driver depends on mac & IP
#
LDFLAGS += -dy -N misc/mac -N drv/ip