Print this page
11506 smatch resync
@@ -21,11 +21,12 @@
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
-# Copyright (c) 2018, Joyent, Inc.
+# Copyright 2019 Joyent, Inc.
+#
#
# Paths to the base of the uts directory trees
#
UTSBASE = ../..
@@ -33,11 +34,10 @@
#
# Define the module and object file sets.
#
MODULE = xge
OBJECTS = $(XGE_HAL_OBJS:%=$(OBJS_DIR)/%) $(XGE_OBJS:%=$(OBJS_DIR)/%)
-LINTS = $(XGE_HAL_OBJS:%.o=$(LINTS_DIR)/%.ln) $(XGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
#
# Include common rules.
#
@@ -45,11 +45,10 @@
#
# Define targets
#
ALL_TARGET = $(BINARY)
-LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# GENERAL PURPOUSE HAL FLAGS: Tuning HAL for Solaris specific modes
#
@@ -89,31 +88,21 @@
#
# Driver depends on MAC & IP
#
LDFLAGS += -dy -N misc/mac -N drv/ip
-# Lint flag
-#
-LINTFLAGS += $(XGE_CFLAGS) -Xc99=%all
-
-#
-# For now, disable these lint checks; maintainers should endeavor
-# to investigate and remove these for maximum lint coverage.
-# Please do not carry these forward to new Makefiles.
-#
-LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
-LINTTAGS += -erroff=E_STATIC_UNUSED
-LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
-
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-unused-label
CERRWARN += -_gcc=-Wno-empty-body
CERRWARN += -_gcc=-Wno-uninitialized
# needs work
-SMOFF += indenting,all_func_returns,no_if_block
+SMOFF += indenting
+SMOFF += all_func_returns
+SMOFF += no_if_block
+SMOFF += allocating_enough_data
#
#
# Default build targets.
#
@@ -125,16 +114,10 @@
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
-lint: $(LINT_DEPS)
-
-modlintlib: $(MODLINTLIB_DEPS)
-
-clean.lint: $(CLEAN_LINT_DEPS)
-
install: $(INSTALL_DEPS)
#
# Include common targets.
#