Print this page
11506 smatch resync

@@ -23,11 +23,12 @@
 #
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 # Copyright (c) 2011 Bayard G. Bell. All rights reserved.
 #
-# Copyright (c) 2018, Joyent, Inc.
+# Copyright 2019 Joyent, Inc.
+#
 
 #
 #       Path to the base of the uts directory tree (usually /usr/src/uts).
 #
 UTSBASE = ../..

@@ -35,11 +36,10 @@
 #
 #       Define the module and object file sets.
 #
 MODULE          = spppcomp
 OBJECTS         = $(SPPPCOMP_OBJS:%=$(OBJS_DIR)/%)
-LINTS           = $(SPPPCOMP_OBJS:%.o=$(LINTS_DIR)/%.ln)
 ROOTMODULE      = $(USR_STRMOD_DIR)/$(MODULE)
 
 #
 #       Include common rules.
 #

@@ -47,11 +47,10 @@
 
 #
 #       Define targets
 #
 ALL_TARGET      = $(BINARY)
-LINT_TARGET     = $(MODULE).lint
 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
 
 #
 #       Internal build definitions
 #

@@ -60,24 +59,15 @@
 # 
 #       Additional compiler definitions
 # 
 INC_PATH        += -I$(UTSBASE)/common/io/ppp/common
 
-#
-# 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_PTRDIFF_OVERFLOW
-LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
-
 CERRWARN        += -_gcc=-Wno-parentheses
 CERRWARN        += -_gcc=-Wno-uninitialized
 
 # needs work
-SMOFF += indenting
+SMOFF += indenting,index_overflow
 
 #
 # Depends on sppp
 #
 LDFLAGS         += -dy -N drv/sppp

@@ -93,21 +83,12 @@
 
 clean:          $(CLEAN_DEPS)
 
 clobber:        $(CLOBBER_DEPS)
 
-lint:           $(LINT_DEPS)
-
-modlintlib:     $(MODLINTLIB_DEPS)
-
-clean.lint:     $(CLEAN_LINT_DEPS)
-
 install:        $(INSTALL_DEPS)
 
-$(LINTS_DIR)/%.ln:              $(UTSBASE)/common/io/ppp/spppcomp/%.c
-        @($(LHEAD) $(LINT.c) $< $(LTAIL))
-
 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/ppp/spppcomp/%.c
         $(COMPILE.c) -o $@ $<
         $(CTFCONVERT_O)
 
 #