diff options
Diffstat (limited to 'usr/src/uts/sun4u')
184 files changed, 361 insertions, 2573 deletions
diff --git a/usr/src/uts/sun4u/Makefile b/usr/src/uts/sun4u/Makefile index d8fc99e661..7da95236ca 100644 --- a/usr/src/uts/sun4u/Makefile +++ b/usr/src/uts/sun4u/Makefile @@ -31,25 +31,6 @@ UTSBASE = .. include Makefile.sun4u -# -# The following are SPARC specific (rather than sun4u) specific modules -# which are required for the sun4u kernel to completely lint. They are -# not involved in the build in any other way. In order to minimize -# build time, it is assumed that they are up to date. But since sun4u -# is really a separate architecture we cannot use the v7 sparc modules. -# -SPARC_LIB_DIR = $(UTSBASE)/sparc/lint-libs/$(OBJS_DIR) - -SPARC_LINTS = - -# -# -# -LINT_LIBS = $(LINT_LIB) \ - $(LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \ - $(SPARC_LINTS:%=$(SPARC_LIB_DIR)/llib-l%.ln) - - def := TARGET= def def.prereq := TARGET= def all := TARGET= all @@ -60,13 +41,8 @@ install_h := TARGET= install_h install_h.prere := TARGET= install_h clean := TARGET= clean clobber := TARGET= clobber -lint := TARGET= lint -lint.prereq := TARGET= lint -lintlib := TARGET= lintlib -modlintlib := TARGET= modlintlib modlist := TARGET= modlist modlist modlist.sparc := NO_STATE= -K $$MODSTATE$$$$ -clean.lint := TARGET= clean.lint check := TARGET= check .KEEP_STATE: @@ -79,7 +55,7 @@ check := TARGET= check # in parallel .NO_PARALLEL: $(CPU_KMODS) -def all clean clobber clean.lint: genassym unix .WAIT \ +def all clean clobber: genassym unix .WAIT \ $(KMODS) $(XMODS) $(IMPLEMENTATIONS) clobber: clobber.targ @@ -96,10 +72,6 @@ modlist.sparc: install: install_platforms genassym unix .WAIT $(KMODS) \ $(XMODS) $(IMPLEMENTATIONS) -lintlib: unix - -modlintlib: $(LINT_KMODS) - genassym unix $(KMODS): FRC @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) @@ -157,19 +129,6 @@ install_h.prereq: FRC @cd sys; pwd; $(MAKE) $(TARGET) # -# sun4u/unix and sun4u/genunix should be linted first since sparc does global -# cross-check with these lint libraries. The sun4u/unix and sun4u/genunix can be -# linted in parallel. -# -LINT_PREREQ = unix.lint genunix.lint -lint.prereq: $(LINT_PREREQ) - -.PARALLEL: $(LINT_PREREQ) - -$(LINT_PREREQ): - @cd $(@:%.lint=%); pwd; $(MAKE) $(TARGET) - -# # Nothing to do with any other prerequisites # %.prereq: @@ -259,19 +218,6 @@ $(USR_DESKTOP_SBIN_DIR): $(USR_DESKTOP_DIR) $(USR_DESKTOP_LIB_DIR): $(USR_DESKTOP_DIR) -$(INS.dir) -# -# Full kernel lint target. -# -LINT_TARGET = globallint - -globallint: - @pwd - @-$(ECHO) "\nSUN4U KERNEL: global crosschecks:" - @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) - -lint: lintlib .WAIT modlintlib .WAIT $(SPARC_LINTS) $(LINT_DEPS) \ - $(IMPLEMENTATIONS) $(CPU_KMODS) - include ../Makefile.targ # diff --git a/usr/src/uts/sun4u/Makefile.files b/usr/src/uts/sun4u/Makefile.files index 740f792c5d..fe690606e6 100644 --- a/usr/src/uts/sun4u/Makefile.files +++ b/usr/src/uts/sun4u/Makefile.files @@ -25,7 +25,7 @@ # Copyright 2019 Peter Tribble. # # This Makefile defines all file modules for the directory uts/sun4u -# and it's children. These are the source files which are sun4u +# and its children. These are the source files which are sun4u # "implementation architecture" dependent. # @@ -216,10 +216,7 @@ INC_PATH += -I$(UTSBASE)/sun4u # # Since assym.h is a derived file, the dependency must be explicit for -# all files including this file. (This is only actually required in the -# instance when the .make.state file does not exist.) It may seem that -# the lint targets should also have a similar dependency, but they don't -# since only C headers are included when #defined(lint) is true. +# all files including this file. # ASSYM_DEPS += mach_locore.o ASSYM_DEPS += module_sfmmu_asm.o diff --git a/usr/src/uts/sun4u/Makefile.rules b/usr/src/uts/sun4u/Makefile.rules index f16022e6fc..16e02ab4c5 100644 --- a/usr/src/uts/sun4u/Makefile.rules +++ b/usr/src/uts/sun4u/Makefile.rules @@ -177,111 +177,3 @@ $(OBJS_DIR)/dtracestubs.s: $(UNIX_O) $(LIBS) $(DTRACESTUBS): $(DTRACESTUBS_O) $(BUILD.SO) $(DTRACESTUBS_O) - -# -# Section 1b: Lint `object' build rules -# -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/cpu/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/cpu/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/ppm/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/ppm/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/i2c/clients/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/i2c/misc/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/i2c/nexus/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/pci/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/pci/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/px/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/px/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/pciex/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/pciex/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/ml/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/pcbe/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4/brand/sn1/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4/brand/solaris10/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/vm/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/vm/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sfmmu/ml/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sfmmu/vm/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sparc/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/common/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(SRC)/common/bignum/sun4u/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(SRC)/common/crypto/aes/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(SRC)/common/crypto/arcfour/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(SRC)/common/crypto/des/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(SRC)/common/crypto/aes/sun4u/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(SRC)/common/crypto/arcfour/sun4u/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(SRC)/common/crypto/des/sun4u/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(SRC)/common/crypto/sha1/sparc/sun4u/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(SRC)/common/atomic/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/Makefile.sun4u b/usr/src/uts/sun4u/Makefile.sun4u index 7b4b7c0985..f170d03d11 100644 --- a/usr/src/uts/sun4u/Makefile.sun4u +++ b/usr/src/uts/sun4u/Makefile.sun4u @@ -103,8 +103,6 @@ UNIX_DIR = $(UTSBASE)/$(PLATFORM)/unix GENLIB_DIR = $(UTSBASE)/$(PLATFORM)/genunix MODSTUBS_DIR = $(UNIX_DIR) DSF_DIR = $(UTSBASE)/$(PLATFORM)/genassym -LINTS_DIR = $(OBJS_DIR) -LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR) DTRACESTUBS_O = $(OBJS_DIR)/dtracestubs.o DTRACESTUBS = $(OBJS_DIR)/libdtracestubs.so @@ -113,12 +111,6 @@ UNIX_O = $(UNIX_DIR)/$(OBJS_DIR)/unix.o MODSTUBS_O = $(MODSTUBS_DIR)/$(OBJS_DIR)/modstubs.o GENLIB = $(GENLIB_DIR)/$(OBJS_DIR)/libgenunix.so -LINT_LIB = $(LINT_LIB_DIR)/llib-lunix.ln -GEN_LINT_LIB = $(LINT_LIB_DIR)/llib-lgenunix.ln - -LINT64_DIRS = $(LINT64_BUILDS:%=$(UTSBASE)/$(PLATFORM)/lint-libs/%) -LINT64_FILES = $(LINT64_DIRS:%=%/llib-l$(MODULE).ln) - # # cpu and platform modules need to know how to build their own symcheck module # @@ -216,9 +208,7 @@ ASFLAGS += $(AS_XARCH) AS_INC_PATH += -I$(DSF_DIR)/$(OBJS_DIR) -LINT_KMODS += $(GENUNIX_KMODS) -LINT_DEFS = -m64 # # The following must be defined for all implementations: @@ -438,9 +428,6 @@ CRYPTO_KMODS += des # GENUNIX_KMODS += genunix -# 'User' "Modules" excluded from the Full Kernel lint target: -# - # # Modules eXcluded from the product: # diff --git a/usr/src/uts/sun4u/aes/Makefile b/usr/src/uts/sun4u/aes/Makefile index 8042737faa..671dccccb4 100644 --- a/usr/src/uts/sun4u/aes/Makefile +++ b/usr/src/uts/sun4u/aes/Makefile @@ -44,7 +44,6 @@ COM_DIR = $(COMMONBASE)/crypto # MODULE = aes OBJECTS = $(AES_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(AES_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_US3_CRYPTO_DIR)/$(MODULE) # @@ -56,7 +55,6 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # @@ -64,12 +62,8 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # LDFLAGS += -dy -Nmisc/kcf -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) -I$(COM_DIR) CPPFLAGS += -DCRYPTO_PROVIDER_NAME=\"$(MODULE)\" -LINTFLAGS += -I$(COM_DIR) # # Turn on doubleword alignment for 64 bit registers @@ -89,12 +83,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/arcfour/Makefile b/usr/src/uts/sun4u/arcfour/Makefile index 239cc9631e..414eeb972e 100644 --- a/usr/src/uts/sun4u/arcfour/Makefile +++ b/usr/src/uts/sun4u/arcfour/Makefile @@ -42,7 +42,6 @@ COM_DIR = $(COMMONBASE)/crypto/arcfour # MODULE = arcfour OBJECTS = $(ARCFOUR_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(ARCFOUR_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_CRYPTO_DIR)/$(MODULE) # @@ -54,15 +53,16 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) +CFLAGS += -I$(COM_DIR) + # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # -CFLAGS += $(CCVERBOSE) -I$(COM_DIR) -LINTFLAGS += -I$(COM_DIR) - +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses # @@ -83,12 +83,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/bbc_beep/Makefile b/usr/src/uts/sun4u/bbc_beep/Makefile index 36ec611670..cec7e677e4 100644 --- a/usr/src/uts/sun4u/bbc_beep/Makefile +++ b/usr/src/uts/sun4u/bbc_beep/Makefile @@ -20,12 +20,10 @@ # CDDL HEADER END # # -# uts/sun4u/bbc_beep/Makefile -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the consconfig_dacf module. # @@ -39,7 +37,6 @@ UTSBASE = ../.. # MODULE = bbc_beep OBJECTS = $(BBC_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(BBC_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -47,16 +44,12 @@ ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # include $(UTSBASE)/sun4u/Makefile.sun4u -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) .KEEP_STATE: @@ -69,12 +62,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/bootdev/Makefile b/usr/src/uts/sun4u/bootdev/Makefile index 89e6f1964f..5d73ba9b0e 100644 --- a/usr/src/uts/sun4u/bootdev/Makefile +++ b/usr/src/uts/sun4u/bootdev/Makefile @@ -39,7 +39,6 @@ UTSBASE = ../.. # MODULE = bootdev OBJECTS = $(BOOTDEV_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(BOOTDEV_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) # @@ -51,21 +50,14 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) - -# -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON - +CFLAGS += $(CCVERBOSE) CERRWARN += $(CNOWARN_UNINIT) # @@ -81,12 +73,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/boston/Makefile.boston b/usr/src/uts/sun4u/boston/Makefile.boston index ab809b8a13..c8710a1e39 100644 --- a/usr/src/uts/sun4u/boston/Makefile.boston +++ b/usr/src/uts/sun4u/boston/Makefile.boston @@ -54,8 +54,6 @@ USR_BOSTON_SBIN_PRTDIAG = $(USR_BOSTON_SBIN_DIR)/prtdiag USR_BOSTON_SBIN_FRUADM = $(USR_BOSTON_SBIN_DIR)/fruadm USR_BOSTON_LIB_DIR = $(USR_BOSTON_DIR)/lib -BOSTON_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/boston/lint-libs/$(OBJS_DIR) - # # Define objects. # diff --git a/usr/src/uts/sun4u/boston/Makefile.rules b/usr/src/uts/sun4u/boston/Makefile.rules index f37fe504fc..b0f82cf17f 100644 --- a/usr/src/uts/sun4u/boston/Makefile.rules +++ b/usr/src/uts/sun4u/boston/Makefile.rules @@ -23,8 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # This Makefile defines the build rules for the directory @@ -45,10 +43,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/boston/os/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) - -# -# Section 1b: Lint `object' build rules -# - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/boston/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/boston/platmod/Makefile b/usr/src/uts/sun4u/boston/platmod/Makefile index df85dff684..e9f4b8dfbc 100644 --- a/usr/src/uts/sun4u/boston/platmod/Makefile +++ b/usr/src/uts/sun4u/boston/platmod/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(BOSTON_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(BOSTON_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_BOSTON_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -60,12 +59,8 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -81,17 +76,10 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) check: -LINT_LIB_DIR = $(BOSTON_LINT_LIB_DIR) $(PLATLIB): $(OBJECTS) $(BUILD.SO) $(OBJECTS) diff --git a/usr/src/uts/sun4u/cheetahplus/Makefile b/usr/src/uts/sun4u/cheetahplus/Makefile index f4bb408f25..6c6d5adffc 100644 --- a/usr/src/uts/sun4u/cheetahplus/Makefile +++ b/usr/src/uts/sun4u/cheetahplus/Makefile @@ -41,7 +41,6 @@ UTSBASE = ../.. # MODULE = SUNW,UltraSPARC-III+ OBJECTS = $(CHEETAHPLUS_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(CHEETAHPLUS_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE) SOFTLINKS = SUNW,UltraSPARC-IV SUNW,UltraSPARC-IV+ ROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_PSM_CPU_DIR)/%) @@ -63,14 +62,15 @@ CLEANFILES += $(CPULIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # -CFLAGS += $(CCVERBOSE) -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \ - -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT +CFLAGS += -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \ + -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT ASFLAGS += -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \ -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT @@ -95,12 +95,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(CPULIB): $(OBJECTS) @@ -119,16 +113,11 @@ $(ROOTSOFTLINKS): $(ROOTMODULE) include $(UTSBASE)/sun4u/Makefile.targ # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_STATIC_UNUSED -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV - +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-unused-variable diff --git a/usr/src/uts/sun4u/cherrystone/Makefile.cherrystone b/usr/src/uts/sun4u/cherrystone/Makefile.cherrystone index aa286c04f9..4ab2065609 100644 --- a/usr/src/uts/sun4u/cherrystone/Makefile.cherrystone +++ b/usr/src/uts/sun4u/cherrystone/Makefile.cherrystone @@ -19,11 +19,10 @@ # CDDL HEADER END # # -# uts/sun4u/cherrystone/Makefile.cherrystone # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile contains the common definitions for the # sun4u Littleneck system dependent modules. @@ -59,7 +58,6 @@ USR_CHERRYSTONE_SBIN_DIR = $(USR_CHERRYSTONE_DIR)/sbin USR_CHERRYSTONE_LIB_DIR = $(USR_CHERRYSTONE_DIR)/lib USR_CHERRYSTONE_ISYS_DIR = $(USR_CHERRYSTONE_INC_DIR)/sys -CHERRYSTONE_LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/cherrystone/lint-libs/$(OBJS_DIR) # # Define objects. # @@ -81,11 +79,3 @@ include $(UTSBASE)/sun4u/cherrystone/Makefile.files # Include common rules. # include $(UTSBASE)/sun4u/Makefile.sun4u - -# -# 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_STATIC_UNUSED - diff --git a/usr/src/uts/sun4u/cherrystone/Makefile.rules b/usr/src/uts/sun4u/cherrystone/Makefile.rules index 0b092a3197..358631a2d4 100644 --- a/usr/src/uts/sun4u/cherrystone/Makefile.rules +++ b/usr/src/uts/sun4u/cherrystone/Makefile.rules @@ -23,9 +23,9 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # -# This Makefile defines the build rules for the directory +# This Makefile defines the build rules for the directory # uts/sun4u/cherrystone and its children. # @@ -38,12 +38,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/cherrystone/os/%.c $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/cherrystone/ml/%.s $(COMPILE.s) -o $@ $< - -# -# Section 1b: Lint `object' build rules -# -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/cherrystone/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/cherrystone/ml/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/cherrystone/platmod/Makefile b/usr/src/uts/sun4u/cherrystone/platmod/Makefile index 68ff3e184a..baa7809949 100644 --- a/usr/src/uts/sun4u/cherrystone/platmod/Makefile +++ b/usr/src/uts/sun4u/cherrystone/platmod/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(CSTONEPLATMOD_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(CSTONEPLATMOD_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_CHERRYSTONE_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -60,7 +59,6 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) ALL_BUILDS = debug64 obj64 @@ -68,7 +66,9 @@ DEF_BUILDS = obj64 $(NOT_RELEASE_BUILD)DEF_BUILDS = debug64 # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-unused-function @@ -86,17 +86,10 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) check: -LINT_LIB_DIR = $(CHERRYSTONE_LINT_LIB_DIR) $(PLATLIB): $(OBJECTS) $(BUILD.SO) $(OBJECTS) diff --git a/usr/src/uts/sun4u/chicago/Makefile.chicago b/usr/src/uts/sun4u/chicago/Makefile.chicago index dad45c56de..f7e612dfe4 100644 --- a/usr/src/uts/sun4u/chicago/Makefile.chicago +++ b/usr/src/uts/sun4u/chicago/Makefile.chicago @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # Global definitions for sun4u implementation specific modules. # @@ -54,8 +54,6 @@ USR_CHICAGO_ISYS_DIR = $(USR_CHICAGO_INC_DIR)/sys USR_CHICAGO_SBIN_DIR = $(USR_CHICAGO_DIR)/sbin USR_CHICAGO_LIB_DIR = $(USR_CHICAGO_DIR)/lib -CHICAGO_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/chicago/lint-libs/$(OBJS_DIR) - # # Define objects. # @@ -77,11 +75,3 @@ include $(UTSBASE)/sun4u/chicago/Makefile.files # Include common rules. # include $(UTSBASE)/sun4u/Makefile.sun4u - -# -# 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_STATIC_UNUSED - diff --git a/usr/src/uts/sun4u/chicago/Makefile.rules b/usr/src/uts/sun4u/chicago/Makefile.rules index 51c800c0d0..da44197264 100644 --- a/usr/src/uts/sun4u/chicago/Makefile.rules +++ b/usr/src/uts/sun4u/chicago/Makefile.rules @@ -22,8 +22,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # This Makefile defines the build rules for the directory @@ -48,14 +46,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/chicago/os/%.c $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/chicago/io/fpc/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) - -# -# Section 1b: Lint `object' build rules -# - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/chicago/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/chicago/io/fpc/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - diff --git a/usr/src/uts/sun4u/chicago/fpc/Makefile b/usr/src/uts/sun4u/chicago/fpc/Makefile index bc5c45d7ed..b372ee43cf 100644 --- a/usr/src/uts/sun4u/chicago/fpc/Makefile +++ b/usr/src/uts/sun4u/chicago/fpc/Makefile @@ -43,7 +43,6 @@ UTSBASE = ../../.. # MODULE = fpc OBJECTS = $(FPC_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(FPC_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_CHICAGO_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4/io/fpc @@ -76,7 +75,6 @@ include $(UTSBASE)/sun4u/chicago/Makefile.chicago # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) \ $(BOSTON_ROOTMODULE) $(BOSTON_CONFFILE) \ $(SEATTLE_ROOTMODULE) $(SEATTLE_CONFFILE) @@ -86,10 +84,6 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) \ # INC_PATH += -I$(UTSBASE)/sun4/io/fpc -# -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) # # Turn on doubleword alignment for 64 bit registers @@ -97,12 +91,11 @@ CFLAGS += $(CCVERBOSE) CFLAGS += -dalign # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_STATIC_UNUSED - +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-unused-variable # @@ -118,12 +111,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(ROOT_BOSTON_DIR): $(ROOT_PLAT_DIR) diff --git a/usr/src/uts/sun4u/chicago/platmod/Makefile b/usr/src/uts/sun4u/chicago/platmod/Makefile index 854c8d087b..65cbd67330 100644 --- a/usr/src/uts/sun4u/chicago/platmod/Makefile +++ b/usr/src/uts/sun4u/chicago/platmod/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(CHICAGO_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(CHICAGO_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_CHICAGO_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -60,11 +59,12 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-unused-variable @@ -82,17 +82,10 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) check: -LINT_LIB_DIR = $(CHICAGO_LINT_LIB_DIR) $(PLATLIB): $(OBJECTS) $(BUILD.SO) $(OBJECTS) diff --git a/usr/src/uts/sun4u/chicago/ppm/Makefile b/usr/src/uts/sun4u/chicago/ppm/Makefile index e0f065da9c..c16dde5fa1 100644 --- a/usr/src/uts/sun4u/chicago/ppm/Makefile +++ b/usr/src/uts/sun4u/chicago/ppm/Makefile @@ -20,11 +20,10 @@ # CDDL HEADER END # # -# uts/sun4u/chicago/ppm/Makefile # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the platform power # management driver in the sun4u Chicago system. @@ -60,7 +59,6 @@ INSTALL_TARGET = $(ROOT_CONFFILE) NO_BUILDS = ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) # # The only thing we do from here is install the .conf file @@ -86,7 +84,7 @@ CFLAGS += -dalign # .KEEP_STATE: -def all clean clobber lint modlintlib clean.lint: +def all clean clobber: install: $(CONF_INSTALL_DEPS) diff --git a/usr/src/uts/sun4u/cpc/Makefile b/usr/src/uts/sun4u/cpc/Makefile index 42680e6a00..024189d20b 100644 --- a/usr/src/uts/sun4u/cpc/Makefile +++ b/usr/src/uts/sun4u/cpc/Makefile @@ -19,11 +19,10 @@ # CDDL HEADER END # # -# uts/sun4u/cpc/Makefile # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the cpc kernel module. # @@ -40,7 +39,6 @@ UTSBASE = ../.. # MODULE = cpc OBJECTS = $(CPC_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(CPC_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) ROOTLINK = $(ROOT_PSM_SYS_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/common/io @@ -54,22 +52,11 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # -# 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_ASSIGN_NARROW_CONV - -# # Default build targets. # .KEEP_STATE: @@ -82,12 +69,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(ROOTLINK): $(ROOT_PSM_SYS_DIR) $(ROOTMODULE) diff --git a/usr/src/uts/sun4u/daktari/Makefile.daktari b/usr/src/uts/sun4u/daktari/Makefile.daktari index f7cec459e7..4296346b6e 100644 --- a/usr/src/uts/sun4u/daktari/Makefile.daktari +++ b/usr/src/uts/sun4u/daktari/Makefile.daktari @@ -19,11 +19,10 @@ # CDDL HEADER END # # -# uts/sun4u/daktari/Makefile.daktari # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile contains the common definitions for the # sun4u Daktari system dependent modules. @@ -59,8 +58,6 @@ USR_DAKTARI_SBIN_DIR = $(USR_DAKTARI_DIR)/sbin USR_DAKTARI_LIB_DIR = $(USR_DAKTARI_DIR)/lib USR_DAKTARI_ISYS_DIR = $(USR_DAKTARI_INC_DIR)/sys -DAKTARI_LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/daktari/lint-libs/$(OBJS_DIR) - # # Define objects. @@ -82,12 +79,3 @@ include $(UTSBASE)/sun4u/daktari/Makefile.files # Include common rules. # include $(UTSBASE)/sun4u/Makefile.sun4u - -# -# 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 - diff --git a/usr/src/uts/sun4u/daktari/Makefile.rules b/usr/src/uts/sun4u/daktari/Makefile.rules index e0640730e6..536d7ef703 100644 --- a/usr/src/uts/sun4u/daktari/Makefile.rules +++ b/usr/src/uts/sun4u/daktari/Makefile.rules @@ -23,9 +23,9 @@ # Copyright 2000-2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # -# This Makefile defines the build rules for the directory +# This Makefile defines the build rules for the directory # uts/sun4u/daktari and its children. # # The following two-level ordering must be maintained in this file. @@ -49,15 +49,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/daktari/ml/%.s $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/daktari/os/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) - -# -# Section 1b: Lint `object' build rules -# -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/daktari/io/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/daktari/ml/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/daktari/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/daktari/hpc3130/Makefile b/usr/src/uts/sun4u/daktari/hpc3130/Makefile index abd8689d12..bd27cd616e 100644 --- a/usr/src/uts/sun4u/daktari/hpc3130/Makefile +++ b/usr/src/uts/sun4u/daktari/hpc3130/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = hpc3130 OBJECTS = $(HPC3130_DAK_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(HPC3130_DAK_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_DAKTARI_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/daktari/io @@ -53,7 +52,6 @@ include $(UTSBASE)/sun4u/daktari/Makefile.daktari # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # @@ -61,10 +59,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-char-subscripts @@ -90,15 +89,8 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) +install: $(INSTALL_DEPS) -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - -install: $(INSTALL_DEPS) - -LINT_LIB_DIR = $(DAKTARI_LINT_LIB_DIR) # # Include common targets. diff --git a/usr/src/uts/sun4u/daktari/platmod/Makefile b/usr/src/uts/sun4u/daktari/platmod/Makefile index 4bff868623..6800f075dd 100644 --- a/usr/src/uts/sun4u/daktari/platmod/Makefile +++ b/usr/src/uts/sun4u/daktari/platmod/Makefile @@ -38,7 +38,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(DAKTARI_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(DAKTARI_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_DAKTARI_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -58,7 +57,6 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # @@ -66,10 +64,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-unused-function @@ -87,17 +86,10 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) check: -LINT_LIB_DIR = $(DAKTARI_LINT_LIB_DIR) $(PLATLIB): $(OBJECTS) $(BUILD.SO) $(OBJECTS) diff --git a/usr/src/uts/sun4u/darwin/Makefile b/usr/src/uts/sun4u/darwin/Makefile index 22bba73af1..a575997192 100644 --- a/usr/src/uts/sun4u/darwin/Makefile +++ b/usr/src/uts/sun4u/darwin/Makefile @@ -20,11 +20,10 @@ # CDDL HEADER END # # -# uts/sun4u/darwin/Makefile # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sun4u darwin platform # module. @@ -48,12 +47,8 @@ install := TARGET= install install_h := TARGET= install_h clean := TARGET= clean clobber := TARGET= clobber -lint := TARGET= lint -lintlib := TARGET= lintlib -modlintlib := TARGET= modlintlib modlist := TARGET= modlist modlist := NO_STATE= -K $$MODSTATE$$$$ -clean.lint := TARGET= clean.lint check := TARGET= check # @@ -61,32 +56,12 @@ check := TARGET= check # .KEEP_STATE: -def all clean clean.lint clobber modlist: $(DARWIN_KMODS) - -modlintlib: $(DARWIN_KMODS) +def all clean clobber modlist: $(DARWIN_KMODS) install: $(ROOT_DARWIN_DIR) $(USR_DARWIN_DIR) $(DARWIN_KMODS) check install_h: -lint: modlintlib - -# -# The 'lint.platmod' target lints the darwin platform module against the sun4u -# kernel. This ends up doing all the kernel cross-checks, so it takes a couple -# of minutes. Due to the low ROI, it's not run by default, but it's a good -# idea to run this if you change os/darwin.c. -# -LINT_LIBS = $(LINT_LIB) \ - -L$(DARWIN_LINT_LIB_DIR) \ - -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ - $(CLOSED_LINT_KMODS:%=-l%) \ - -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) - -lint.platmod: modlintlib - @-$(ECHO) "\nDarwin Platform-dependent module: global crosschecks:" - @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) - $(DARWIN_KMODS): FRC @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) diff --git a/usr/src/uts/sun4u/darwin/Makefile.darwin b/usr/src/uts/sun4u/darwin/Makefile.darwin index fb6865bf5c..5b912a7b19 100644 --- a/usr/src/uts/sun4u/darwin/Makefile.darwin +++ b/usr/src/uts/sun4u/darwin/Makefile.darwin @@ -20,10 +20,9 @@ # CDDL HEADER END # # -# uts/sun4u/darwin/Makefile.darwin # Copyright (c) 1999 by Sun Microsystems, Inc. # -#ident "%Z%%M% %I% %E% SMI" + # # Global definitions for sun4u implementation specific modules. # @@ -48,8 +47,6 @@ ROOT_PLAT_MISC_DIRS_32 += $(ROOT_DARWIN_MISC_DIR_32) USR_DARWIN_DIR = $(USR_PLAT_DIR)/SUNW,Ultra-5_10 -DARWIN_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/darwin/lint-libs/$(OBJS_DIR) - # # Define objects. # diff --git a/usr/src/uts/sun4u/darwin/Makefile.rules b/usr/src/uts/sun4u/darwin/Makefile.rules index 0b873c57a7..d8c87cff73 100644 --- a/usr/src/uts/sun4u/darwin/Makefile.rules +++ b/usr/src/uts/sun4u/darwin/Makefile.rules @@ -23,7 +23,7 @@ # Copyright 1999-2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This Makefile defines the build rules for the directory # uts/sun4u/darwin. @@ -42,9 +42,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/darwin/os/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) - -# -# Section 1b: Lint `object' build rules -# -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/darwin/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/darwin/platmod/Makefile b/usr/src/uts/sun4u/darwin/platmod/Makefile index aaacda5c3e..5115b52535 100644 --- a/usr/src/uts/sun4u/darwin/platmod/Makefile +++ b/usr/src/uts/sun4u/darwin/platmod/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(DARWIN_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(DARWIN_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_DARWIN_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -60,12 +59,8 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -81,17 +76,10 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) check: -LINT_LIB_DIR = $(DARWIN_LINT_LIB_DIR) $(PLATLIB): $(OBJECTS) $(BUILD.SO) $(OBJECTS) diff --git a/usr/src/uts/sun4u/des/Makefile b/usr/src/uts/sun4u/des/Makefile index d8b27d3d66..4e9804d156 100644 --- a/usr/src/uts/sun4u/des/Makefile +++ b/usr/src/uts/sun4u/des/Makefile @@ -44,7 +44,6 @@ COM_DIR = $(COMMONBASE)/crypto # MODULE = des OBJECTS = $(DES_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(DES_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_CRYPTO_DIR)/$(MODULE) ROOTLINK = $(ROOT_PSM_MISC_DIR)/$(MODULE) TARGET_32 = ../../kernel/crypto/$(MODULE) @@ -60,7 +59,6 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) # @@ -68,11 +66,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) # LDFLAGS += -dy -Nmisc/kcf -# -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) -I$(COM_DIR) -LINTFLAGS += -I$(COM_DIR) +CFLAGS += -I$(COM_DIR) # # Turn on doubleword alignment for 64 bit registers @@ -80,15 +74,11 @@ LINTFLAGS += -I$(COM_DIR) CFLAGS += -dalign # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_STATIC_UNUSED -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED - +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) @@ -105,12 +95,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(ROOTLINK): $(ROOT_PSM_MISC_DIR) $(ROOTMODULE) diff --git a/usr/src/uts/sun4u/ebus/Makefile b/usr/src/uts/sun4u/ebus/Makefile index ac9d584723..7015db3064 100644 --- a/usr/src/uts/sun4u/ebus/Makefile +++ b/usr/src/uts/sun4u/ebus/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../.. # MODULE = ebus OBJECTS = $(EBUS_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(EBUS_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -52,29 +51,19 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# Turn this on once compiler understands v9 in it's backend -#INLINES += $(UTSBASE)/sun4u/io/ebus.il - -# -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) - # # Turn on doubleword alignment for 64 bit registers # CFLAGS += -dalign # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV - +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-switch CERRWARN += $(CNOWARN_UNINIT) @@ -91,12 +80,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/enchilada/Makefile b/usr/src/uts/sun4u/enchilada/Makefile index 6e918ce045..a048e8c0e3 100644 --- a/usr/src/uts/sun4u/enchilada/Makefile +++ b/usr/src/uts/sun4u/enchilada/Makefile @@ -22,9 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# uts/sun4u/enchilada/Makefile + # # This makefile drives the production of the sun4u enchilada platform # module. @@ -48,12 +46,8 @@ install := TARGET= install install_h := TARGET= install_h clean := TARGET= clean clobber := TARGET= clobber -lint := TARGET= lint -lintlib := TARGET= lintlib -modlintlib := TARGET= modlintlib modlist := TARGET= modlist modlist := NO_STATE= -K $$MODSTATE$$$$ -clean.lint := TARGET= clean.lint check := TARGET= check # @@ -61,9 +55,7 @@ check := TARGET= check # .KEEP_STATE: -def all clean clean.lint clobber modlist: $(ENCHILADA_KMODS) - -modlintlib: $(ENCHILADA_KMODS) +def all clean clobber modlist: $(ENCHILADA_KMODS) install: $(ROOT_ENCHILADA_DIR) \ $(USR_ENCHILADA_DIR) \ @@ -75,24 +67,6 @@ install: $(ROOT_ENCHILADA_DIR) \ check install_h: -lint: modlintlib - -# -# The 'lint.platmod' target lints the enchilada platform module against the sun4u -# kernel. This ends up doing all the kernel cross-checks, so it takes a couple -# of minutes. Due to the low ROI, it's not run by default, but it's a good -# idea to run this if you change os/enchilada.c. -# -LINT_LIBS = $(LINT_LIB) \ - -L$(ENCHILADA_LINT_LIB_DIR) \ - -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ - $(CLOSED_LINT_KMODS:%=-l%) \ - -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) - -lint.platmod: modlintlib - @-$(ECHO) "\nEnchilada Platform-dependent module: global crosschecks:" - @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) - $(ENCHILADA_KMODS): FRC @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) diff --git a/usr/src/uts/sun4u/enchilada/Makefile.enchilada b/usr/src/uts/sun4u/enchilada/Makefile.enchilada index 109aecdad6..3d8f5f796e 100644 --- a/usr/src/uts/sun4u/enchilada/Makefile.enchilada +++ b/usr/src/uts/sun4u/enchilada/Makefile.enchilada @@ -23,7 +23,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # Global definitions for sun4u implementation specific modules. # @@ -55,8 +55,6 @@ USR_ENCHILADA_ISYS_DIR = $(USR_ENCHILADA_INC_DIR)/sys USR_ENCHILADA_SBIN_DIR = $(USR_ENCHILADA_DIR)/sbin USR_ENCHILADA_LIB_DIR = $(USR_ENCHILADA_DIR)/lib -ENCHILADA_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/enchilada/lint-libs/$(OBJS_DIR) - # # Define objects. # diff --git a/usr/src/uts/sun4u/enchilada/Makefile.rules b/usr/src/uts/sun4u/enchilada/Makefile.rules index 8638ed2ad8..28339f2a0c 100644 --- a/usr/src/uts/sun4u/enchilada/Makefile.rules +++ b/usr/src/uts/sun4u/enchilada/Makefile.rules @@ -23,8 +23,6 @@ # Copyright 2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # This Makefile defines the build rules for the directory @@ -45,10 +43,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/enchilada/os/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) - -# -# Section 1b: Lint `object' build rules -# - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/enchilada/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/enchilada/platmod/Makefile b/usr/src/uts/sun4u/enchilada/platmod/Makefile index 37a38a2ca3..e5d4fde642 100644 --- a/usr/src/uts/sun4u/enchilada/platmod/Makefile +++ b/usr/src/uts/sun4u/enchilada/platmod/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(ENCHILADA_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(ENCHILADA_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_ENCHILADA_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -60,12 +59,8 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -81,17 +76,10 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) check: -LINT_LIB_DIR = $(ENCHILADA_LINT_LIB_DIR) $(PLATLIB): $(OBJECTS) $(BUILD.SO) $(OBJECTS) diff --git a/usr/src/uts/sun4u/enchilada/ppm/Makefile b/usr/src/uts/sun4u/enchilada/ppm/Makefile index 81a228a19a..725a1bad52 100644 --- a/usr/src/uts/sun4u/enchilada/ppm/Makefile +++ b/usr/src/uts/sun4u/enchilada/ppm/Makefile @@ -20,11 +20,10 @@ # CDDL HEADER END # # -# uts/sun4u/enchilada/enchppm/Makefile # Copyright 2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the platform power # management driver in the sun4u enchilada system. @@ -60,7 +59,6 @@ INSTALL_TARGET = $(ROOT_CONFFILE) NO_BUILDS = ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) # # The only thing we do from here is install the .conf file @@ -86,7 +84,7 @@ CFLAGS += -dalign # .KEEP_STATE: -def all clean clobber lint modlintlib clean.lint: +def all clean clobber: install: $(CONF_INSTALL_DEPS) diff --git a/usr/src/uts/sun4u/excalibur/Makefile.excalibur b/usr/src/uts/sun4u/excalibur/Makefile.excalibur index c40920b6c5..b8a9a707e9 100644 --- a/usr/src/uts/sun4u/excalibur/Makefile.excalibur +++ b/usr/src/uts/sun4u/excalibur/Makefile.excalibur @@ -19,12 +19,10 @@ # CDDL HEADER END # # -# uts/sun4u/excalibur/Makefile.excalibur -# # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # Global definitions for sun4u implementation specific modules. # @@ -56,8 +54,6 @@ USR_EXCALIBUR_ISYS_DIR = $(USR_EXCALIBUR_INC_DIR)/sys USR_EXCALIBUR_SBIN_DIR = $(USR_EXCALIBUR_DIR)/sbin USR_EXCALIBUR_LIB_DIR = $(USR_EXCALIBUR_DIR)/lib -EXCALIBUR_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/excalibur/lint-libs/$(OBJS_DIR) - # # Define objects. # @@ -79,13 +75,3 @@ include $(UTSBASE)/sun4u/excalibur/Makefile.files # Include common rules. # include $(UTSBASE)/sun4u/Makefile.sun4u - -# -# 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 - diff --git a/usr/src/uts/sun4u/excalibur/Makefile.rules b/usr/src/uts/sun4u/excalibur/Makefile.rules index 1605380df7..fc3f1ca16e 100644 --- a/usr/src/uts/sun4u/excalibur/Makefile.rules +++ b/usr/src/uts/sun4u/excalibur/Makefile.rules @@ -23,7 +23,7 @@ # Copyright 1999-2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This Makefile defines the build rules for the directory # uts/sun4u/excalibur. @@ -50,15 +50,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/excalibur/io/%.c $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/excalibur/os/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) - -# -# Section 1b: Lint `object' build rules -# -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/excalibur/io/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/excalibur/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/excalibur/platmod/Makefile b/usr/src/uts/sun4u/excalibur/platmod/Makefile index dca804a517..38c08a830a 100644 --- a/usr/src/uts/sun4u/excalibur/platmod/Makefile +++ b/usr/src/uts/sun4u/excalibur/platmod/Makefile @@ -41,7 +41,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(EXCALIBUR_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(EXCALIBUR_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_EXCALIBUR_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -61,12 +60,8 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -82,17 +77,10 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) check: -LINT_LIB_DIR = $(EXCALIBUR_LINT_LIB_DIR) $(PLATLIB): $(OBJECTS) $(BUILD.SO) $(OBJECTS) diff --git a/usr/src/uts/sun4u/excalibur/xcalppm/Makefile b/usr/src/uts/sun4u/excalibur/xcalppm/Makefile index 719ffcf517..69215b51fd 100644 --- a/usr/src/uts/sun4u/excalibur/xcalppm/Makefile +++ b/usr/src/uts/sun4u/excalibur/xcalppm/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = xcalppm OBJECTS = $(XCALPPM_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(XCALPPM_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_EXCALIBUR_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/excalibur/io @@ -49,19 +48,21 @@ CONF_SRCDIR = $(UTSBASE)/sun4u/excalibur/io # include $(UTSBASE)/sun4u/excalibur/Makefile.excalibur -CLEANLINTFILES = $(LINTS) $(PPM_LINT_LIBS) -CLEANFILES = $(OBJECTS) $(CLEANLINTFILES) +CLEANFILES = $(OBJECTS) CLOBBERFILES = $(OBJS_DIR)/$(MODULE) $(CLEANFILES) # # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # -# lint pass one enforcement +# +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. +# # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses @@ -87,21 +88,13 @@ def: $(DEF_DEPS) all: $(ALL_DEPS) -lint: $(LINT_DEPS) clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) -LINT_LIB_DIR = $(EXCALIBUR_LINT_LIB_DIR) # # Include common targets. diff --git a/usr/src/uts/sun4u/excalibur/xcalwd/Makefile b/usr/src/uts/sun4u/excalibur/xcalwd/Makefile index 98d81b9af3..20b2a7f8b8 100644 --- a/usr/src/uts/sun4u/excalibur/xcalwd/Makefile +++ b/usr/src/uts/sun4u/excalibur/xcalwd/Makefile @@ -23,10 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# uts/sun4u/excalibur/xcalwd/Makefile -# # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -39,7 +35,6 @@ UTSBASE = ../../.. MODULE = xcalwd XCALWD_OBJS = xcalwd.o OBJECTS = $(XCALWD_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(XCALWD_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_EXCALIBUR_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/excalibur/io @@ -48,20 +43,15 @@ CONF_SRCDIR = $(UTSBASE)/sun4u/excalibur/io # include $(UTSBASE)/sun4u/excalibur/Makefile.excalibur -CLEANLINTFILES = $(LINTS) -CLEANFILES = $(OBJECTS) $(CLEANLINTFILES) +CLEANFILES = $(OBJECTS) CLOBBERFILES = $(OBJS_DIR)/$(MODULE) $(CLEANFILES) # # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -83,21 +73,13 @@ def: $(DEF_DEPS) all: $(ALL_DEPS) -lint: $(LINT_DEPS) clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) -LINT_LIB_DIR = $(EXCALIBUR_LINT_LIB_DIR) # # Include common targets. diff --git a/usr/src/uts/sun4u/fd/Makefile b/usr/src/uts/sun4u/fd/Makefile index 2da88952a2..7973ef8074 100644 --- a/usr/src/uts/sun4u/fd/Makefile +++ b/usr/src/uts/sun4u/fd/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../.. # MODULE = fd OBJECTS = $(FD_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(FD_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) ASSYM_H = $(OBJS_DIR)/fd_assym.h @@ -57,7 +56,6 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # @@ -70,19 +68,11 @@ CLEANFILES += $(MODSTUBS_O) $(ASSYM_H) \ $(FDOFF_C) $(FDOFF_S) $(FDOFF_TMP) # -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) - -# -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV -LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON - +CFLAGS += $(CCVERBOSE) CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-char-subscripts @@ -100,12 +90,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(BINARY): $(ASSYM_H) diff --git a/usr/src/uts/sun4u/fjlite/Makefile b/usr/src/uts/sun4u/fjlite/Makefile index 3bb13358bb..7e88469cf3 100644 --- a/usr/src/uts/sun4u/fjlite/Makefile +++ b/usr/src/uts/sun4u/fjlite/Makefile @@ -20,11 +20,10 @@ # CDDL HEADER END # # -# uts/sun4u/fjlite/Makefile # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sun4u fjlite platform # module. @@ -49,12 +48,8 @@ install := TARGET= install install_h := TARGET= install_h clean := TARGET= clean clobber := TARGET= clobber -lint := TARGET= lint -lintlib := TARGET= lintlib -modlintlib := TARGET= modlintlib modlist := TARGET= modlist modlist := NO_STATE= -K $$MODSTATE$$$$ -clean.lint := TARGET= clean.lint check := TARGET= check IMPLEMENTED_PLATFORM = SUNW,UltraAX-i2 @@ -66,30 +61,16 @@ IMPLEMENTED_PLATFORM = SUNW,UltraAX-i2 .PARALLEL: $(FJLITE_KMODS) -def all clean clobber clean.lint modlist: $(FJLITE_KMODS) +def all clean clobber modlist: $(FJLITE_KMODS) install: $(ROOT_FJLITE_DIR) $(USR_FJLITE_DIR) \ .WAIT $(FJLITE_KMODS) -modlintlib: $(FJLITE_KMODS) - $(FJLITE_KMODS): FRC @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) install_h check: -lint: modlintlib .WAIT $(LINT_DEPS) - -LINT_LIBS = $(LINT_LIB) \ - -L$(FJLITE_LINT_LIB_DIR) \ - -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ - $(CLOSED_LINT_KMODS:%=-l%) \ - -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) - -lint.platmod: modlintlib - @-$(ECHO) "\nFJ-lite Platform-dependent module: global crosschecks:" - @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) - # # Include common targets. # diff --git a/usr/src/uts/sun4u/fjlite/Makefile.fjlite b/usr/src/uts/sun4u/fjlite/Makefile.fjlite index 9f38a2fc4d..1d3573fd11 100644 --- a/usr/src/uts/sun4u/fjlite/Makefile.fjlite +++ b/usr/src/uts/sun4u/fjlite/Makefile.fjlite @@ -20,11 +20,10 @@ # CDDL HEADER END # # -# uts/sun4u/fjlite/Makefile # Copyright 2001-2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # Global definitions for sun4u fjlite implementation specific modules. # @@ -55,9 +54,6 @@ USR_FJLITE_INC_DIR = $(USR_FJLITE_DIR)/include USR_FJLITE_ISYS_DIR = $(USR_FJLITE_INC_DIR)/sys -FJLITE_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/fjlite/lint-libs/$(OBJS_DIR) - - # Define Objects # FJLITE_OBJS = fjlite.o @@ -85,8 +81,6 @@ FJLITE_KMODS = platmod include $(UTSBASE)/sun4u/Makefile.sun4u -LINTS_DIR = $(OBJS_DIR) -LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/fjlite/lint-libs/$(OBJS_DIR) # diff --git a/usr/src/uts/sun4u/fjlite/Makefile.rules b/usr/src/uts/sun4u/fjlite/Makefile.rules index 5f55f8366a..e80b331fa5 100644 --- a/usr/src/uts/sun4u/fjlite/Makefile.rules +++ b/usr/src/uts/sun4u/fjlite/Makefile.rules @@ -20,11 +20,10 @@ # CDDL HEADER END # # -# uts/sun4u/fjlite/Makefile # Copyright 2001-2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This Makefile defines the build rules for the directory # uts/sun4u/fjlite and its children. @@ -41,14 +40,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/fjlite/os/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) - -# -# Lint object build rules -# - -# -# fjlite specific drivers -# - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/fjlite/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/fjlite/platmod/Makefile b/usr/src/uts/sun4u/fjlite/platmod/Makefile index 60b29fe7ee..ff5a735c7e 100644 --- a/usr/src/uts/sun4u/fjlite/platmod/Makefile +++ b/usr/src/uts/sun4u/fjlite/platmod/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(FJLITE_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(FJLITE_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_FJLITE_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -60,12 +59,8 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -81,17 +76,10 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) check: -LINT_LIB_DIR = $(FJLITE_LINT_LIB_DIR) $(PLATLIB): $(OBJECTS) $(BUILD.SO) $(OBJECTS) diff --git a/usr/src/uts/sun4u/genassym/Makefile b/usr/src/uts/sun4u/genassym/Makefile index 2c03dc6f9c..8eb2b38ae6 100644 --- a/usr/src/uts/sun4u/genassym/Makefile +++ b/usr/src/uts/sun4u/genassym/Makefile @@ -23,7 +23,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of assym.h through genconst/stabs. # @@ -78,8 +78,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -clean.lint: - install: def install_h: diff --git a/usr/src/uts/sun4u/genunix/Makefile b/usr/src/uts/sun4u/genunix/Makefile index 48ccc65750..0c737c80a1 100644 --- a/usr/src/uts/sun4u/genunix/Makefile +++ b/usr/src/uts/sun4u/genunix/Makefile @@ -45,9 +45,6 @@ GENUNIX = $(OBJS_DIR)/$(MODULE) OBJECTS = $(GENUNIX_OBJS:%=$(OBJS_DIR)/%) \ $(NOT_YET_KMODS:%=$(OBJS_DIR)/%) -LINTS = $(GENUNIX_OBJS:%.o=$(LINTS_DIR)/%.ln) \ - $(NOT_YET_KMODS:%.o=$(LINTS_DIR)/%.ln) - ROOTMODULE = $(ROOT_PSM_KERN_DIR)/$(MODULE) PLATFORM = sun4u @@ -63,7 +60,6 @@ include $(UTSBASE)/sparc/Makefile.sparc # Define targets # ALL_TARGET = $(LIBGEN) $(GENUNIX) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(LIBGEN) $(GENUNIX) $(ROOTMODULE) # @@ -71,10 +67,6 @@ INSTALL_TARGET = $(LIBGEN) $(GENUNIX) $(ROOTMODULE) # CLEANFILES += $(LIBSTUBS) $(LIBGEN) -LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR) -LINT_LIB = $(LINT_LIB_DIR)/llib-lunix.ln -GEN_LINT_LIB = - BINARY = CLOBBERFILES += $(GENUNIX) @@ -90,26 +82,13 @@ IPCTF_TARGET = $(IPCTF) $(PATCH_BUILD)IPCTF_TARGET = # -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) -CPPFLAGS += -I$(SRC)/common -CPPFLAGS += -I$(SRC)/uts/common/fs/zfs - -INC_PATH += -I$(UTSBASE)/sun4 - # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED -LINTTAGS += -erroff=E_STATIC_UNUSED -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV - +# +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-unused-label CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-unused-value @@ -121,11 +100,10 @@ CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-clobbered CERRWARN += -_gcc=-Wno-empty-body -# -# Ensure that lint sees 'struct cpu' containing a fully declared -# embedded 'struct machcpu' -# -LINTFLAGS += -D_MACHDEP -I../../sun4 -I../../$(PLATFORM) -I../../sfmmu +CPPFLAGS += -I$(SRC)/common +CPPFLAGS += -I$(SRC)/uts/common/fs/zfs + +INC_PATH += -I$(UTSBASE)/sun4 # Default build targets. # @@ -141,12 +119,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) install_h: diff --git a/usr/src/uts/sun4u/gptwo_cpu/Makefile b/usr/src/uts/sun4u/gptwo_cpu/Makefile index d1a6c1c16e..78d28a9301 100644 --- a/usr/src/uts/sun4u/gptwo_cpu/Makefile +++ b/usr/src/uts/sun4u/gptwo_cpu/Makefile @@ -26,7 +26,7 @@ # # This makefile drives the production of the cpu portion of -# of the Safari Configurator. +# of the Safari Configurator. # # sun4u implementation architecture dependent # @@ -41,7 +41,6 @@ UTSBASE = ../.. # MODULE = gptwo_cpu OBJECTS = $(GPTWO_CPU_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(GPTWO_CPU_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) # @@ -53,18 +52,8 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) - -# Turn this on once compiler understands v9 in it's backend -#INLINES += $(UTSBASE)/sun4u/io/gptwo_cpu.il - -# -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) - # # Turn on doubleword alignment for 64 bit registers # @@ -74,7 +63,6 @@ CFLAGS += -dalign # Pick up defines in cheetahregs.h. # CFLAGS += -DCHEETAH_PLUS -LINTFLAGS += -DCHEETAH_PLUS # # module dependencies @@ -82,12 +70,11 @@ LINTFLAGS += -DCHEETAH_PLUS LDFLAGS += -dy -Nmisc/gptwocfg # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_STATIC_UNUSED - +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-unused-function @@ -104,12 +91,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/gptwocfg/Makefile b/usr/src/uts/sun4u/gptwocfg/Makefile index 5fc69800a4..113e7cebc4 100644 --- a/usr/src/uts/sun4u/gptwocfg/Makefile +++ b/usr/src/uts/sun4u/gptwocfg/Makefile @@ -19,11 +19,10 @@ # CDDL HEADER END # # -# uts/sun4u/gptwocfg/Makefile # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the gptwocfg Safari Configurator # @@ -40,7 +39,6 @@ UTSBASE = ../.. # MODULE = gptwocfg OBJECTS = $(GPTWOCFG_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(GPTWOCFG_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) # @@ -52,15 +50,8 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# Turn this on once compiler understands v9 in it's backend -#INLINES += $(UTSBASE)/sun4u/io/gptwocfg.il - -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -81,12 +72,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/grbeep/Makefile b/usr/src/uts/sun4u/grbeep/Makefile index 7512505569..2e84526bfc 100644 --- a/usr/src/uts/sun4u/grbeep/Makefile +++ b/usr/src/uts/sun4u/grbeep/Makefile @@ -23,9 +23,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# uts/sun4u/grbeep/Makefile + # # This makefile drives the production of the grbeep driver. # @@ -38,7 +36,6 @@ UTSBASE = ../.. # MODULE = grbeep OBJECTS = $(GRBEEP_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(GRBEEP_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -46,16 +43,12 @@ ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # include $(UTSBASE)/sun4u/Makefile.sun4u -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) .KEEP_STATE: @@ -68,12 +61,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/grover/Makefile b/usr/src/uts/sun4u/grover/Makefile index 23cebd1432..f9883da5e1 100644 --- a/usr/src/uts/sun4u/grover/Makefile +++ b/usr/src/uts/sun4u/grover/Makefile @@ -20,11 +20,10 @@ # CDDL HEADER END # # -# uts/sun4u/grover/Makefile # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sun4u grover platform # module. @@ -48,12 +47,8 @@ install := TARGET= install install_h := TARGET= install_h clean := TARGET= clean clobber := TARGET= clobber -lint := TARGET= lint -lintlib := TARGET= lintlib -modlintlib := TARGET= modlintlib modlist := TARGET= modlist modlist := NO_STATE= -K $$MODSTATE$$$$ -clean.lint := TARGET= clean.lint check := TARGET= check # @@ -61,11 +56,9 @@ check := TARGET= check # .KEEP_STATE: -def all clean clean.lint clobber modlist: $(GROVER_KMODS) \ +def all clean clobber modlist: $(GROVER_KMODS) \ $(CLOSED_GROVER_KMODS) -modlintlib: $(GROVER_KMODS) $(CLOSED_GROVER_KMODS) - install: $(ROOT_GROVER_DIR) \ $(USR_GROVER_DIR) \ $(USR_GROVER_INC_DIR) \ @@ -76,24 +69,6 @@ install: $(ROOT_GROVER_DIR) \ check install_h: -lint: modlintlib - -# -# The 'lint.platmod' target lints the grover platform module against the sun4u -# kernel. This ends up doing all the kernel cross-checks, so it takes a couple -# of minutes. Due to the low ROI, it's not run by default, but it's a good -# idea to run this if you change os/grover.c. -# -LINT_LIBS = $(LINT_LIB) \ - -L$(GROVER_LINT_LIB_DIR) \ - -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ - $(CLOSED_LINT_KMODS:%=-l%) \ - -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) - -lint.platmod: modlintlib - @-$(ECHO) "\nGrover Platform-dependent module: global crosschecks:" - @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) - $(GROVER_KMODS): FRC @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) diff --git a/usr/src/uts/sun4u/grover/Makefile.grover b/usr/src/uts/sun4u/grover/Makefile.grover index cd1f23c48c..4827bee2c5 100644 --- a/usr/src/uts/sun4u/grover/Makefile.grover +++ b/usr/src/uts/sun4u/grover/Makefile.grover @@ -50,9 +50,6 @@ USR_GROVER_ISYS_DIR = $(USR_GROVER_INC_DIR)/sys USR_GROVER_SBIN_DIR = $(USR_GROVER_DIR)/sbin USR_GROVER_LIB_DIR = $(USR_GROVER_DIR)/lib - -GROVER_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/grover/lint-libs/$(OBJS_DIR) - # # Define objects. # @@ -70,15 +67,3 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # GROVER_KMODS = platmod GROVER_KMODS += grfans - -# -# 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_SUSPICIOUS_COMPARISON -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED -LINTTAGS += -erroff=E_STATIC_UNUSED -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV diff --git a/usr/src/uts/sun4u/grover/Makefile.rules b/usr/src/uts/sun4u/grover/Makefile.rules index dae9002b2d..8287ae2870 100644 --- a/usr/src/uts/sun4u/grover/Makefile.rules +++ b/usr/src/uts/sun4u/grover/Makefile.rules @@ -23,7 +23,7 @@ # Copyright 2000-2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This Makefile defines the build rules for the directory # uts/sun4u/grover. @@ -50,15 +50,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/grover/io/%.c $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/grover/os/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) - -# -# Section 1b: Lint `object' build rules -# -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/grover/io/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/grover/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/grover/grfans/Makefile b/usr/src/uts/sun4u/grover/grfans/Makefile index 4936e4170c..b18a65e712 100644 --- a/usr/src/uts/sun4u/grover/grfans/Makefile +++ b/usr/src/uts/sun4u/grover/grfans/Makefile @@ -1,8 +1,9 @@ # -#ident "%Z%%M% %I% %E% SMI" + # # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. +# # This makefile drives the production of the grover_fans driver. # @@ -15,7 +16,6 @@ UTSBASE = ../../.. # MODULE = grfans OBJECTS = $(GRFANS_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(GRFANS_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_GROVER_DRV_DIR)/$(MODULE) # @@ -23,9 +23,6 @@ ROOTMODULE = $(ROOT_GROVER_DRV_DIR)/$(MODULE) # include $(UTSBASE)/sun4u/grover/Makefile.grover -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(UTSBASE)/sun4u/grover @@ -34,7 +31,6 @@ CPPFLAGS += -I$(UTSBASE)/sun4u/grover # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) .KEEP_STATE: @@ -47,12 +43,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/grover/platmod/Makefile b/usr/src/uts/sun4u/grover/platmod/Makefile index 7962801ce2..d930cfbe5a 100644 --- a/usr/src/uts/sun4u/grover/platmod/Makefile +++ b/usr/src/uts/sun4u/grover/platmod/Makefile @@ -61,9 +61,6 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) ALL_TARGET = $(SYM_MOD) INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # diff --git a/usr/src/uts/sun4u/hummingbird/Makefile b/usr/src/uts/sun4u/hummingbird/Makefile index 1e114e429e..85db3c52f0 100644 --- a/usr/src/uts/sun4u/hummingbird/Makefile +++ b/usr/src/uts/sun4u/hummingbird/Makefile @@ -41,7 +41,6 @@ UTSBASE = ../.. # MODULE = SUNW,UltraSPARC-IIe OBJECTS = $(HUMMINGBIRD_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(HUMMINGBIRD_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE) ROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_PSM_CPU_DIR)/%) @@ -62,15 +61,9 @@ CLEANFILES += $(CPULIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS) # -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) - -# # cpu-module-specific flags # CPPFLAGS += -DCPU_MODULE -DHUMMINGBIRD @@ -89,12 +82,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(CPULIB): $(OBJECTS) @@ -113,12 +100,9 @@ $(ROOTSOFTLINKS): $(ROOTMODULE) include $(UTSBASE)/sun4u/Makefile.targ # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV -LINTTAGS += -erroff=E_BAD_FORMAT_STR2 - +CFLAGS += $(CCVERBOSE) CERRWARN += $(CNOWARN_UNINIT) diff --git a/usr/src/uts/sun4u/i2c_svc/Makefile b/usr/src/uts/sun4u/i2c_svc/Makefile index f17f211c52..fc5d917b3a 100644 --- a/usr/src/uts/sun4u/i2c_svc/Makefile +++ b/usr/src/uts/sun4u/i2c_svc/Makefile @@ -13,7 +13,6 @@ UTSBASE = ../.. # MODULE = i2c_svc OBJECTS = $(I2C_SVC_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(I2C_SVC_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) # @@ -21,9 +20,6 @@ ROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) # include $(UTSBASE)/sun4u/Makefile.sun4u -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) LDFLAGS += -dy @@ -32,7 +28,6 @@ LDFLAGS += -dy # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) .KEEP_STATE: @@ -45,12 +40,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/isadma/Makefile b/usr/src/uts/sun4u/isadma/Makefile index 6e92243d9a..10445eab46 100644 --- a/usr/src/uts/sun4u/isadma/Makefile +++ b/usr/src/uts/sun4u/isadma/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../.. # MODULE = isadma OBJECTS = $(ISADMA_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(ISADMA_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -52,28 +51,20 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) - -# # Turn on doubleword alignment for 64 bit registers # CFLAGS += -dalign CPPFLAGS += -I$(UTSBASE)/sun4u # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW - +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-switch # @@ -89,12 +80,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/jalapeno/Makefile b/usr/src/uts/sun4u/jalapeno/Makefile index 90606a8e04..3f2b9f82f4 100644 --- a/usr/src/uts/sun4u/jalapeno/Makefile +++ b/usr/src/uts/sun4u/jalapeno/Makefile @@ -41,7 +41,6 @@ UTSBASE = ../.. # MODULE = SUNW,UltraSPARC-IIIi OBJECTS = $(JALAPENO_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(JALAPENO_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE) ROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_PSM_CPU_DIR)/%) @@ -62,14 +61,10 @@ CLEANFILES += $(CPULIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS) -# -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) -DCHEETAH -DJALAPENO -DCPU_IMP_L1_CACHE_PARITY \ - -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE +CFLAGS += -DCHEETAH -DJALAPENO -DCPU_IMP_L1_CACHE_PARITY \ + -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE ASFLAGS += -DCHEETAH -DJALAPENO -DCPU_IMP_L1_CACHE_PARITY \ -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE @@ -94,12 +89,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(CPULIB): $(OBJECTS) @@ -118,16 +107,11 @@ $(ROOTSOFTLINKS): $(ROOTMODULE) include $(UTSBASE)/sun4u/Makefile.targ # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_STATIC_UNUSED -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV - +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-type-limits diff --git a/usr/src/uts/sun4u/javelin/Makefile b/usr/src/uts/sun4u/javelin/Makefile index f5fe9042a7..2f8ed9a641 100644 --- a/usr/src/uts/sun4u/javelin/Makefile +++ b/usr/src/uts/sun4u/javelin/Makefile @@ -20,11 +20,10 @@ # CDDL HEADER END # # -# uts/sun4u/javelin/Makefile # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of all Javelin system # dependent modules for the sun4u architecture. @@ -46,12 +45,8 @@ install := TARGET= install install_h := TARGET= install_h clean := TARGET= clean clobber := TARGET= clobber -lint := TARGET= lint -lintlib := TARGET= lintlib -modlintlib := TARGET= modlintlib modlist := TARGET= modlist modlist := NO_STATE= -K $$MODSTATE$$$$ -clean.lint := TARGET= clean.lint check := TARGET= check # @@ -59,12 +54,10 @@ check := TARGET= check # .KEEP_STATE: -def all clean.lint clean clobber modlist: $(JAVELIN_KMODS) \ +def all clean clobber modlist: $(JAVELIN_KMODS) \ $(CLOSED_JAVELIN_KMODS) -modlintlib: $(JAVELIN_KMODS) $(CLOSED_JAVELIN_KMODS) - -install: $(ROOT_JAVELIN_DIR) $(USR_JAVELIN_DIR) \ +install: $(ROOT_JAVELIN_DIR) $(USR_JAVELIN_DIR) \ $(USR_JAVELIN_INC_DIR) \ $(USR_JAVELIN_SBIN_DIR) \ $(USR_JAVELIN_LIB_DIR) \ @@ -72,24 +65,6 @@ install: $(ROOT_JAVELIN_DIR) $(USR_JAVELIN_DIR) \ install_h check: -lint: modlintlib - -# -# The 'lint.platmod' target lints the javelin platform module against the sun4u -# kernel. This ends up doing all the kernel cross-checks, so it takes a couple -# of minutes. Due to the low ROI, it's not run by default, but it's a good -# idea to run this if you change os/javelin.c. -# -LINT_LIBS = $(LINT_LIB) \ - -L$(JAVELIN_LINT_LIB_DIR) \ - -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ - $(CLOSED_LINT_KMODS:%=-l%) \ - -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) - -lint.platmod: modlintlib - @-$(ECHO) "\nJavelin Platform-dependent module: global crosschecks:" - @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) - $(JAVELIN_KMODS): FRC @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) diff --git a/usr/src/uts/sun4u/javelin/Makefile.javelin b/usr/src/uts/sun4u/javelin/Makefile.javelin index e36b2ce589..6bd0cf3739 100644 --- a/usr/src/uts/sun4u/javelin/Makefile.javelin +++ b/usr/src/uts/sun4u/javelin/Makefile.javelin @@ -54,8 +54,6 @@ USR_JAVELIN_SBIN_DIR = $(USR_JAVELIN_DIR)/sbin USR_JAVELIN_LIB_DIR = $(USR_JAVELIN_DIR)/lib USR_JAVELIN_ISYS_DIR = $(USR_JAVELIN_INC_DIR)/sys -JAVELIN_LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/javelin/lint-libs/$(OBJS_DIR) - # # Define objects. # diff --git a/usr/src/uts/sun4u/javelin/Makefile.rules b/usr/src/uts/sun4u/javelin/Makefile.rules index b22f385be1..24d9c1e8ad 100644 --- a/usr/src/uts/sun4u/javelin/Makefile.rules +++ b/usr/src/uts/sun4u/javelin/Makefile.rules @@ -23,9 +23,9 @@ # Copyright 1994-2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # -# This Makefile defines the build rules for the directory +# This Makefile defines the build rules for the directory # uts/sun4u/javelin and its children. # # The following two-level ordering must be maintained in this file. @@ -46,12 +46,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/javelin/io/%.c $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/javelin/os/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) - -# -# Section 1b: Lint `object' build rules -# -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/javelin/io/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/javelin/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/javelin/envctrltwo/Makefile b/usr/src/uts/sun4u/javelin/envctrltwo/Makefile index cee65d58e4..efa713ee6a 100644 --- a/usr/src/uts/sun4u/javelin/envctrltwo/Makefile +++ b/usr/src/uts/sun4u/javelin/envctrltwo/Makefile @@ -39,7 +39,6 @@ UTSBASE = ../../.. # MODULE = envctrltwo OBJECTS = $(ENVCTRLTWO_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(ENVCTRLTWO_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_JAVELIN_DRV_DIR)/$(MODULE) # @@ -51,11 +50,12 @@ include $(UTSBASE)/sun4u/javelin/Makefile.javelin # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses @@ -81,15 +81,8 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) +install: $(INSTALL_DEPS) -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - -install: $(INSTALL_DEPS) - -LINT_LIB_DIR = $(JAVELIN_LINT_LIB_DIR) # # Include common targets. diff --git a/usr/src/uts/sun4u/javelin/platmod/Makefile b/usr/src/uts/sun4u/javelin/platmod/Makefile index 7c0cec4937..6367f70367 100644 --- a/usr/src/uts/sun4u/javelin/platmod/Makefile +++ b/usr/src/uts/sun4u/javelin/platmod/Makefile @@ -38,7 +38,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(JAVELIN_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(JAVELIN_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_JAVELIN_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -58,12 +57,8 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -79,17 +74,10 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) check: -LINT_LIB_DIR =$(JAVELIN_LINT_LIB_DIR) $(PLATLIB): $(OBJECTS) $(BUILD.SO) $(OBJECTS) diff --git a/usr/src/uts/sun4u/jbusppm/Makefile b/usr/src/uts/sun4u/jbusppm/Makefile index fdd4ef8005..2212b5b347 100644 --- a/usr/src/uts/sun4u/jbusppm/Makefile +++ b/usr/src/uts/sun4u/jbusppm/Makefile @@ -19,12 +19,10 @@ # CDDL HEADER END # # -# uts/sun4u/jbusppm/Makefile -# # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the power managment # module for the JBus @@ -42,7 +40,6 @@ UTSBASE = ../.. # MODULE = jbusppm OBJECTS = $(JBUSPPM_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(JBUSPPM_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -54,22 +51,11 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # -# 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 - -# # Turn on doubleword alignment for 64 bit registers # CFLAGS += -dalign @@ -87,12 +73,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/littleneck/Makefile.littleneck b/usr/src/uts/sun4u/littleneck/Makefile.littleneck index a177fdcc71..1a7553489a 100644 --- a/usr/src/uts/sun4u/littleneck/Makefile.littleneck +++ b/usr/src/uts/sun4u/littleneck/Makefile.littleneck @@ -20,11 +20,10 @@ # CDDL HEADER END # # -# uts/sun4u/littleneck/Makefile.littleneck # Copyright 1994-2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile contains the common definitions for the # sun4u Littleneck system dependent modules. @@ -60,7 +59,6 @@ USR_LITTLENECK_SBIN_DIR = $(USR_LITTLENECK_DIR)/sbin USR_LITTLENECK_LIB_DIR = $(USR_LITTLENECK_DIR)/lib USR_LITTLENECK_ISYS_DIR = $(USR_LITTLENECK_INC_DIR)/sys -LITTLENECK_LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/littleneck/lint-libs/$(OBJS_DIR) # # Define objects. # diff --git a/usr/src/uts/sun4u/littleneck/Makefile.rules b/usr/src/uts/sun4u/littleneck/Makefile.rules index 72e33ce9ba..4aef5bc9c0 100644 --- a/usr/src/uts/sun4u/littleneck/Makefile.rules +++ b/usr/src/uts/sun4u/littleneck/Makefile.rules @@ -23,9 +23,9 @@ # Copyright 1994-2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # -# This Makefile defines the build rules for the directory +# This Makefile defines the build rules for the directory # uts/sun4u/littleneck and its children. # # The following two-level ordering must be maintained in this file. @@ -46,12 +46,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/littleneck/io/%.c $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/littleneck/os/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) - -# -# Section 1b: Lint `object' build rules -# -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/littleneck/io/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/littleneck/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/littleneck/pcf8574/Makefile b/usr/src/uts/sun4u/littleneck/pcf8574/Makefile index 80ef5d5c5a..1417bb2704 100644 --- a/usr/src/uts/sun4u/littleneck/pcf8574/Makefile +++ b/usr/src/uts/sun4u/littleneck/pcf8574/Makefile @@ -20,11 +20,9 @@ # CDDL HEADER END # # -# uts/sun4u/littleneck/pcf8574/Makefile # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # This makefile drives the production of the pcf8574 driver kernel # module in the sun4u littleneck systems. @@ -40,7 +38,6 @@ UTSBASE = ../../.. # MODULE = pcf8574 OBJECTS = $(LITTLENECK_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(LITTLENECK_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_LITTLENECK_DRV_DIR)/$(MODULE) # @@ -52,17 +49,12 @@ include $(UTSBASE)/sun4u/littleneck/Makefile.littleneck # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES = $(LINT32_FILES) $(NOT_RELEASE_BUILD)DEF_BUILDS = debug64 -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -84,15 +76,8 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - -install: $(INSTALL_DEPS) +install: $(INSTALL_DEPS) -LINT_LIB_DIR = $(LITTLENECK_LINT_LIB_DIR) # # Include common targets. diff --git a/usr/src/uts/sun4u/littleneck/platmod/Makefile b/usr/src/uts/sun4u/littleneck/platmod/Makefile index f867e8a660..eec5f5a68d 100644 --- a/usr/src/uts/sun4u/littleneck/platmod/Makefile +++ b/usr/src/uts/sun4u/littleneck/platmod/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(LNECKPLATMOD_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(LNECKPLATMOD_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_LITTLENECK_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -60,16 +59,12 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) ALL_BUILDS = debug64 obj64 DEF_BUILDS = obj64 $(NOT_RELEASE_BUILD)DEF_BUILDS = debug64 -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -85,17 +80,10 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) check: -LINT_LIB_DIR = $(LITTLENECK_LINT_LIB_DIR) $(PLATLIB): $(OBJECTS) $(BUILD.SO) $(OBJECTS) diff --git a/usr/src/uts/sun4u/lw2plus/Makefile b/usr/src/uts/sun4u/lw2plus/Makefile index 951c9df77d..3b2044513b 100644 --- a/usr/src/uts/sun4u/lw2plus/Makefile +++ b/usr/src/uts/sun4u/lw2plus/Makefile @@ -46,12 +46,8 @@ install := TARGET= install install_h := TARGET= install_h clean := TARGET= clean clobber := TARGET= clobber -lint := TARGET= lint -lintlib := TARGET= lintlib -modlintlib := TARGET= modlintlib modlist := TARGET= modlist modlist := NO_STATE= -K $$MODSTATE$$$$ -clean.lint := TARGET= clean.lint check := TARGET= check # @@ -59,11 +55,7 @@ check := TARGET= check # .KEEP_STATE: -def all clean clean.lint clobber modlist: $(LW2PLUS_KMODS) - -lintlib: unix - -modlintlib: $(LW2PLUS_KMODS) +def all clean clobber modlist: $(LW2PLUS_KMODS) IMPLEMENTED_PLATFORM = SUNW,Netra-T4 LINKS2DESTDIR = ../../../../SUNW,Sun-Fire-280R/kernel/misc/sparcv9 @@ -81,13 +73,6 @@ install: $(ROOT_LW2PLUS_DIR) $(USR_LW2PLUS_DIR) \ install_h check: -lint: modlintlib - -LINT_LIBS = $(LINT_LIB) \ - -L$(LW2PLUS_LINT_LIB_DIR) \ - -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ - -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) - $(LW2PLUS_KMODS): FRC @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) diff --git a/usr/src/uts/sun4u/lw2plus/Makefile.lw2plus b/usr/src/uts/sun4u/lw2plus/Makefile.lw2plus index f05ceac979..6d680e1eb9 100644 --- a/usr/src/uts/sun4u/lw2plus/Makefile.lw2plus +++ b/usr/src/uts/sun4u/lw2plus/Makefile.lw2plus @@ -23,8 +23,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # Global definitions for sun4u implementation specific modules. @@ -58,8 +56,6 @@ USR_LW2PLUS_ISYS_DIR = $(USR_LW2PLUS_INC_DIR)/sys USR_LW2PLUS_SBIN_DIR = $(USR_LW2PLUS_DIR)/sbin USR_LW2PLUS_LIB_DIR = $(USR_LW2PLUS_DIR)/lib -LW2PLUS_LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lw2plus/lint-libs/$(OBJS_DIR) - # # Define modules. # @@ -93,8 +89,6 @@ include $(UTSBASE)/sun4u/Makefile.sun4u UNIX_DIR = $(UTSBASE)/$(PLATFORM)/littleneck/unix MODSTUBS_DIR = $(UNIX_DIR) DSF_DIR = $(UTSBASE)/$(PLATFORM)/littleneck/genassym -LINTS_DIR = $(OBJS_DIR) -LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lw2plus/lint-libs/$(OBJS_DIR) # # Define the actual specific platforms @@ -116,13 +110,3 @@ MACHINE_DEFS = -D$(PLATFORM) -D_MACHDEP -DSFMMU -DMP CPP_DEFS_32 = CPP_DEFS_64 = -D__sparcv9 CPP_DEFS = $(CPP_DEFS_$(CLASS)) - -# -# 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_SUSPICIOUS_COMPARISON -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV - diff --git a/usr/src/uts/sun4u/lw2plus/Makefile.rules b/usr/src/uts/sun4u/lw2plus/Makefile.rules index d96d7add6d..b39108ef8e 100644 --- a/usr/src/uts/sun4u/lw2plus/Makefile.rules +++ b/usr/src/uts/sun4u/lw2plus/Makefile.rules @@ -22,8 +22,6 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # This Makefile defines the build rules for the directory @@ -44,9 +42,3 @@ $(OBJS_DIR)/lombus.o: $(UTSBASE)/sun4u/lw2plus/io/lombus.c $(COMPILE.c) -o $@ $(UTSBASE)/sun4u/lw2plus/io/lombus.c $(CTFCONVERT_O) - -# -# Section 1b: Lint `object' build rules -# -$(LINTS_DIR)/lombus.ln: $(UTSBASE)/sun4u/lw2plus/io/lombus.c - @($(LHEAD) $(LINT.c) $(UTSBASE)/sun4u/lw2plus/io/lombus.c $(LTAIL)) diff --git a/usr/src/uts/sun4u/lw2plus/lombus/Makefile b/usr/src/uts/sun4u/lw2plus/lombus/Makefile index ad32f3b5ed..f0d7fb1b26 100644 --- a/usr/src/uts/sun4u/lw2plus/lombus/Makefile +++ b/usr/src/uts/sun4u/lw2plus/lombus/Makefile @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the lombus driver kernel # module in the sun4u LW2plus systems @@ -39,7 +39,6 @@ UTSBASE = ../../.. # MODULE = lombus OBJECTS = $(LOMBUS_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(LOMBUS_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_LW2PLUS_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/lw2plus/io @@ -52,7 +51,6 @@ include $(UTSBASE)/sun4u/lw2plus/Makefile.lw2plus # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # @@ -60,11 +58,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -85,12 +79,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/lw8/Makefile b/usr/src/uts/sun4u/lw8/Makefile index 8b54a2bfd4..3d233350da 100644 --- a/usr/src/uts/sun4u/lw8/Makefile +++ b/usr/src/uts/sun4u/lw8/Makefile @@ -45,12 +45,8 @@ install := TARGET= install install_h := TARGET= install_h clean := TARGET= clean clobber := TARGET= clobber -lint := TARGET= lint -lintlib := TARGET= lintlib -modlintlib := TARGET= modlintlib modlist := TARGET= modlist modlist := NO_STATE= -K $$MODSTATE$$$$ -clean.lint := TARGET= clean.lint check := TARGET= check # @@ -58,11 +54,7 @@ check := TARGET= check # .KEEP_STATE: -def all clean clean.lint clobber modlist: $(LW8_KMODS) - -lintlib: unix - -modlintlib: $(LW8_KMODS) +def all clean clobber modlist: $(LW8_KMODS) IMPLEMENTED_PLATFORM = SUNW,Netra-T12 LINKS2DESTDIR = ../../SUNW,Sun-Fire/kernel @@ -77,7 +69,7 @@ LW8_LINKS_4 = SUNW,Netra-T12/kernel/misc/sparcv9/sbdp LW8_PLAT_LINKS_2 = $(LW8_LINKS_2:%=$(ROOT_PLAT_DIR)/%) LW8_PLAT_LINKS_3 = $(LW8_LINKS_3:%=$(ROOT_PLAT_DIR)/%) LW8_PLAT_LINKS_4 = $(LW8_LINKS_4:%=$(ROOT_PLAT_DIR)/%) - + install: $(ROOT_LW8_DIR) $(USR_LW8_DIR) \ $(USR_LW8_INC_DIR) \ $(USR_LW8_SBIN_DIR) \ @@ -94,15 +86,6 @@ $(LW8_KMODS): FRC install_h check: FRC @cd sys; pwd; $(MAKE) $(TARGET) - -lint: modlintlib - -LINT_LIBS = $(LINT_LIB) \ - -L$(LW8_LINT_LIB_DIR) \ - -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ - $(CLOSED_LINT_KMODS:%=-l%) \ - -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) - $(LW8_PLAT_LINKS_2): $(ROOT_LW8_MOD_DIR) $(RM) $@; $(SYMLINK) $(LINKS2DESTDIR)/$(@F) $@ diff --git a/usr/src/uts/sun4u/lw8/Makefile.lw8 b/usr/src/uts/sun4u/lw8/Makefile.lw8 index 1f310679ca..9b4d419b49 100644 --- a/usr/src/uts/sun4u/lw8/Makefile.lw8 +++ b/usr/src/uts/sun4u/lw8/Makefile.lw8 @@ -23,7 +23,6 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" # # Global definitions for sun4u implementation specific modules. @@ -59,8 +58,6 @@ USR_LW8_ISYS_DIR = $(USR_LW8_INC_DIR)/sys USR_LW8_SBIN_DIR = $(USR_LW8_DIR)/sbin USR_LW8_LIB_DIR = $(USR_LW8_DIR)/lib -LW8_LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lw8/lint-libs/$(OBJS_DIR) - # # Define modules. # @@ -94,8 +91,6 @@ include $(UTSBASE)/sun4u/Makefile.sun4u UNIX_DIR = $(UTSBASE)/$(PLATFORM)/serengeti/unix MODSTUBS_DIR = $(UNIX_DIR) DSF_DIR = $(UTSBASE)/$(PLATFORM)/serengeti/genassym -LINTS_DIR = $(OBJS_DIR) -LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lw8/lint-libs/$(OBJS_DIR) # # Define the actual specific platforms @@ -121,13 +116,3 @@ CPP_DEFS_32 = CPP_DEFS_64 = -D__sparcv9 CPP_DEFS = $(CPP_DEFS_$(CLASS)) -# -# 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_SUSPICIOUS_COMPARISON -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV -LINTTAGS += -erroff=E_STATIC_UNUSED diff --git a/usr/src/uts/sun4u/lw8/Makefile.rules b/usr/src/uts/sun4u/lw8/Makefile.rules index b92a996402..03a61c05c8 100644 --- a/usr/src/uts/sun4u/lw8/Makefile.rules +++ b/usr/src/uts/sun4u/lw8/Makefile.rules @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This Makefile defines the build rules for the directory # uts/sun4u/lw8. @@ -53,18 +53,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/lw8/os/%.c $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/serengeti/os/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) - -# -# Section 1b: Lint `object' build rules -# -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/lw8/io/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/lw8/ml/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/lw8/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/serengeti/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/lw8/lw8/Makefile b/usr/src/uts/sun4u/lw8/lw8/Makefile index c74d83fa27..cd37f8496d 100644 --- a/usr/src/uts/sun4u/lw8/lw8/Makefile +++ b/usr/src/uts/sun4u/lw8/lw8/Makefile @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the "lw8" driver module. # @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = lw8 OBJECTS = $(LW8_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(LW8_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_LW8_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/lw8/io @@ -53,7 +52,6 @@ include $(UTSBASE)/sun4u/lw8/Makefile.lw8 # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # @@ -61,12 +59,8 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) -# -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Ndrv/sgsbbc # @@ -82,12 +76,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/lw8/ntwdt/Makefile b/usr/src/uts/sun4u/lw8/ntwdt/Makefile index 6a66d5c2f1..6da8f32a96 100644 --- a/usr/src/uts/sun4u/lw8/ntwdt/Makefile +++ b/usr/src/uts/sun4u/lw8/ntwdt/Makefile @@ -39,7 +39,6 @@ UTSBASE = ../../.. # MODULE = ntwdt OBJECTS = $(NTWDT_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(NTWDT_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_LW8_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/lw8/io @@ -52,7 +51,6 @@ include $(UTSBASE)/sun4u/lw8/Makefile.lw8 # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # @@ -60,10 +58,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += $(CNOWARN_UNINIT) @@ -83,12 +82,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/lw8/platmod/Makefile b/usr/src/uts/sun4u/lw8/platmod/Makefile index 65ed6d1ac9..da9d82067d 100644 --- a/usr/src/uts/sun4u/lw8/platmod/Makefile +++ b/usr/src/uts/sun4u/lw8/platmod/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(LW8_PLATMOD_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(LW8_PLATMOD_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_LW8_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -60,7 +59,6 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # @@ -68,10 +66,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-unused-variable @@ -90,17 +89,10 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) check: -LINT_LIB_DIR =$(LW8_LINT_LIB_DIR) $(PLATLIB): $(OBJECTS) $(BUILD.SO) $(OBJECTS) diff --git a/usr/src/uts/sun4u/lw8/sgenv/Makefile b/usr/src/uts/sun4u/lw8/sgenv/Makefile index e35528e081..f9ef889bf2 100644 --- a/usr/src/uts/sun4u/lw8/sgenv/Makefile +++ b/usr/src/uts/sun4u/lw8/sgenv/Makefile @@ -37,9 +37,8 @@ UTSBASE = ../../.. # # Define the module and object file sets. # -MODULE = sgenv +MODULE = sgenv OBJECTS = $(SGENV_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SGENV_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_LW8_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/lw8/io @@ -52,7 +51,6 @@ include $(UTSBASE)/sun4u/lw8/Makefile.lw8 # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # @@ -60,14 +58,15 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) -# -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Ndrv/sgsbbc +# +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. +# +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-type-limits # @@ -83,12 +82,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/lw8/sgfru/Makefile b/usr/src/uts/sun4u/lw8/sgfru/Makefile index 534f7399d4..f5128a24e8 100644 --- a/usr/src/uts/sun4u/lw8/sgfru/Makefile +++ b/usr/src/uts/sun4u/lw8/sgfru/Makefile @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production (aka, builds) the # lw8 sgfru (fru) kernel module. @@ -37,7 +37,6 @@ UTSBASE = ../../.. # MODULE = sgfru OBJECTS = $(SGFRU_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SGFRU_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_LW8_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/lw8/io @@ -50,7 +49,6 @@ include $(UTSBASE)/sun4u/lw8/Makefile.lw8 # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # @@ -58,11 +56,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Ndrv/sgsbbc @@ -79,12 +73,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/mc-us3/Makefile b/usr/src/uts/sun4u/mc-us3/Makefile index 02f46fc300..795038659f 100644 --- a/usr/src/uts/sun4u/mc-us3/Makefile +++ b/usr/src/uts/sun4u/mc-us3/Makefile @@ -39,7 +39,6 @@ UTSBASE = ../.. # MODULE = mc-us3 OBJECTS = $(MC_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(MC_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -51,26 +50,19 @@ include $(UTSBASE)/sun4u/Makefile.sun4u #Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -#lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) - -# #Turn on doubleword alignment for 64 bit registers # CFLAGS += -dalign # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN - +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses # @@ -86,12 +78,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/mc-us3i/Makefile b/usr/src/uts/sun4u/mc-us3i/Makefile index a4db4e00b0..5833dc2d81 100644 --- a/usr/src/uts/sun4u/mc-us3i/Makefile +++ b/usr/src/uts/sun4u/mc-us3i/Makefile @@ -26,7 +26,7 @@ # # -# This makefile drives the production of the mc-us3i driver kernel +# This makefile drives the production of the mc-us3i driver kernel # module. # # sun4u implementation architecture dependent @@ -42,7 +42,6 @@ UTSBASE = ../.. # MODULE = mc-us3i OBJECTS = $(MC_US3I_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(MC_US3I_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -54,11 +53,12 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses @@ -82,12 +82,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/md5/Makefile b/usr/src/uts/sun4u/md5/Makefile index b7f9942009..c631219586 100644 --- a/usr/src/uts/sun4u/md5/Makefile +++ b/usr/src/uts/sun4u/md5/Makefile @@ -39,7 +39,6 @@ UTSBASE = ../.. # MODULE = md5 OBJECTS = $(MD5_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(MD5_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_CRYPTO_DIR)/$(MODULE) ROOTLINK = $(ROOT_PSM_MISC_DIR)/$(MODULE) @@ -52,13 +51,9 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) -# -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) # # md5 depends on the kcf framework @@ -83,12 +78,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(ROOTLINK): $(ROOT_PSM_MISC_DIR) $(ROOTMODULE) diff --git a/usr/src/uts/sun4u/mem_cache/Makefile b/usr/src/uts/sun4u/mem_cache/Makefile index d71809bf31..180cd34ef2 100644 --- a/usr/src/uts/sun4u/mem_cache/Makefile +++ b/usr/src/uts/sun4u/mem_cache/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../.. # MODULE = mem_cache OBJECTS = $(MEM_CACHE_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(MEM_CACHE_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/io @@ -53,13 +52,14 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) DSF_DIR = $(UTSBASE)/$(PLATFORM)/mem_cache/genassym # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses @@ -83,12 +83,6 @@ clean: genassym $(CLEAN_DEPS) clobber: genassym $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: genassym $(INSTALL_DEPS) genassym : FRC diff --git a/usr/src/uts/sun4u/mem_cache/genassym/Makefile b/usr/src/uts/sun4u/mem_cache/genassym/Makefile index e1a67ee2bf..d3831bd248 100644 --- a/usr/src/uts/sun4u/mem_cache/genassym/Makefile +++ b/usr/src/uts/sun4u/mem_cache/genassym/Makefile @@ -19,11 +19,10 @@ # CDDL HEADER END # # -# # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of assym.h through genconst/stabs. # @@ -78,8 +77,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -clean.lint: - install: def install_h: diff --git a/usr/src/uts/sun4u/mpxu/Makefile.mpxu b/usr/src/uts/sun4u/mpxu/Makefile.mpxu index d57afbc988..1d2a635cd3 100644 --- a/usr/src/uts/sun4u/mpxu/Makefile.mpxu +++ b/usr/src/uts/sun4u/mpxu/Makefile.mpxu @@ -56,8 +56,6 @@ USR_MPXU_SBIN_PRTDIAG = $(USR_MPXU_SBIN_DIR)/prtdiag USR_MPXU_SBIN_FRUADM = $(USR_MPXU_SBIN_DIR)/fruadm USR_MPXU_LIB_DIR = $(USR_MPXU_DIR)/lib -MPXU_LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/mpxu/lint-libs/$(OBJS_DIR) - # # Links to UltraSparc III crypto modules # @@ -88,8 +86,6 @@ include $(UTSBASE)/sun4u/Makefile.sun4u MPXU_KMODS = tsalarm MODSTUBS_DIR = $(UNIX_DIR) -LINTS_DIR = $(OBJS_DIR) -LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/mpxu/lint-libs/$(OBJS_DIR) # # Define the actual specific platforms @@ -112,14 +108,3 @@ CPP_DEFS_32 = CPP_DEFS_64 = -D__sparcv9 CPP_DEFS = $(CPP_DEFS_$(CLASS)) -# -# 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_SUSPICIOUS_COMPARISON -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED -LINTTAGS += -erroff=E_STATIC_UNUSED -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV diff --git a/usr/src/uts/sun4u/mpxu/Makefile.rules b/usr/src/uts/sun4u/mpxu/Makefile.rules index a6e5520b6f..adf7bf4931 100644 --- a/usr/src/uts/sun4u/mpxu/Makefile.rules +++ b/usr/src/uts/sun4u/mpxu/Makefile.rules @@ -23,8 +23,6 @@ # Copyright 2002-2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # This Makefile defines the build rules for the directory @@ -49,13 +47,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/mpxu/os/%.c $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/mpxu/io/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) - -# -# Section 1b: Lint `object' build rules -# - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/mpxu/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/mpxu/io/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/mpxu/tsalarm/Makefile b/usr/src/uts/sun4u/mpxu/tsalarm/Makefile index db9ad320f0..b7f144e547 100644 --- a/usr/src/uts/sun4u/mpxu/tsalarm/Makefile +++ b/usr/src/uts/sun4u/mpxu/tsalarm/Makefile @@ -34,7 +34,6 @@ UTSBASE = ../../.. # MODULE = tsalarm OBJECTS = $(MPXU_TSALARM_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(MPXU_TSALARM_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_MPXU_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/mpxu/io @@ -47,23 +46,17 @@ include $(UTSBASE)/sun4u/mpxu/Makefile.mpxu # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) - -# -# lint pass one enforcement # # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) -# Turn this on once compiler understands v9 in it's backend -#INLINES += $(UTSBASE)/sun4u/io/pci.il - # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses @@ -88,12 +81,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/ngdr/Makefile.rules b/usr/src/uts/sun4u/ngdr/Makefile.rules index 3cbdbbbeed..95b02201f2 100644 --- a/usr/src/uts/sun4u/ngdr/Makefile.rules +++ b/usr/src/uts/sun4u/ngdr/Makefile.rules @@ -48,10 +48,3 @@ $(NGDR_IO)/dr_err.c: $(SBDGENERR) $(SBD_IOCTL) $(RM) $@ $(SBDGENERRCMD) ESBD < $(SBD_IOCTL) > $(NGDR_IO)/dr_err.c -# -# Section 1b: Lint object build rules -# - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/ngdr/io/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - diff --git a/usr/src/uts/sun4u/obpsym/Makefile b/usr/src/uts/sun4u/obpsym/Makefile index 5000ba465a..7a889a147a 100644 --- a/usr/src/uts/sun4u/obpsym/Makefile +++ b/usr/src/uts/sun4u/obpsym/Makefile @@ -20,11 +20,10 @@ # CDDL HEADER END # # -# uts/sun4u/obpsym/Makefile # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the obpsym misc kernel # module. @@ -40,7 +39,6 @@ UTSBASE = ../.. # MODULE = obpsym OBJECTS = $(OBPSYM_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(OBPSYM_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) # @@ -52,13 +50,9 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) # # Default build targets. @@ -73,12 +67,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/opl/Makefile b/usr/src/uts/sun4u/opl/Makefile index f94c5e984c..38522fbb5b 100644 --- a/usr/src/uts/sun4u/opl/Makefile +++ b/usr/src/uts/sun4u/opl/Makefile @@ -44,12 +44,8 @@ install := TARGET= install install_h := TARGET= install_h clean := TARGET= clean clobber := TARGET= clobber -lint := TARGET= lint -lintlib := TARGET= lintlib modlist := TARGET= modlist modlist := NO_STATE= -K $$MODSTATE$$$$ -modlintlib := TARGET= modlintlib -clean.lint := TARGET= clean.lint check := TARGET= check # @@ -57,15 +53,11 @@ check := TARGET= check # .KEEP_STATE: -def all clean clobber clean.lint: genassym unix .WAIT \ +def all clean clobber: genassym unix .WAIT \ $(OPL_CPU_KMODS) $(OPL_KMODS) $(CLOSED_OPL_KMODS) modlist: unix $(OPL_CPU_KMODS) $(OPL_KMODS) $(CLOSED_OPL_KMODS) -lintlib: unix - -modlintlib: $(OPL_KMODS) $(CLOSED_OPL_KMODS) - IMPLEMENTED_PLATFORM = SUNW,SPARC-Enterprise install: $(ROOT_OPL_DIR) $(USR_OPL_DIR) \ @@ -94,27 +86,6 @@ $(OPLMSU_OPTION): FRC install_h check: FRC @cd sys; pwd; $(MAKE) $(TARGET) -lint: modlintlib - - -# -# The 'lint.platmod' target lints the opl platform module against -# the sun4u kernel. This ends up doing all the kernel cross-checks, -# so it takes a couple of minutes. -# Due to the low ROI, it's not run by default, but it's a good -# idea to run this if you change os/opl.c. -# - -LINT_LIBS = $(LINT_LIB) \ - -L$(OPL_LINT_LIB_DIR) \ - -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ - $(CLOSED_LINT_KMODS:%=-l%) \ - -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) - -lint.platmod: modlintlib - @-$(ECHO) "\nOpl Platform-dependent module: global crosschecks:" - @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) - # # # Include common targets. diff --git a/usr/src/uts/sun4u/opl/Makefile.opl b/usr/src/uts/sun4u/opl/Makefile.opl index a20f97cfb1..80f356486e 100644 --- a/usr/src/uts/sun4u/opl/Makefile.opl +++ b/usr/src/uts/sun4u/opl/Makefile.opl @@ -61,7 +61,6 @@ USR_OPL_SBIN_FRUADM = $(USR_OPL_SBIN_DIR)/fruadm USR_OPL_INC_DIR = $(USR_OPL_DIR)/include USR_OPL_ISYS_DIR = $(USR_OPL_INC_DIR)/sys -OPL_LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/opl/lint-libs/$(OBJS_DIR) OPLMSU_OPTION = options # @@ -110,12 +109,9 @@ include $(UTSBASE)/sun4u/Makefile.sun4u UNIX_DIR = $(UTSBASE)/$(PLATFORM)/opl/unix MODSTUBS_DIR = $(UNIX_DIR) DSF_DIR = $(UTSBASE)/$(PLATFORM)/opl/genassym -LINTS_DIR = $(OBJS_DIR) -LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/opl/lint-libs/$(OBJS_DIR) UNIX_O = $(UNIX_DIR)/$(OBJS_DIR)/unix.o -LINT_LIB = $(LINT_LIB_DIR)/llib-lunix.ln # # Define the actual specific platforms @@ -152,7 +148,7 @@ MACHINE_DEFS += -DOLYMPUS_C_REV_A_ERRATA_XCALL MACHINE_DEFS += -DOLYMPUS_C_REV_B_ERRATA_XCALL # # OLYMPUS C Spurious interrupts -# - When an UE is detected in a interrupt packet, +# - When an UE is detected in a interrupt packet, # Olympus-C takes an interrupt_vector_trap (TT=0x60) while # ASI_INTR_RECIEVE.BUSY is set to zero to indicate the existence # of the error. Software will see this as a spurious interrupt since @@ -165,16 +161,4 @@ MACHINE_DEFS += -DOLYMPUS_C_REV_B_ERRATA_XCALL # recoverable. MACHINE_DEFS += -DCLEAR_INTR_BUSYBIT_ON_SPURIOUS -# -# 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_SUSPICIOUS_COMPARISON -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED -LINTTAGS += -erroff=E_STATIC_UNUSED -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV - .KEEP_STATE: diff --git a/usr/src/uts/sun4u/opl/Makefile.rules b/usr/src/uts/sun4u/opl/Makefile.rules index 19c8381340..3c3bc09263 100644 --- a/usr/src/uts/sun4u/opl/Makefile.rules +++ b/usr/src/uts/sun4u/opl/Makefile.rules @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This Makefile defines the build rules for the directory # uts/sun4u/opl and its children. @@ -106,33 +106,4 @@ CLEANFILES += $(DRMACH_IL) $(DRMACH_IL): $(UTSBASE)/sun4u/opl/ml/drmach.il.cpp $(IL_CPP) $(UTSBASE)/sun4u/opl/ml/drmach.il.cpp > $@ - -# -# Section 1b: Lint object build rules -# - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/ngdr/io/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/dr_mem.ln: $(UTSBASE)/sun4u/opl/io/dr_mem.c - @($(LHEAD) $(LINT.c) $(UTSBASE)/sun4u/opl/io/dr_mem.c $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/opl/io/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/opl/io/pcicmu/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/opl/ml/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/opl/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/opl/io/oplpanel/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/opl/io/oplmsu/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - .KEEP_STATE: diff --git a/usr/src/uts/sun4u/opl/dm2s/Makefile b/usr/src/uts/sun4u/opl/dm2s/Makefile index f97e0e7e65..de7fe5c9e9 100644 --- a/usr/src/uts/sun4u/opl/dm2s/Makefile +++ b/usr/src/uts/sun4u/opl/dm2s/Makefile @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the dm2s driver # kernel module. @@ -41,7 +41,6 @@ UTSBASE = ../../.. MODULE = dm2s OBJECTS = $(DM2S_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(DM2S_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_OPL_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/opl/io @@ -54,7 +53,6 @@ include $(UTSBASE)/sun4u/opl/Makefile.opl # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # @@ -62,11 +60,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -91,12 +85,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/opl/dr/Makefile b/usr/src/uts/sun4u/opl/dr/Makefile index 7589e53b9d..fdf4d2c343 100644 --- a/usr/src/uts/sun4u/opl/dr/Makefile +++ b/usr/src/uts/sun4u/opl/dr/Makefile @@ -39,7 +39,6 @@ UTSBASE = ../../.. # MODULE = dr OBJECTS = $(DR_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(DR_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_OPL_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/opl/io @@ -52,11 +51,12 @@ include $(UTSBASE)/sun4u/opl/Makefile.opl # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += $(CNOWARN_UNINIT) @@ -80,12 +80,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/opl/drmach/Makefile b/usr/src/uts/sun4u/opl/drmach/Makefile index a65edcc6f3..13857245cb 100644 --- a/usr/src/uts/sun4u/opl/drmach/Makefile +++ b/usr/src/uts/sun4u/opl/drmach/Makefile @@ -37,9 +37,8 @@ UTSBASE = ../../.. # # Define the module and object file sets. # -MODULE = drmach +MODULE = drmach OBJECTS = $(DRMACH_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(DRMACH_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_OPL_MISC_DIR)/$(MODULE) DRMACH_OFFSETS = $(UTSBASE)/sun4u/opl/ml/drmach_offsets.in @@ -54,13 +53,14 @@ include $(UTSBASE)/sun4u/opl/Makefile.opl # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) CLEANFILES += $(DRMACH_OFFSETS_H) $(DRMACH_OFFSETS_OUT) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses @@ -85,12 +85,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) AS_INC_PATH += -I$(OBJS_DIR) diff --git a/usr/src/uts/sun4u/opl/genassym/Makefile b/usr/src/uts/sun4u/opl/genassym/Makefile index 9b0ca0c1f7..c70f484b6c 100644 --- a/usr/src/uts/sun4u/opl/genassym/Makefile +++ b/usr/src/uts/sun4u/opl/genassym/Makefile @@ -22,14 +22,12 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of assym.h through genconst/stabs. # # sun4u opl implementation architecture dependent # -# uts/sun4u/opl/genassym/Makefile -# # # Path to the base of the uts directory tree (usually /usr/src/uts). @@ -75,8 +73,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -clean.lint: - install: def # diff --git a/usr/src/uts/sun4u/opl/mc-opl/Makefile b/usr/src/uts/sun4u/opl/mc-opl/Makefile index bafe22c32e..944dfb06fa 100644 --- a/usr/src/uts/sun4u/opl/mc-opl/Makefile +++ b/usr/src/uts/sun4u/opl/mc-opl/Makefile @@ -41,7 +41,6 @@ UTSBASE = ../../.. # MODULE = mc-opl OBJECTS = $(MC_OPL_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(MC_OPL_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_OPL_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/opl/io @@ -54,13 +53,11 @@ include $(UTSBASE)/sun4u/opl/Makefile.opl # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) -# -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) -I../sys +CFLAGS += -I../sys + +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-type-limits @@ -72,7 +69,7 @@ CERRWARN += -_gcc=-Wno-type-limits # MC_EMULATION - emulate mac patrol registers # CFLAGS += -dalign -DMC_EMULATION -#CFLAGS += -dalign +#CFLAGS += -dalign # # Dependency @@ -91,12 +88,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/opl/olympus_c/Makefile b/usr/src/uts/sun4u/opl/olympus_c/Makefile index ac3b4e8f21..33446cb083 100644 --- a/usr/src/uts/sun4u/opl/olympus_c/Makefile +++ b/usr/src/uts/sun4u/opl/olympus_c/Makefile @@ -38,7 +38,6 @@ UTSBASE = ../../.. # MODULE = FJSV,SPARC64-VI OBJECTS = $(OLYMPUS_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(OLYMPUS_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_OPL_CPU_DIR)/$(MODULE) SOFTLINKS = FJSV,SPARC64-VII ROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_OPL_CPU_DIR)/%) @@ -60,7 +59,6 @@ CLEANFILES += $(CPULIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS) # @@ -68,11 +66,7 @@ INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) -# -# lint pass one enforcement -# OLYMPUS_C_DEFS += -DOLYMPUS_C CFLAGS += $(CCVERBOSE) $(OLYMPUS_C_DEFS) CERRWARN += $(CNOWARN_UNINIT) @@ -93,12 +87,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(CPULIB): $(OBJECTS) diff --git a/usr/src/uts/sun4u/opl/oplkmdrv/Makefile b/usr/src/uts/sun4u/opl/oplkmdrv/Makefile index 98a28fc104..32aa5eb1c5 100644 --- a/usr/src/uts/sun4u/opl/oplkmdrv/Makefile +++ b/usr/src/uts/sun4u/opl/oplkmdrv/Makefile @@ -41,7 +41,6 @@ INC_PATH += -I$(UTSBASE)/sun4u/opl/ MODULE = oplkmdrv OBJECTS = $(OPLKM_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(OPLKM_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_OPL_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/opl/io @@ -54,12 +53,8 @@ include $(UTSBASE)/sun4u/opl/Makefile.opl # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -85,12 +80,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/opl/oplmsu/Makefile b/usr/src/uts/sun4u/opl/oplmsu/Makefile index e496ccdd7d..a8e56beb9b 100644 --- a/usr/src/uts/sun4u/opl/oplmsu/Makefile +++ b/usr/src/uts/sun4u/opl/oplmsu/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = oplmsu OBJECTS = $(OPLMSU_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(OPLMSU_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_OPL_DRV_DIR)/$(MODULE) # @@ -52,15 +51,17 @@ include $(UTSBASE)/sun4u/opl/Makefile.opl # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) -I../sys +CFLAGS += -I../sys LDFLAGS += -dy -Ndrv/su +# +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. +# +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) @@ -77,12 +78,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/opl/oplpanel/Makefile b/usr/src/uts/sun4u/opl/oplpanel/Makefile index aa264cdb3b..e3417096da 100644 --- a/usr/src/uts/sun4u/opl/oplpanel/Makefile +++ b/usr/src/uts/sun4u/opl/oplpanel/Makefile @@ -39,7 +39,6 @@ UTSBASE = ../../.. # MODULE = oplpanel OBJECTS = $(OPL_PANEL_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(OPL_PANEL_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_OPL_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/opl/io/oplpanel @@ -52,13 +51,16 @@ include $(UTSBASE)/sun4u/opl/Makefile.opl # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) +CFLAGS += -I../sys + # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # -CFLAGS += $(CCVERBOSE) -I../sys +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-unused-function # @@ -74,12 +76,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/opl/options/Makefile b/usr/src/uts/sun4u/opl/options/Makefile index 44b6f3a7b3..6960487a08 100644 --- a/usr/src/uts/sun4u/opl/options/Makefile +++ b/usr/src/uts/sun4u/opl/options/Makefile @@ -22,9 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# -# uts/sun4u/opl/options/Makefile + # # This makefile drives the production of the opl options conf file # @@ -51,7 +49,6 @@ include $(UTSBASE)/sun4u/opl/Makefile.opl # Define targets # ALL_TARGET = $(SRC_CONFILE) -LINT_TARGET = INSTALL_TARGET = $(ROOT_OPL_DRV_DIR) $(ROOT_CONFFILE) # @@ -72,12 +69,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/opl/pcicmu/Makefile b/usr/src/uts/sun4u/opl/pcicmu/Makefile index fbddd90ea2..49a832b9a7 100644 --- a/usr/src/uts/sun4u/opl/pcicmu/Makefile +++ b/usr/src/uts/sun4u/opl/pcicmu/Makefile @@ -41,7 +41,6 @@ UTSBASE = ../../.. # MODULE = pcicmu OBJECTS = $(PCICMU_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(PCICMU_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_OPL_DRV_DIR)/$(MODULE) # @@ -53,11 +52,12 @@ include $(UTSBASE)/sun4u/opl/Makefile.opl # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) -I../sys CERRWARN += -_gcc=-Wno-parentheses @@ -83,12 +83,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/opl/platmod/Makefile b/usr/src/uts/sun4u/opl/platmod/Makefile index 38a2ab03bf..70ddc8c915 100644 --- a/usr/src/uts/sun4u/opl/platmod/Makefile +++ b/usr/src/uts/sun4u/opl/platmod/Makefile @@ -38,7 +38,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(OPL_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(OPL_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_OPL_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -56,12 +55,8 @@ CLEANFILES += $(PLATLIB) # Define targets # ALL_TARGET = $(PLATLIB) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -77,12 +72,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(PLATLIB): $(BINARY) diff --git a/usr/src/uts/sun4u/opl/unix/Makefile b/usr/src/uts/sun4u/opl/unix/Makefile index 89c2ab6b32..ea2ec40d61 100644 --- a/usr/src/uts/sun4u/opl/unix/Makefile +++ b/usr/src/uts/sun4u/opl/unix/Makefile @@ -44,11 +44,6 @@ UNIX = unix OBJECTS = $(SPECIAL_OBJS:%=$(OBJS_DIR)/%) \ $(CORE_OBJS:%=$(OBJS_DIR)/%) \ $(MACH_NOT_YET_KMODS:%=$(OBJS_DIR)/%) -LINTS = $(SPECIAL_OBJS:%.o=$(LINTS_DIR)/%.ln) \ - $(CORE_OBJS:%.o=$(LINTS_DIR)/%.ln) \ - $(MACH_NOT_YET_KMODS:%.o=$(LINTS_DIR)/%.ln) \ - $(LINTS_DIR)/vers.ln \ - $(LINTS_DIR)/modstubs.ln KRTLD_MAPFILE = $(UTSBASE)/sparc/krtld/mapfile KRTLD_OBJECTS = $(KRTLD_OBJS:%=$(OBJS_DIR)/%) @@ -82,7 +77,6 @@ include $(UTSBASE)/sun4u/opl/Makefile.opl # Define targets # ALL_TARGET = $(UNIX_BIN) -LINT_TARGET = $(LINT_LIB) INSTALL_TARGET = $(UNIX_BIN) $(ROOTMODULE) # @@ -91,7 +85,6 @@ INSTALL_TARGET = $(UNIX_BIN) $(ROOTMODULE) ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) SYM_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) # # This is UNIX_DIR. Use a short path. @@ -107,14 +100,16 @@ CLEANFILES += $(UNIX_O) $(MODSTUBS_O) $(KRTLD_O) $(KRTLD_OBJECTS) \ $(DTRACESTUBS_O) $(DTRACESTUBS) CLOBBERFILES = $(CLEANFILES) $(UNIX_BIN) -CLEANLINTFILES += $(LINT_LIB) -# -# lint pass one enforcement # Turn on doubleword alignment for 64 bit counter timer registers -# -CFLAGS += $(CCVERBOSE) -dalign +CFLAGS += -dalign +# +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. +# +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-char-subscripts @@ -140,10 +135,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) symcheck: $(SYM_DEPS) @@ -174,23 +165,6 @@ $(CPULIB): $(CPU_OBJ) $(LD) -o $@ $(GSHARED) -h 'cpu/$$CPU' $(CPU_OBJ) # -# The global lint target builds the kernel lint library (llib-lunix.ln) -# which is equivalent to a lint of /unix.o. Then all kernel modules for -# this architecture are linted against the kernel lint library. -# -# Note: lint errors in the kernel lint library will be repeated for -# each module. It is important that the kernel lint library -# be clean to keep the textual output to a reasonable level. -# - -$(LINT_LIB): $(LINT_LIB_DIR) $(LINTS) - @-$(ECHO) "\n$(UNIX): (library construction):" - @$(LINT) -o $(UNIX) $(LINTFLAGS) $(LINTS) - @$(MV) $(@F) $@ - -lintlib: $(LINT_DEPS) - -# # Include common targets. # include $(UTSBASE)/sun4u/opl/Makefile.targ diff --git a/usr/src/uts/sun4u/opl_cfg/Makefile b/usr/src/uts/sun4u/opl_cfg/Makefile index 1dcec6314f..81745ef857 100644 --- a/usr/src/uts/sun4u/opl_cfg/Makefile +++ b/usr/src/uts/sun4u/opl_cfg/Makefile @@ -42,7 +42,6 @@ UTSBASE = ../.. # MODULE = opl_cfg OBJECTS = $(OPLCFG_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(OPLCFG_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) # @@ -54,15 +53,9 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) - -# # module dependencies # LDFLAGS += -dy -Nmisc/fcodem -Nmisc/busra @@ -77,12 +70,11 @@ INC_PATH += -I$(UTSBASE)/sun4u/opl/ CFLAGS += -dalign # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN - +CFLAGS += $(CCVERBOSE) CERRWARN += $(CNOWARN_UNINIT) # @@ -98,12 +90,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/opl_pcbe/Makefile b/usr/src/uts/sun4u/opl_pcbe/Makefile index d47304b06b..3609f9359b 100644 --- a/usr/src/uts/sun4u/opl_pcbe/Makefile +++ b/usr/src/uts/sun4u/opl_pcbe/Makefile @@ -36,7 +36,6 @@ UTSBASE = ../.. # MODULE = pcbe.4.6 OBJECTS = $(OPL_PCBE_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(OPL_PCBE_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(USR_PCBE_DIR)/$(MODULE) ROOTLINK = $(USR_PCBE_DIR)/pcbe.4.7 @@ -49,23 +48,14 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets. # ALL_TARGET = $(BINARY) -LINT_MODULE = opl_pcbe -LINT_TARGET = $(LINT_MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) # -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) - -# -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV - +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-type-limits # @@ -81,12 +71,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(ROOTLINK): $(ROOTMODULE) diff --git a/usr/src/uts/sun4u/pcf8584/Makefile b/usr/src/uts/sun4u/pcf8584/Makefile index 7134c7a6f0..c98793f9e7 100644 --- a/usr/src/uts/sun4u/pcf8584/Makefile +++ b/usr/src/uts/sun4u/pcf8584/Makefile @@ -33,7 +33,6 @@ UTSBASE = ../.. # MODULE = pcf8584 OBJECTS = $(PCF8584_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(PCF8584_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -41,25 +40,14 @@ ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # include $(UTSBASE)/sun4u/Makefile.sun4u -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) -I../../sun4u LDFLAGS += -dy -N misc/i2c_svc # -# 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 - -# # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) .KEEP_STATE: @@ -72,12 +60,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/pcisch/Makefile b/usr/src/uts/sun4u/pcisch/Makefile index 50414236bf..080ddd2735 100644 --- a/usr/src/uts/sun4u/pcisch/Makefile +++ b/usr/src/uts/sun4u/pcisch/Makefile @@ -54,15 +54,16 @@ ALL_TARGET = $(BINARY) INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) - -# # Turn on doubleword alignment for 64 bit registers # CFLAGS += -dalign +# +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. +# +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-unused-function diff --git a/usr/src/uts/sun4u/pic16f747/Makefile b/usr/src/uts/sun4u/pic16f747/Makefile index 2b3a292a69..aae6a78d92 100644 --- a/usr/src/uts/sun4u/pic16f747/Makefile +++ b/usr/src/uts/sun4u/pic16f747/Makefile @@ -46,7 +46,6 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) CERRWARN += -_gcc=-Wno-parentheses diff --git a/usr/src/uts/sun4u/platmod/Makefile b/usr/src/uts/sun4u/platmod/Makefile index 8b624bb35e..f1a02637ed 100644 --- a/usr/src/uts/sun4u/platmod/Makefile +++ b/usr/src/uts/sun4u/platmod/Makefile @@ -41,7 +41,6 @@ UTSBASE = ../.. # MODULE = platmod OBJECTS = $(PLATMOD_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(PLATMOD_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_PLAT_DIR)/$(MODULE) PLAT_DIR = . @@ -60,12 +59,8 @@ CLEANFILES += $(PLATLIB) # Define targets # ALL_TARGET = $(PLATLIB) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -81,12 +76,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) install_h: diff --git a/usr/src/uts/sun4u/pmc/Makefile b/usr/src/uts/sun4u/pmc/Makefile index c383df0fe2..d65517a2cc 100644 --- a/usr/src/uts/sun4u/pmc/Makefile +++ b/usr/src/uts/sun4u/pmc/Makefile @@ -20,11 +20,10 @@ # CDDL HEADER END # # -# uts/sun4u/pmc/Makefile # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of pmc driver # (power management controller: logical unit 8 of the PC87317 chip) @@ -40,9 +39,8 @@ UTSBASE = ../.. # # Define the module and object file sets. # -MODULE = pmc +MODULE = pmc OBJECTS = $(PMC_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(PMC_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -53,13 +51,9 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # # Define targets # -ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint +ALL_TARGET = $(BINARY) INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -81,12 +75,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/pmubus/Makefile b/usr/src/uts/sun4u/pmubus/Makefile index 7f6ef65190..4f8decf5f6 100644 --- a/usr/src/uts/sun4u/pmubus/Makefile +++ b/usr/src/uts/sun4u/pmubus/Makefile @@ -41,7 +41,6 @@ UTSBASE = ../.. # MODULE = pmubus OBJECTS = $(PMUBUS_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(PMUBUS_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -53,16 +52,10 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) - -# # Turn on doubleword alignment for 64-bit registers # CFLAGS += -dalign @@ -70,12 +63,11 @@ CFLAGS += -dalign CPPFLAGS += -I$(UTSBASE)/sun4u # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV - +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-switch CERRWARN += $(CNOWARN_UNINIT) @@ -92,12 +84,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/pmugpio/Makefile b/usr/src/uts/sun4u/pmugpio/Makefile index 1df639d659..87c60a7c5f 100644 --- a/usr/src/uts/sun4u/pmugpio/Makefile +++ b/usr/src/uts/sun4u/pmugpio/Makefile @@ -20,11 +20,10 @@ # CDDL HEADER END # # -# uts/sun4u/pmugpio/Makefile # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the pmugpio driver kernel # module in the sun4u systems @@ -40,7 +39,6 @@ UTSBASE = ../.. # MODULE = pmugpio OBJECTS = $(PMUGPIO_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(PMUGPIO_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -52,12 +50,8 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) LDFLAGS += -dy @@ -79,12 +73,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/power/Makefile b/usr/src/uts/sun4u/power/Makefile index 5eda7d968c..69bfaadb8f 100644 --- a/usr/src/uts/sun4u/power/Makefile +++ b/usr/src/uts/sun4u/power/Makefile @@ -19,11 +19,10 @@ # CDDL HEADER END # # -# uts/sun4u/power/Makefile # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the power driver # @@ -40,7 +39,6 @@ UTSBASE = ../.. # MODULE = power OBJECTS = $(POWER_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(POWER_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -52,22 +50,11 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # -# 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 - -# # Turn on doubleword alignment for 64 bit registers # CFLAGS += -dalign @@ -85,12 +72,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/ppm/Makefile b/usr/src/uts/sun4u/ppm/Makefile index dc15c0e88a..ec46f23bde 100644 --- a/usr/src/uts/sun4u/ppm/Makefile +++ b/usr/src/uts/sun4u/ppm/Makefile @@ -42,7 +42,6 @@ UTSBASE = ../.. # MODULE = ppm OBJECTS = $(PPM_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(PPM_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -54,26 +53,14 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) - -# -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED -LINTTAGS += -erroff=E_STATIC_UNUSED -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV - +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) @@ -96,12 +83,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/quasar/Makefile b/usr/src/uts/sun4u/quasar/Makefile index b7f29bd0d4..5254fb36a3 100644 --- a/usr/src/uts/sun4u/quasar/Makefile +++ b/usr/src/uts/sun4u/quasar/Makefile @@ -20,11 +20,10 @@ # CDDL HEADER END # # -# uts/sun4u/quasar/Makefile # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sun4u quasar platform # module. @@ -48,12 +47,8 @@ install := TARGET= install install_h := TARGET= install_h clean := TARGET= clean clobber := TARGET= clobber -lint := TARGET= lint -lintlib := TARGET= lintlib -modlintlib := TARGET= modlintlib modlist := TARGET= modlist modlist := NO_STATE= -K $$MODSTATE$$$$ -clean.lint := TARGET= clean.lint check := TARGET= check # @@ -64,7 +59,7 @@ check := TARGET= check # .KEEP_STATE: -def all install_h clean lint lintlib modlintlib clean.lint clobber check: +def all install_h clean clobber check: modlist: @@ -72,7 +67,7 @@ install: install_darwin $(INSTALL_DEPS) $(USR_QUASAR_DIR) INSTALL_TARGET = platmod -platmod: $(ROOT_QUASAR_MISC_DIR) +platmod: $(ROOT_QUASAR_MISC_DIR) -@$(RM) -r $(OBJS_DIR) -@$(RM) $(ROOT_QUASAR_MISC_DIR)/$@ $(SYMLINK) $(ROOT_QUASAR_MISC_LINK)/$@ $(ROOT_QUASAR_MISC_DIR)/$@ diff --git a/usr/src/uts/sun4u/s10_brand/Makefile b/usr/src/uts/sun4u/s10_brand/Makefile index 6fdde88f6a..b5e7c23d2d 100644 --- a/usr/src/uts/sun4u/s10_brand/Makefile +++ b/usr/src/uts/sun4u/s10_brand/Makefile @@ -36,7 +36,6 @@ S10_BASE = $(UTSBASE)/common/brand/solaris10 # MODULE = s10_brand OBJECTS = $(S10_BRAND_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(S10_BRAND_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_BRAND_DIR)/$(MODULE) # @@ -48,7 +47,6 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # @@ -70,12 +68,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/sbd/Makefile b/usr/src/uts/sun4u/sbd/Makefile index 9e6df9ad35..624f92e60d 100644 --- a/usr/src/uts/sun4u/sbd/Makefile +++ b/usr/src/uts/sun4u/sbd/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../.. # MODULE = sbd OBJECTS = $(SBD_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SBD_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) LDFLAGS += -dy -Nmisc/sbdp @@ -53,11 +52,12 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses @@ -77,12 +77,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/sbusmem/Makefile b/usr/src/uts/sun4u/sbusmem/Makefile index 6fe27c961c..f431083a89 100644 --- a/usr/src/uts/sun4u/sbusmem/Makefile +++ b/usr/src/uts/sun4u/sbusmem/Makefile @@ -41,7 +41,6 @@ UTSBASE = ../.. # MODULE = sbusmem OBJECTS = $(SBUSMEM_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SBUSMEM_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun/io @@ -54,11 +53,12 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-switch @@ -77,12 +77,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/schppm/Makefile b/usr/src/uts/sun4u/schppm/Makefile index c89754cfd7..d87e126013 100644 --- a/usr/src/uts/sun4u/schppm/Makefile +++ b/usr/src/uts/sun4u/schppm/Makefile @@ -20,12 +20,10 @@ # CDDL HEADER END # # -# uts/sun4u/schppm/Makefile -# # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the power managment # module for the schizo ASIC @@ -43,7 +41,6 @@ UTSBASE = ../.. # MODULE = schppm OBJECTS = $(SCHPPM_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SCHPPM_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -55,12 +52,8 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -81,12 +74,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/schumacher/Makefile b/usr/src/uts/sun4u/schumacher/Makefile index 04df3916b3..b6942bcd83 100644 --- a/usr/src/uts/sun4u/schumacher/Makefile +++ b/usr/src/uts/sun4u/schumacher/Makefile @@ -42,12 +42,8 @@ install := TARGET= install install_h := TARGET= install_h clean := TARGET= clean clobber := TARGET= clobber -lint := TARGET= lint -lintlib := TARGET= lintlib -modlintlib := TARGET= modlintlib modlist := TARGET= modlist modlist := NO_STATE= -K $$MODSTATE$$$$ -clean.lint := TARGET= clean.lint check := TARGET= check # @@ -55,9 +51,7 @@ check := TARGET= check # .KEEP_STATE: -def all clean clean.lint clobber modlist: $(SCHUMACHER_KMODS) - -modlintlib: $(SCHUMACHER_KMODS) +def all clean clobber modlist: $(SCHUMACHER_KMODS) install: $(ROOT_SCHUMACHER_DIR) \ $(USR_SCHUMACHER_DIR) \ @@ -71,23 +65,6 @@ install: $(ROOT_SCHUMACHER_DIR) \ check install_h: -lint: modlintlib - -# -# The 'lint.platmod' target lints the schumacher platform module against the sun4u -# kernel. This ends up doing all the kernel cross-checks, so it takes a couple -# of minutes. -# -LINT_LIBS = $(LINT_LIB) \ - -L$(SCHUMACHER_LINT_LIB_DIR) \ - -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ - $(CLOSED_LINT_KMODS:%=-l%) \ - -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) - -lint.platmod: modlintlib - @-$(ECHO) "\nSchumacher Platform-dependent module: global crosschecks:" - @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) - $(SCHUMACHER_KMODS): FRC @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) diff --git a/usr/src/uts/sun4u/schumacher/Makefile.rules b/usr/src/uts/sun4u/schumacher/Makefile.rules index 28daa0ba3d..a23a519a3d 100644 --- a/usr/src/uts/sun4u/schumacher/Makefile.rules +++ b/usr/src/uts/sun4u/schumacher/Makefile.rules @@ -22,7 +22,7 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This Makefile defines the build rules for the directory # uts/sun4u/schumacher. @@ -43,10 +43,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/schumacher/os/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) -# -# Section 1b: Lint `object' build rules -# - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/schumacher/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - diff --git a/usr/src/uts/sun4u/schumacher/Makefile.schumacher b/usr/src/uts/sun4u/schumacher/Makefile.schumacher index 5eb26050a1..9d89cd656d 100644 --- a/usr/src/uts/sun4u/schumacher/Makefile.schumacher +++ b/usr/src/uts/sun4u/schumacher/Makefile.schumacher @@ -52,8 +52,6 @@ USR_SCHUMACHER_SBIN_PRTDIAG = $(USR_SCHUMACHER_SBIN_DIR)/prtdiag USR_SCHUMACHER_SBIN_FRUADM = $(USR_SCHUMACHER_SBIN_DIR)/fruadm USR_SCHUMACHER_LIB_DIR = $(USR_SCHUMACHER_DIR)/lib -SCHUMACHER_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/schumacher/lint-libs/$(OBJS_DIR) - # # Define objects. # diff --git a/usr/src/uts/sun4u/schumacher/platmod/Makefile b/usr/src/uts/sun4u/schumacher/platmod/Makefile index 11d8bf9192..10bd5e41bd 100644 --- a/usr/src/uts/sun4u/schumacher/platmod/Makefile +++ b/usr/src/uts/sun4u/schumacher/platmod/Makefile @@ -39,7 +39,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(SCHUMACHER_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SCHUMACHER_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SCHUMACHER_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -59,12 +58,8 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -80,17 +75,10 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) check: -LINT_LIB_DIR = $(SCHUMACHER_LINT_LIB_DIR) $(PLATLIB): $(BINARY) $(LD) -o $(PLATLIB) $(GSHARED) $(BINARY) diff --git a/usr/src/uts/sun4u/seattle/Makefile.rules b/usr/src/uts/sun4u/seattle/Makefile.rules index b216d0ffdd..3ba4c1e399 100644 --- a/usr/src/uts/sun4u/seattle/Makefile.rules +++ b/usr/src/uts/sun4u/seattle/Makefile.rules @@ -23,8 +23,6 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # This Makefile defines the build rules for the directory @@ -45,10 +43,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/seattle/os/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) - -# -# Section 1b: Lint `object' build rules -# - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/seattle/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/seattle/Makefile.seattle b/usr/src/uts/sun4u/seattle/Makefile.seattle index e483525286..e7a13b443f 100644 --- a/usr/src/uts/sun4u/seattle/Makefile.seattle +++ b/usr/src/uts/sun4u/seattle/Makefile.seattle @@ -54,8 +54,6 @@ USR_SEATTLE_SBIN_PRTDIAG = $(USR_SEATTLE_SBIN_DIR)/prtdiag USR_SEATTLE_SBIN_FRUADM = $(USR_SEATTLE_SBIN_DIR)/fruadm USR_SEATTLE_LIB_DIR = $(USR_SEATTLE_DIR)/lib -SEATTLE_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/seattle/lint-libs/$(OBJS_DIR) - # # Define objects. # diff --git a/usr/src/uts/sun4u/seattle/platmod/Makefile b/usr/src/uts/sun4u/seattle/platmod/Makefile index 7dec4b8dc0..74ac07da78 100644 --- a/usr/src/uts/sun4u/seattle/platmod/Makefile +++ b/usr/src/uts/sun4u/seattle/platmod/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(SEATTLE_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SEATTLE_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SEATTLE_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -60,12 +59,8 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -81,17 +76,10 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) check: -LINT_LIB_DIR = $(SEATTLE_LINT_LIB_DIR) $(PLATLIB): $(OBJECTS) $(BUILD.SO) $(OBJECTS) diff --git a/usr/src/uts/sun4u/seattle/su/Makefile b/usr/src/uts/sun4u/seattle/su/Makefile index dbae47f11a..1382fca09e 100644 --- a/usr/src/uts/sun4u/seattle/su/Makefile +++ b/usr/src/uts/sun4u/seattle/su/Makefile @@ -23,9 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# -# uts/sun4u/seattle/su/Makefile + # # This makefile drives the install of the platform su.conf # driver configuration file in the sun4u Seattle system. @@ -69,7 +67,7 @@ $(CONF_INSTALL_OBJ): FRC # .KEEP_STATE: -def all clean clobber lint modlintlib clean.lint: +def all clean clobber: install: $(INSTALL_TARGET) diff --git a/usr/src/uts/sun4u/serengeti/Makefile b/usr/src/uts/sun4u/serengeti/Makefile index cbfc558322..11443a62ea 100644 --- a/usr/src/uts/sun4u/serengeti/Makefile +++ b/usr/src/uts/sun4u/serengeti/Makefile @@ -22,8 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sun4u serengeti platform # module. @@ -47,12 +46,8 @@ install := TARGET= install install_h := TARGET= install_h clean := TARGET= clean clobber := TARGET= clobber -lint := TARGET= lint -lintlib := TARGET= lintlib -modlintlib := TARGET= modlintlib modlist := TARGET= modlist modlist := NO_STATE= -K $$MODSTATE$$$$ -clean.lint := TARGET= clean.lint check := TARGET= check # @@ -60,16 +55,12 @@ check := TARGET= check # .KEEP_STATE: -def all clean clean.lint clobber: genassym unix .WAIT $(SERENGETI_KMODS) +def all clean clobber: genassym unix .WAIT $(SERENGETI_KMODS) modlist: unix $(SERENGETI_KMODS) -lintlib: unix - -modlintlib: $(SERENGETI_KMODS) - IMPLEMENTED_PLATFORM = SUNW,Sun-Fire - + install: $(ROOT_SERENGETI_DIR) $(USR_SERENGETI_DIR) \ $(USR_SERENGETI_INC_DIR) \ $(USR_SERENGETI_SBIN_DIR) \ @@ -88,25 +79,6 @@ $(SERENGETI_CRYPTO_LINKS): $(ROOT_SERENGETI_CRYPTO_DIR_64) install_h check: FRC @cd sys; pwd; $(MAKE) $(TARGET) - -lint: modlintlib - -# -# The 'lint.platmod' target lints the serengeti platform module against the sun4u -# kernel. This ends up doing all the kernel cross-checks, so it takes a couple -# of minutes. Due to the low ROI, it's not run by default, but it's a good -# idea to run this if you change os/serengeti.c. -# -LINT_LIBS = $(LINT_LIB) \ - -L$(SERENGETI_LINT_LIB_DIR) \ - -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ - $(CLOSED_LINT_KMODS:%=-l%) \ - -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) - -lint.platmod: modlintlib - @-$(ECHO) "\nSerengeti Platform-dependent module: global crosschecks:" - @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) - # # Include common targets. # diff --git a/usr/src/uts/sun4u/serengeti/Makefile.files b/usr/src/uts/sun4u/serengeti/Makefile.files index 4bbed30b35..d1dbe65f66 100644 --- a/usr/src/uts/sun4u/serengeti/Makefile.files +++ b/usr/src/uts/sun4u/serengeti/Makefile.files @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # Global definitions for sun4u implementation specific modules. # @@ -43,5 +43,4 @@ SSM_OBJS = ssm.o # serengeti-specific header file path # # CFLAGS += -I$(UTSBASE)/sun4u/serengeti/ -# LINTFLAGS += -I$(UTSBASE)/sun4u/serengeti/ INC_PATH += -I$(UTSBASE)/sun4u/serengeti/ diff --git a/usr/src/uts/sun4u/serengeti/Makefile.rules b/usr/src/uts/sun4u/serengeti/Makefile.rules index bdcab1cb1a..2d386e2e41 100644 --- a/usr/src/uts/sun4u/serengeti/Makefile.rules +++ b/usr/src/uts/sun4u/serengeti/Makefile.rules @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # This Makefile defines the build rules for the directory # uts/sun4u/serengeti. @@ -61,16 +61,3 @@ CLEANFILES += $(SBDP_IL) $(SBDP_IL): $(UTSBASE)/sun4u/serengeti/ml/sbdp.il.cpp $(IL_CPP) $(UTSBASE)/sun4u/serengeti/ml/sbdp.il.cpp >$@ - - -# -# Section 1b: Lint `object' build rules -# -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/serengeti/io/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/serengeti/ml/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/serengeti/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/serengeti/Makefile.serengeti b/usr/src/uts/sun4u/serengeti/Makefile.serengeti index 3e5184f235..6fa5646066 100644 --- a/usr/src/uts/sun4u/serengeti/Makefile.serengeti +++ b/usr/src/uts/sun4u/serengeti/Makefile.serengeti @@ -66,8 +66,6 @@ USR_SERENGETI_ISYS_DIR = $(USR_SERENGETI_INC_DIR)/sys USR_SERENGETI_SBIN_DIR = $(USR_SERENGETI_DIR)/sbin USR_SERENGETI_LIB_DIR = $(USR_SERENGETI_DIR)/lib -SERENGETI_LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/serengeti/lint-libs/$(OBJS_DIR) - # # Include the makefiles which define build rule templates, the # collection of files per module, and a few specific flags. Note @@ -95,7 +93,7 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # # Define modules # -SERENGETI_KMODS = cheetah cheetahplus +SERENGETI_KMODS = cheetah cheetahplus SERENGETI_KMODS += platmod sbdp sgcn sghsc sgsbbc ssm # @@ -104,12 +102,9 @@ SERENGETI_KMODS += platmod sbdp sgcn sghsc sgsbbc ssm UNIX_DIR = $(UTSBASE)/$(PLATFORM)/serengeti/unix MODSTUBS_DIR = $(UNIX_DIR) DSF_DIR = $(UTSBASE)/$(PLATFORM)/serengeti/genassym -LINTS_DIR = $(OBJS_DIR) -LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/serengeti/lint-libs/$(OBJS_DIR) UNIX_O = $(UNIX_DIR)/$(OBJS_DIR)/unix.o -LINT_LIB = $(LINT_LIB_DIR)/llib-lunix.ln # # Define the actual specific platforms @@ -135,15 +130,3 @@ MACHINE_DEFS += -DC_OBP CPP_DEFS_32 = -D__sparc CPP_DEFS_64 = -D__sparc -D__sparcv9 CPP_DEFS = $(CPP_DEFS_$(CLASS)) - -# -# 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_SUSPICIOUS_COMPARISON -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED -LINTTAGS += -erroff=E_STATIC_UNUSED -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV diff --git a/usr/src/uts/sun4u/serengeti/cheetah/Makefile b/usr/src/uts/sun4u/serengeti/cheetah/Makefile index 301cc62306..1c8108c448 100644 --- a/usr/src/uts/sun4u/serengeti/cheetah/Makefile +++ b/usr/src/uts/sun4u/serengeti/cheetah/Makefile @@ -39,7 +39,6 @@ UTSBASE = ../../.. # MODULE = SUNW,UltraSPARC-III OBJECTS = $(CHEETAH_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(CHEETAH_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SERENGETI_CPU_DIR)/$(MODULE) ROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_SERENGETI_CPU_DIR)/%) @@ -61,7 +60,6 @@ CLEANFILES += $(CPULIB) $(SYM_MOD) # SYM_MOD = $(OBJS_DIR)/unix.sym ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS) # @@ -69,14 +67,16 @@ INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) -# -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) -DCHEETAH +CFLAGS += -DCHEETAH ASFLAGS += -DCHEETAH +# +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. +# +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-type-limits @@ -102,12 +102,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(CPULIB): $(OBJECTS) diff --git a/usr/src/uts/sun4u/serengeti/cheetahplus/Makefile b/usr/src/uts/sun4u/serengeti/cheetahplus/Makefile index f81ea26dda..abe0e7e335 100644 --- a/usr/src/uts/sun4u/serengeti/cheetahplus/Makefile +++ b/usr/src/uts/sun4u/serengeti/cheetahplus/Makefile @@ -39,7 +39,6 @@ UTSBASE = ../../.. # MODULE = SUNW,UltraSPARC-III+ OBJECTS = $(CHEETAHPLUS_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(CHEETAHPLUS_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SERENGETI_CPU_DIR)/$(MODULE) SOFTLINKS = SUNW,UltraSPARC-IV SUNW,UltraSPARC-IV+ ROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_SERENGETI_CPU_DIR)/%) @@ -62,7 +61,6 @@ CLEANFILES += $(CPULIB) $(SYM_MOD) # SYM_MOD = $(OBJS_DIR)/unix.sym ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS) # @@ -70,16 +68,23 @@ INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # -CFLAGS += $(CCVERBOSE) -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \ - -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT +CFLAGS += -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \ + -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT ASFLAGS += -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \ -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT +# +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. +# +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-unused-variable @@ -108,12 +113,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(CPULIB): $(OBJECTS) diff --git a/usr/src/uts/sun4u/serengeti/genassym/Makefile b/usr/src/uts/sun4u/serengeti/genassym/Makefile index 61d66c1248..85c8e9d75a 100644 --- a/usr/src/uts/sun4u/serengeti/genassym/Makefile +++ b/usr/src/uts/sun4u/serengeti/genassym/Makefile @@ -24,8 +24,6 @@ # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" - # # This makefile drives the production of assym.h through genconst/stabs. # @@ -62,7 +60,6 @@ CLEANFILES = $(GENCONST) Nothing_to_remove CLOBBERFILES = $(ASSYM_H) $(CLEANFILES) Nothing_to_remove ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) # # Default build targets. @@ -77,8 +74,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -clean.lint: - install: def # diff --git a/usr/src/uts/sun4u/serengeti/platmod/Makefile b/usr/src/uts/sun4u/serengeti/platmod/Makefile index ed362ec056..9d67e9a5b2 100644 --- a/usr/src/uts/sun4u/serengeti/platmod/Makefile +++ b/usr/src/uts/sun4u/serengeti/platmod/Makefile @@ -41,7 +41,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(SERENGETI_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SERENGETI_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SERENGETI_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -61,7 +60,6 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # @@ -69,10 +67,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-unused-variable @@ -91,17 +90,10 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) check: -LINT_LIB_DIR = $(SERENGETI_LINT_LIB_DIR) $(PLATLIB): $(OBJECTS) $(BUILD.SO) $(OBJECTS) diff --git a/usr/src/uts/sun4u/serengeti/sbdp/Makefile b/usr/src/uts/sun4u/serengeti/sbdp/Makefile index 2a45b38f06..0da46919b9 100644 --- a/usr/src/uts/sun4u/serengeti/sbdp/Makefile +++ b/usr/src/uts/sun4u/serengeti/sbdp/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = sbdp OBJECTS = $(SBDP_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SBDP_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SERENGETI_MISC_DIR)/$(MODULE) # @@ -52,7 +51,6 @@ include $(UTSBASE)/sun4u/serengeti/Makefile.serengeti # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # @@ -60,15 +58,16 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) MACHINE_DEFS += -DCHEETAH_PLUS +LDFLAGS += -dy -Ndrv/sgsbbc + # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) -LDFLAGS += -dy -Ndrv/sgsbbc - CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-unused-function @@ -92,12 +91,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/serengeti/sgcn/Makefile b/usr/src/uts/sun4u/serengeti/sgcn/Makefile index 94a28a5a96..b8ee4484e5 100644 --- a/usr/src/uts/sun4u/serengeti/sgcn/Makefile +++ b/usr/src/uts/sun4u/serengeti/sgcn/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = sgcn OBJECTS = $(SGCN_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SGCN_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SERENGETI_DRV_DIR)/$(MODULE) # @@ -52,7 +51,6 @@ include $(UTSBASE)/sun4u/serengeti/Makefile.serengeti # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # @@ -60,14 +58,15 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) -# -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Ndrv/sgsbbc +# +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. +# +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) @@ -84,12 +83,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/serengeti/sghsc/Makefile b/usr/src/uts/sun4u/serengeti/sghsc/Makefile index 6899e46e48..4019583482 100644 --- a/usr/src/uts/sun4u/serengeti/sghsc/Makefile +++ b/usr/src/uts/sun4u/serengeti/sghsc/Makefile @@ -41,7 +41,6 @@ UTSBASE = ../../.. # MODULE = sghsc OBJECTS = $(SGHSC_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SGHSC_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SERENGETI_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/serengeti/io @@ -54,7 +53,6 @@ include $(UTSBASE)/sun4u/serengeti/Makefile.serengeti # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # @@ -62,10 +60,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-type-limits @@ -94,12 +93,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/serengeti/sgsbbc/Makefile b/usr/src/uts/sun4u/serengeti/sgsbbc/Makefile index 14f851e299..de0adcf0ba 100644 --- a/usr/src/uts/sun4u/serengeti/sgsbbc/Makefile +++ b/usr/src/uts/sun4u/serengeti/sgsbbc/Makefile @@ -38,12 +38,10 @@ UTSBASE = ../../.. # Define the module and object file sets. # # Note that this module is built as sgsbbc, but then -# installed as sbbc. This is to minimise the changes -# required for 'make lint', etc. +# installed as sbbc. # -MODULE = sgsbbc +MODULE = sgsbbc OBJECTS = $(SGSBBC_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SGSBBC_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SERENGETI_DRV_DIR)/$(MODULE) # @@ -55,7 +53,6 @@ include $(UTSBASE)/sun4u/serengeti/Makefile.serengeti # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # @@ -63,10 +60,11 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-unused-label @@ -88,12 +86,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/serengeti/ssm/Makefile b/usr/src/uts/sun4u/serengeti/ssm/Makefile index 863d4c9669..ce3a36e741 100644 --- a/usr/src/uts/sun4u/serengeti/ssm/Makefile +++ b/usr/src/uts/sun4u/serengeti/ssm/Makefile @@ -38,9 +38,8 @@ UTSBASE = ../../.. # # Define the module and object file sets. # -MODULE = ssm +MODULE = ssm OBJECTS = $(SSM_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SSM_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SERENGETI_DRV_DIR)/$(MODULE) # @@ -52,7 +51,6 @@ include $(UTSBASE)/sun4u/serengeti/Makefile.serengeti # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # @@ -60,14 +58,15 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) + +LDFLAGS += -dy -Ndrv/sgsbbc # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) -LDFLAGS += -dy -Ndrv/sgsbbc - CERRWARN += -_gcc=-Wno-type-limits # @@ -88,12 +87,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/serengeti/unix/Makefile b/usr/src/uts/sun4u/serengeti/unix/Makefile index 0fb8a3eeae..8578eb13f0 100644 --- a/usr/src/uts/sun4u/serengeti/unix/Makefile +++ b/usr/src/uts/sun4u/serengeti/unix/Makefile @@ -43,11 +43,6 @@ UNIX = unix OBJECTS = $(SPECIAL_OBJS:%=$(OBJS_DIR)/%) \ $(CORE_OBJS:%=$(OBJS_DIR)/%) \ $(MACH_NOT_YET_KMODS:%=$(OBJS_DIR)/%) -LINTS = $(SPECIAL_OBJS:%.o=$(LINTS_DIR)/%.ln) \ - $(CORE_OBJS:%.o=$(LINTS_DIR)/%.ln) \ - $(MACH_NOT_YET_KMODS:%.o=$(LINTS_DIR)/%.ln) \ - $(LINTS_DIR)/vers.ln \ - $(LINTS_DIR)/modstubs.ln KRTLD_MAPFILE = $(UTSBASE)/sparc/krtld/mapfile KRTLD_OBJECTS = $(KRTLD_OBJS:%=$(OBJS_DIR)/%) @@ -81,7 +76,6 @@ include $(UTSBASE)/sun4u/serengeti/Makefile.serengeti # Define targets # ALL_TARGET = $(UNIX_BIN) -LINT_TARGET = $(LINT_LIB) INSTALL_TARGET = $(UNIX_BIN) $(ROOTMODULE) # @@ -90,7 +84,6 @@ INSTALL_TARGET = $(UNIX_BIN) $(ROOTMODULE) ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) SYM_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) # # This is UNIX_DIR. Use a short path. @@ -106,14 +99,16 @@ CLEANFILES += $(UNIX_O) $(MODSTUBS_O) $(KRTLD_O) $(KRTLD_OBJECTS) \ $(DTRACESTUBS_O) $(DTRACESTUBS) CLOBBERFILES = $(CLEANFILES) $(UNIX_BIN) -CLEANLINTFILES += $(LINT_LIB) -# -# lint pass one enforcement # Turn on doubleword alignment for 64 bit counter timer registers -# -CFLAGS += $(CCVERBOSE) -dalign +CFLAGS += -dalign +# +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. +# +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-char-subscripts @@ -139,10 +134,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) symcheck: $(SYM_DEPS) @@ -173,23 +164,6 @@ $(CPULIB): $(CPU_OBJ) $(BUILD.SO) $(CPU_OBJ) # -# The global lint target builds the kernel lint library (llib-lunix.ln) -# which is equivalent to a lint of /unix.o. Then all kernel modules for -# this architecture are linted against the kernel lint library. -# -# Note: lint errors in the kernel lint library will be repeated for -# each module. It is important that the kernel lint library -# be clean to keep the textual output to a reasonable level. -# - -$(LINT_LIB): $(LINT_LIB_DIR) $(LINTS) - @-$(ECHO) "\n$(UNIX): (library construction):" - @$(LINT) -o $(UNIX) $(LINTFLAGS) $(LINTS) - @$(MV) $(@F) $@ - -lintlib: $(LINT_DEPS) - -# # Include common targets. # include $(UTSBASE)/sun4u/serengeti/Makefile.targ diff --git a/usr/src/uts/sun4u/serrano/Makefile b/usr/src/uts/sun4u/serrano/Makefile index 28dfb143f6..83d838b3cc 100644 --- a/usr/src/uts/sun4u/serrano/Makefile +++ b/usr/src/uts/sun4u/serrano/Makefile @@ -41,7 +41,6 @@ UTSBASE = ../.. MODULE = SUNW,UltraSPARC-IIIi+ OBJECTS = $(JALAPENO_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(JALAPENO_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE) ROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_PSM_CPU_DIR)/%) @@ -62,14 +61,15 @@ CLEANFILES += $(CPULIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # -CFLAGS += $(CCVERBOSE) -DCHEETAH -DSERRANO -DCPU_IMP_L1_CACHE_PARITY \ - -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE +CFLAGS += -DCHEETAH -DSERRANO -DCPU_IMP_L1_CACHE_PARITY \ + -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE ASFLAGS += -DCHEETAH -DSERRANO -DCPU_IMP_L1_CACHE_PARITY \ -DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE @@ -94,12 +94,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(CPULIB): $(OBJECTS) @@ -118,16 +112,11 @@ $(ROOTSOFTLINKS): $(ROOTMODULE) include $(UTSBASE)/sun4u/Makefile.targ # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_STATIC_UNUSED -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV - +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-type-limits diff --git a/usr/src/uts/sun4u/sf/Makefile b/usr/src/uts/sun4u/sf/Makefile index 5ab7f68103..3ec5ab141d 100644 --- a/usr/src/uts/sun4u/sf/Makefile +++ b/usr/src/uts/sun4u/sf/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../.. # MODULE = sf OBJECTS = $(SF_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SF_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun/io/scsi/adapters @@ -54,7 +53,6 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # @@ -68,13 +66,10 @@ CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -N misc/scsi # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum 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-unused-value CERRWARN += -_gcc=-Wno-parentheses @@ -93,12 +88,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/sha1/Makefile b/usr/src/uts/sun4u/sha1/Makefile index d62f696e5b..11aad38874 100644 --- a/usr/src/uts/sun4u/sha1/Makefile +++ b/usr/src/uts/sun4u/sha1/Makefile @@ -39,7 +39,6 @@ COM_DIR = $(COMMONBASE)/crypto # MODULE = sha1 OBJECTS = $(SHA1_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SHA1_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_CRYPTO_DIR)/$(MODULE) ROOTLINK = $(ROOT_PSM_MISC_DIR)/$(MODULE) @@ -52,7 +51,6 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) # @@ -60,13 +58,15 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) # LDFLAGS += -dy -Nmisc/kcf -# -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) -I$(COM_DIR) +CFLAGS += -I$(COM_DIR) CFLAGS += -DVIS_SHA1 -LINTFLAGS += -I$(COM_DIR) +# +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. +# +CFLAGS += $(CCVERBOSE) CERRWARN += $(CNOWARN_UNINIT) # @@ -82,12 +82,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(ROOTLINK): $(ROOT_PSM_MISC_DIR) $(ROOTMODULE) diff --git a/usr/src/uts/sun4u/simba/Makefile b/usr/src/uts/sun4u/simba/Makefile index 42031404d8..9a3e909ef0 100644 --- a/usr/src/uts/sun4u/simba/Makefile +++ b/usr/src/uts/sun4u/simba/Makefile @@ -41,7 +41,6 @@ UTSBASE = ../.. # MODULE = simba OBJECTS = $(SIMBA_PCI_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SIMBA_PCI_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -53,14 +52,12 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# Turn this on once compiler understands v9 in it's backend -#INLINES += $(UTSBASE)/sun4u/io/pci.il - # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-switch @@ -83,12 +80,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/smbus/Makefile b/usr/src/uts/sun4u/smbus/Makefile index 95db67bdd6..8aaefa0613 100644 --- a/usr/src/uts/sun4u/smbus/Makefile +++ b/usr/src/uts/sun4u/smbus/Makefile @@ -33,7 +33,6 @@ UTSBASE = ../.. # MODULE = smbus OBJECTS = $(SMBUS_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SMBUS_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -41,25 +40,14 @@ ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # include $(UTSBASE)/sun4u/Makefile.sun4u -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) -I../../sun4u LDFLAGS += -dy -N misc/i2c_svc # -# 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 - -# # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) .KEEP_STATE: @@ -72,12 +60,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/sn1_brand/Makefile b/usr/src/uts/sun4u/sn1_brand/Makefile index 135ee8667b..3c29dd5063 100644 --- a/usr/src/uts/sun4u/sn1_brand/Makefile +++ b/usr/src/uts/sun4u/sn1_brand/Makefile @@ -36,7 +36,6 @@ SN1_BASE = $(UTSBASE)/common/brand/sn1 # MODULE = sn1_brand OBJECTS = $(SN1_BRAND_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SN1_BRAND_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_BRAND_DIR)/$(MODULE) # @@ -48,7 +47,6 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # @@ -70,12 +68,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/spitfire/Makefile b/usr/src/uts/sun4u/spitfire/Makefile index d6b1481448..7af0d744e8 100644 --- a/usr/src/uts/sun4u/spitfire/Makefile +++ b/usr/src/uts/sun4u/spitfire/Makefile @@ -41,7 +41,6 @@ UTSBASE = ../.. # MODULE = SUNW,UltraSPARC-II OBJECTS = $(SPITFIRE_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SPITFIRE_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE) SOFTLINKS = SUNW,UltraSPARC-IIi ROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_PSM_CPU_DIR)/%) @@ -63,29 +62,20 @@ CLEANFILES += $(CPULIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS) # -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) - -# # cpu-module-specific flags # CPPFLAGS += -DCPU_MODULE -DSPITFIRE AS_CPPFLAGS += -DCPU_MODULE -DSPITFIRE # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV -LINTTAGS += -erroff=E_BAD_FORMAT_STR2 - +CFLAGS += $(CCVERBOSE) CERRWARN += $(CNOWARN_UNINIT) # @@ -101,12 +91,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(CPULIB): $(OBJECTS) diff --git a/usr/src/uts/sun4u/sunfire/Makefile.rules b/usr/src/uts/sun4u/sunfire/Makefile.rules index 8f09df751e..3e3188abe0 100644 --- a/usr/src/uts/sun4u/sunfire/Makefile.rules +++ b/usr/src/uts/sun4u/sunfire/Makefile.rules @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This Makefile defines the build rules for the directory # uts/sun4u/sunfire. @@ -45,12 +45,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/sunfire/io/%.c $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/sunfire/ml/%.s $(COMPILE.s) -o $@ $< - -# -# Section 1b: Lint `object' build rules -# -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/sunfire/io/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/sunfire/ml/%.s - @($(LHEAD) $(LINT.s) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/sunfire/Makefile.sunfire b/usr/src/uts/sun4u/sunfire/Makefile.sunfire index 1c7b558007..3a00fa6cbd 100644 --- a/usr/src/uts/sun4u/sunfire/Makefile.sunfire +++ b/usr/src/uts/sun4u/sunfire/Makefile.sunfire @@ -51,8 +51,6 @@ USR_SUNFIRE_ISYS_DIR = $(USR_SUNFIRE_INC_DIR)/sys USR_SUNFIRE_SBIN_DIR = $(USR_SUNFIRE_DIR)/sbin USR_SUNFIRE_LIB_DIR = $(USR_SUNFIRE_DIR)/lib -SUNFIRE_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/sunfire/lint-libs/$(OBJS_DIR) - # # Define objects. # @@ -69,15 +67,3 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define modules (must come after Makefile.sun4u). # SUNFIRE_KMODS = ac central environ fhc simmstat sysctrl sram - -# -# 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_SUSPICIOUS_COMPARISON -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED -LINTTAGS += -erroff=E_STATIC_UNUSED -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV diff --git a/usr/src/uts/sun4u/sunfire/ac/Makefile b/usr/src/uts/sun4u/sunfire/ac/Makefile index 966a97147e..888d68bb00 100644 --- a/usr/src/uts/sun4u/sunfire/ac/Makefile +++ b/usr/src/uts/sun4u/sunfire/ac/Makefile @@ -39,7 +39,6 @@ UTSBASE = ../../.. # MODULE = ac OBJECTS = $(AC_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(AC_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SUNFIRE_DRV_DIR)/$(MODULE) # @@ -51,11 +50,12 @@ include $(UTSBASE)/sun4u/sunfire/Makefile.sunfire # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += $(CNOWARN_UNINIT) @@ -83,12 +83,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/sunfire/central/Makefile b/usr/src/uts/sun4u/sunfire/central/Makefile index 1087a9eadb..1910a975fd 100644 --- a/usr/src/uts/sun4u/sunfire/central/Makefile +++ b/usr/src/uts/sun4u/sunfire/central/Makefile @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the central driver kernel # module. @@ -41,7 +41,6 @@ UTSBASE = ../../.. # MODULE = central OBJECTS = $(CENTRAL_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(CENTRAL_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SUNFIRE_DRV_DIR)/$(MODULE) # @@ -53,12 +52,8 @@ include $(UTSBASE)/sun4u/sunfire/Makefile.sunfire # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -79,12 +74,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/sunfire/environ/Makefile b/usr/src/uts/sun4u/sunfire/environ/Makefile index c3cf7a0f0f..463e991311 100644 --- a/usr/src/uts/sun4u/sunfire/environ/Makefile +++ b/usr/src/uts/sun4u/sunfire/environ/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = environ OBJECTS = $(ENVIRON_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(ENVIRON_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SUNFIRE_DRV_DIR)/$(MODULE) # @@ -52,12 +51,8 @@ include $(UTSBASE)/sun4u/sunfire/Makefile.sunfire # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -83,12 +78,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/sunfire/fhc/Makefile b/usr/src/uts/sun4u/sunfire/fhc/Makefile index 02571f204a..d50c6e1401 100644 --- a/usr/src/uts/sun4u/sunfire/fhc/Makefile +++ b/usr/src/uts/sun4u/sunfire/fhc/Makefile @@ -23,7 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the fhc driver kernel module. # @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = fhc OBJECTS = $(FHC_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(FHC_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SUNFIRE_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4u/sunfire/io @@ -53,12 +52,8 @@ include $(UTSBASE)/sun4u/sunfire/Makefile.sunfire # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -79,12 +74,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/sunfire/simmstat/Makefile b/usr/src/uts/sun4u/sunfire/simmstat/Makefile index e893eed9a9..0433070297 100644 --- a/usr/src/uts/sun4u/sunfire/simmstat/Makefile +++ b/usr/src/uts/sun4u/sunfire/simmstat/Makefile @@ -24,7 +24,7 @@ # Use is subject to license terms. # Copyright (c) 2011 Bayard G. Bell. All rights reserved. # -# This makefile drives the production of the simmstat driver kernel +# This makefile drives the production of the simmstat driver kernel # module. # # sun4u implementation architecture dependent @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = simmstat OBJECTS = $(SIMMSTAT_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SIMMSTAT_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SUNFIRE_DRV_DIR)/$(MODULE) # @@ -52,12 +51,8 @@ include $(UTSBASE)/sun4u/sunfire/Makefile.sunfire # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -83,12 +78,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/sunfire/sram/Makefile b/usr/src/uts/sun4u/sunfire/sram/Makefile index 2b27795593..67ff2702a1 100644 --- a/usr/src/uts/sun4u/sunfire/sram/Makefile +++ b/usr/src/uts/sun4u/sunfire/sram/Makefile @@ -39,7 +39,6 @@ UTSBASE = ../../.. # MODULE = sram OBJECTS = $(SRAM_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SRAM_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SUNFIRE_DRV_DIR)/$(MODULE) # @@ -51,12 +50,8 @@ include $(UTSBASE)/sun4u/sunfire/Makefile.sunfire # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -82,12 +77,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/sunfire/sysctrl/Makefile b/usr/src/uts/sun4u/sunfire/sysctrl/Makefile index 21411d8b9d..48cdf81eb8 100644 --- a/usr/src/uts/sun4u/sunfire/sysctrl/Makefile +++ b/usr/src/uts/sun4u/sunfire/sysctrl/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = sysctrl OBJECTS = $(SYSCTRL_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(SYSCTRL_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_SUNFIRE_DRV_DIR)/$(MODULE) # @@ -52,11 +51,12 @@ include $(UTSBASE)/sun4u/sunfire/Makefile.sunfire # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses @@ -85,12 +85,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/taco/Makefile b/usr/src/uts/sun4u/taco/Makefile index 827f82a215..3f067a3c36 100644 --- a/usr/src/uts/sun4u/taco/Makefile +++ b/usr/src/uts/sun4u/taco/Makefile @@ -19,11 +19,10 @@ # CDDL HEADER END # # -# uts/sun4u/taco/Makefile # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the sun4u taco platform # module. @@ -47,12 +46,8 @@ install := TARGET= install install_h := TARGET= install_h clean := TARGET= clean clobber := TARGET= clobber -lint := TARGET= lint -lintlib := TARGET= lintlib -modlintlib := TARGET= modlintlib modlist := TARGET= modlist modlist := NO_STATE= -K $$MODSTATE$$$$ -clean.lint := TARGET= clean.lint check := TARGET= check # @@ -60,9 +55,7 @@ check := TARGET= check # .KEEP_STATE: -def all clean clean.lint clobber modlist: $(TACO_KMODS) - -modlintlib: $(TACO_KMODS) +def all clean clobber modlist: $(TACO_KMODS) install: $(ROOT_TACO_DIR) \ $(USR_TACO_DIR) \ @@ -74,24 +67,6 @@ install: $(ROOT_TACO_DIR) \ check install_h: -lint: modlintlib - -# -# The 'lint.platmod' target lints the taco platform module against the sun4u -# kernel. This ends up doing all the kernel cross-checks, so it takes a couple -# of minutes. Due to the low ROI, it's not run by default, but it's a good -# idea to run this if you change os/taco.c. -# -LINT_LIBS = $(LINT_LIB) \ - -L$(TACO_LINT_LIB_DIR) \ - -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \ - $(CLOSED_LINT_KMODS:%=-l%) \ - -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%) - -lint.platmod: modlintlib - @-$(ECHO) "\nTaco Platform-dependent module: global crosschecks:" - @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) - $(TACO_KMODS): FRC @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) diff --git a/usr/src/uts/sun4u/taco/Makefile.rules b/usr/src/uts/sun4u/taco/Makefile.rules index b7f1464951..bdc0498438 100644 --- a/usr/src/uts/sun4u/taco/Makefile.rules +++ b/usr/src/uts/sun4u/taco/Makefile.rules @@ -23,8 +23,6 @@ # Copyright 2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # This Makefile defines the build rules for the directory @@ -45,10 +43,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/taco/os/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) - -# -# Section 1b: Lint `object' build rules -# - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/taco/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/taco/Makefile.taco b/usr/src/uts/sun4u/taco/Makefile.taco index 733d3019fe..72bad237ab 100644 --- a/usr/src/uts/sun4u/taco/Makefile.taco +++ b/usr/src/uts/sun4u/taco/Makefile.taco @@ -23,8 +23,6 @@ # Copyright 2002-2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# # # Global definitions for sun4u implementation specific modules @@ -57,8 +55,6 @@ USR_TACO_ISYS_DIR = $(USR_TACO_INC_DIR)/sys USR_TACO_SBIN_DIR = $(USR_TACO_DIR)/sbin USR_TACO_LIB_DIR = $(USR_TACO_DIR)/lib -TACO_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/taco/lint-libs/$(OBJS_DIR) - # # Define objects # diff --git a/usr/src/uts/sun4u/taco/platmod/Makefile b/usr/src/uts/sun4u/taco/platmod/Makefile index 328ee26896..1e7f8e9f97 100644 --- a/usr/src/uts/sun4u/taco/platmod/Makefile +++ b/usr/src/uts/sun4u/taco/platmod/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(TACO_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(TACO_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_TACO_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -60,12 +59,8 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -81,17 +76,10 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) check: -LINT_LIB_DIR = $(TACO_LINT_LIB_DIR) $(PLATLIB): $(OBJECTS) $(BUILD.SO) $(OBJECTS) diff --git a/usr/src/uts/sun4u/taco/ppm/Makefile b/usr/src/uts/sun4u/taco/ppm/Makefile index 73bd0b8684..ea7b1eac01 100644 --- a/usr/src/uts/sun4u/taco/ppm/Makefile +++ b/usr/src/uts/sun4u/taco/ppm/Makefile @@ -23,8 +23,6 @@ # Copyright 2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" -# # # This makefile drives the production of the platform power @@ -60,7 +58,6 @@ INSTALL_TARGET = $(ROOT_CONFFILE) NO_BUILDS = ALL_BUILDS = $(ALL_BUILDSONLY64) DEF_BUILDS = $(DEF_BUILDSONLY64) -CLEANLINTFILES += $(LINT32_FILES) # # The only thing we do from here is install the .conf file @@ -86,7 +83,7 @@ CFLAGS += -dalign # .KEEP_STATE: -def all clean clobber lint modlintlib clean.lint: +def all clean clobber: install: $(CONF_INSTALL_DEPS) diff --git a/usr/src/uts/sun4u/tazmo/Makefile.rules b/usr/src/uts/sun4u/tazmo/Makefile.rules index 420eb501f8..49a51dd720 100644 --- a/usr/src/uts/sun4u/tazmo/Makefile.rules +++ b/usr/src/uts/sun4u/tazmo/Makefile.rules @@ -23,7 +23,7 @@ # Copyright 1994-2002 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This Makefile defines the build rules for the directory # uts/sun4u/tazmo. @@ -46,12 +46,3 @@ $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/tazmo/io/%.c $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/tazmo/os/%.c $(COMPILE.c) -o $@ $< $(CTFCONVERT_O) - -# -# Section 1b: Lint `object' build rules -# -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/tazmo/io/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) - -$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/tazmo/os/%.c - @($(LHEAD) $(LINT.c) $< $(LTAIL)) diff --git a/usr/src/uts/sun4u/tazmo/Makefile.tazmo b/usr/src/uts/sun4u/tazmo/Makefile.tazmo index dd4bfa6ef5..947d238d99 100644 --- a/usr/src/uts/sun4u/tazmo/Makefile.tazmo +++ b/usr/src/uts/sun4u/tazmo/Makefile.tazmo @@ -55,8 +55,6 @@ USR_TAZMO_ISYS_DIR = $(USR_TAZMO_INC_DIR)/sys USR_TAZMO_SBIN_DIR = $(USR_TAZMO_DIR)/sbin USR_TAZMO_LIB_DIR = $(USR_TAZMO_DIR)/lib -TAZMO_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/tazmo/lint-libs/$(OBJS_DIR) - # # Define objects. # @@ -74,14 +72,3 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # TAZMO_KMODS = platmod TAZMO_KMODS += envctrl - -# -# 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_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV -LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON - diff --git a/usr/src/uts/sun4u/tazmo/envctrl/Makefile b/usr/src/uts/sun4u/tazmo/envctrl/Makefile index 7877ead054..f0ab1672f6 100644 --- a/usr/src/uts/sun4u/tazmo/envctrl/Makefile +++ b/usr/src/uts/sun4u/tazmo/envctrl/Makefile @@ -41,7 +41,6 @@ UTSBASE = ../../.. # MODULE = envctrl OBJECTS = $(ENVCTRL_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(ENVCTRL_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_TAZMO_DRV_DIR)/$(MODULE) # @@ -53,11 +52,12 @@ include $(UTSBASE)/sun4u/tazmo/Makefile.tazmo # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses @@ -84,15 +84,8 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) -LINT_LIB_DIR = $(TAZMO_LINT_LIB_DIR) # # Include common targets. # diff --git a/usr/src/uts/sun4u/tazmo/platmod/Makefile b/usr/src/uts/sun4u/tazmo/platmod/Makefile index 02d5ab522c..5045b24ca4 100644 --- a/usr/src/uts/sun4u/tazmo/platmod/Makefile +++ b/usr/src/uts/sun4u/tazmo/platmod/Makefile @@ -40,7 +40,6 @@ UTSBASE = ../../.. # MODULE = platmod OBJECTS = $(TAZMO_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(TAZMO_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_TAZMO_MISC_DIR)/$(MODULE) PLAT_DIR = . @@ -60,12 +59,8 @@ CLEANFILES += $(PLATLIB) $(SYM_MOD) # Define targets # ALL_TARGET = $(SYM_MOD) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -81,17 +76,10 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) check: -LINT_LIB_DIR = $(TAZMO_LINT_LIB_DIR) $(PLATLIB): $(OBJECTS) $(BUILD.SO) $(OBJECTS) diff --git a/usr/src/uts/sun4u/todbq4802/Makefile b/usr/src/uts/sun4u/todbq4802/Makefile index ee6c0b789b..bfc74ef80c 100644 --- a/usr/src/uts/sun4u/todbq4802/Makefile +++ b/usr/src/uts/sun4u/todbq4802/Makefile @@ -23,7 +23,7 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" + # # # This makefile drives the production of todbq4802 kernel module. @@ -41,7 +41,6 @@ UTSBASE = ../.. # MODULE = todbq4802 OBJECTS = $(TODBQ4802_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(TODBQ4802_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_TOD_DIR)/$(MODULE) # @@ -53,12 +52,8 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -74,12 +69,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/todm5819/Makefile b/usr/src/uts/sun4u/todm5819/Makefile index e2e765e188..2827de5e70 100644 --- a/usr/src/uts/sun4u/todm5819/Makefile +++ b/usr/src/uts/sun4u/todm5819/Makefile @@ -23,7 +23,7 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of todds1287 kernel module. # @@ -40,7 +40,6 @@ UTSBASE = ../.. # MODULE = todm5819 OBJECTS = $(TODM5819_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(TODM5819_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_TOD_DIR)/$(MODULE) # @@ -52,12 +51,8 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -73,12 +68,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/todm5819p_rmc/Makefile b/usr/src/uts/sun4u/todm5819p_rmc/Makefile index 7725458687..92d0ae6824 100644 --- a/usr/src/uts/sun4u/todm5819p_rmc/Makefile +++ b/usr/src/uts/sun4u/todm5819p_rmc/Makefile @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of todm5819p_rmc kernel module. # @@ -39,7 +39,6 @@ UTSBASE = ../.. # MODULE = todm5819p_rmc OBJECTS = $(TODM5819P_RMC_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(TODM5819P_RMC_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_TOD_DIR)/$(MODULE) # @@ -51,12 +50,8 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) LDFLAGS += -dy -Ndrv/rmc_comm -Ndrv/pmugpio @@ -73,12 +68,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/todmostek/Makefile b/usr/src/uts/sun4u/todmostek/Makefile index 8afa5b9b9a..c0e4c18056 100644 --- a/usr/src/uts/sun4u/todmostek/Makefile +++ b/usr/src/uts/sun4u/todmostek/Makefile @@ -20,11 +20,10 @@ # CDDL HEADER END # # -# uts/sun4u/todmostek/Makefile # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of todmostek kernel module. # @@ -41,7 +40,6 @@ UTSBASE = ../.. # MODULE = todmostek OBJECTS = $(TODMOSTEK_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(TODMOSTEK_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_TOD_DIR)/$(MODULE) # @@ -53,12 +51,8 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -74,12 +68,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/todopl/Makefile b/usr/src/uts/sun4u/todopl/Makefile index 28db86792f..8ce64d1779 100644 --- a/usr/src/uts/sun4u/todopl/Makefile +++ b/usr/src/uts/sun4u/todopl/Makefile @@ -22,9 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" -# -# uts/sun4u/todopl/Makefile + # # This makefile drives the production of the todopl # kernel module. @@ -40,7 +38,6 @@ UTSBASE = ../.. # MODULE = todopl OBJECTS = $(TODOPL_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(TODOPL_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_TOD_DIR)/$(MODULE) # @@ -53,7 +50,6 @@ INC_PATH += -I$(UTSBASE)/sun4u/opl # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # @@ -74,12 +70,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/todsg/Makefile b/usr/src/uts/sun4u/todsg/Makefile index d78bf5c499..38cfe19293 100644 --- a/usr/src/uts/sun4u/todsg/Makefile +++ b/usr/src/uts/sun4u/todsg/Makefile @@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the todsg # kernel module. @@ -38,7 +38,6 @@ UTSBASE = ../.. # MODULE = todsg OBJECTS = $(TODSG_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(TODSG_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_TOD_DIR)/$(MODULE) # @@ -50,12 +49,8 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -66,14 +61,7 @@ LDFLAGS += -dy -Ndrv/sgsbbc # # serengeti speciific header files # -INC_PATH += -I$(UTSBASE)/sun4u/serengeti - -# -# 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_PTRDIFF_OVERFLOW +INC_PATH += -I$(UTSBASE)/sun4u/serengeti # # Default build targets. @@ -88,12 +76,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/trapstat/Makefile b/usr/src/uts/sun4u/trapstat/Makefile index a8c29ad0de..2b729a8598 100644 --- a/usr/src/uts/sun4u/trapstat/Makefile +++ b/usr/src/uts/sun4u/trapstat/Makefile @@ -23,7 +23,7 @@ # Copyright 2005 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#pragma ident "%Z%%M% %I% %E% SMI" + # # This makefile drives the production of the trapstat kernel module. # @@ -40,7 +40,6 @@ UTSBASE = ../.. # MODULE = trapstat OBJECTS = $(TRAPSTAT_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(TRAPSTAT_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/sun4/io @@ -53,12 +52,8 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) $(SRC_CONFFILE) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) -# -# lint pass one enforcement -# CFLAGS += $(CCVERBOSE) # @@ -74,12 +69,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/unix/Makefile b/usr/src/uts/sun4u/unix/Makefile index 73c5a41f02..87ab05d148 100644 --- a/usr/src/uts/sun4u/unix/Makefile +++ b/usr/src/uts/sun4u/unix/Makefile @@ -43,12 +43,6 @@ UNIX = unix OBJECTS = $(SPECIAL_OBJS:%=$(OBJS_DIR)/%) \ $(CORE_OBJS:%=$(OBJS_DIR)/%) \ $(MACH_NOT_YET_KMODS:%=$(OBJS_DIR)/%) -LINTS = $(SPECIAL_OBJS:%.o=$(LINTS_DIR)/%.ln) \ - $(CORE_OBJS:%.o=$(LINTS_DIR)/%.ln) \ - $(KRTLD_OBJS:%.o=$(LINTS_DIR)/%.ln) \ - $(MACH_NOT_YET_KMODS:%.o=$(LINTS_DIR)/%.ln) \ - $(LINTS_DIR)/vers.ln \ - $(LINTS_DIR)/modstubs.ln KRTLD_MAPFILE = $(UTSBASE)/sparc/krtld/mapfile KRTLD_OBJECTS = $(KRTLD_OBJS:%=$(OBJS_DIR)/%) @@ -84,7 +78,6 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(UNIX_BIN) -LINT_TARGET = $(LINT_LIB) INSTALL_TARGET = $(UNIX_BIN) $(ROOTMODULE) $(UNIX32_LINK) # @@ -101,26 +94,16 @@ CLEANFILES += $(UNIX_O) $(MODSTUBS_O) $(KRTLD_O) $(KRTLD_OBJECTS) \ $(DTRACESTUBS_O) $(DTRACESTUBS) CLOBBERFILES = $(CLEANFILES) $(UNIX_BIN) -CLEANLINTFILES += $(LINT_LIB) -# -# lint pass one enforcement # Turn on doubleword alignment for 64 bit counter timer registers -# -CFLAGS += $(CCVERBOSE) -dalign +CFLAGS += -dalign # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN -LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED -LINTTAGS += -erroff=E_STATIC_UNUSED -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV - +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-char-subscripts @@ -146,10 +129,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) @@ -187,24 +166,6 @@ $(PLATLIB): ?@pwd # -# The global lint target builds the kernel lint library (llib-lunix.ln) -# which is equivalent to a lint of /unix.o. Then all kernel modules for -# this architecture are linted against the kernel lint library. -# -# Note: lint errors in the kernel lint library will be repeated for -# each module. It is important that the kernel lint library -# be clean to keep the textual output to a reasonable level. -# - -$(LINT_LIB): $(LINT_LIB_DIR) $(LINTS) - @pwd - @-$(ECHO) "\n$(UNIX): (library construction):" - @$(LINT) -o $(UNIX) $(LINTFLAGS) $(LINTS) - @$(MV) $(@F) $@ - -lintlib: $(LINT_DEPS) - -# # Include common targets. # include $(UTSBASE)/sun4u/Makefile.targ diff --git a/usr/src/uts/sun4u/upa64s/Makefile b/usr/src/uts/sun4u/upa64s/Makefile index 1d2e17ed0a..ca7d07362d 100644 --- a/usr/src/uts/sun4u/upa64s/Makefile +++ b/usr/src/uts/sun4u/upa64s/Makefile @@ -39,7 +39,6 @@ UTSBASE = ../.. # MODULE = upa64s OBJECTS = $(UPA64S_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(UPA64S_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -51,21 +50,14 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) - -# -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN - +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-switch CERRWARN += $(CNOWARN_UNINIT) @@ -83,12 +75,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/us/Makefile b/usr/src/uts/sun4u/us/Makefile index 110f57f0f7..a27ff4042a 100644 --- a/usr/src/uts/sun4u/us/Makefile +++ b/usr/src/uts/sun4u/us/Makefile @@ -42,7 +42,6 @@ UTSBASE = ../.. # MODULE = us OBJECTS = $(US_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(US_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) # @@ -54,27 +53,19 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement -# -CFLAGS += $(CCVERBOSE) - -# # Turn on doubleword alignment for 64 bit registers # CFLAGS += -dalign # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV - +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += $(CNOWARN_UNINIT) @@ -91,12 +82,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/us234_pcbe/Makefile b/usr/src/uts/sun4u/us234_pcbe/Makefile index f6c68c324e..2fe8e16fb8 100644 --- a/usr/src/uts/sun4u/us234_pcbe/Makefile +++ b/usr/src/uts/sun4u/us234_pcbe/Makefile @@ -34,7 +34,6 @@ UTSBASE = ../.. # MODULE = pcbe.62 OBJECTS = $(US_PCBE_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(US_PCBE_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(USR_PCBE_DIR)/$(MODULE) ROOTLINK = $(USR_PCBE_DIR)/pcbe.23 @@ -47,17 +46,13 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets. # ALL_TARGET = $(BINARY) -LINT_MODULE = us234_pcbe -LINT_TARGET = $(LINT_MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) # -# For now, disable these lint checks; maintainers should endeavor -# to investigate and remove these for maximum lint coverage. +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. # Please do not carry these forward to new Makefiles. # -LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON -LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV CERRWARN += -_gcc=-Wno-type-limits @@ -74,12 +69,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) $(ROOTLINK): $(ROOTMODULE) diff --git a/usr/src/uts/sun4u/vis/Makefile b/usr/src/uts/sun4u/vis/Makefile index 7ce1877331..956a107324 100644 --- a/usr/src/uts/sun4u/vis/Makefile +++ b/usr/src/uts/sun4u/vis/Makefile @@ -41,7 +41,6 @@ UTSBASE = ../.. # MODULE = vis OBJECTS = $(VIS_OBJS:%=$(OBJS_DIR)/%) -LINTS = $(VIS_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) # @@ -53,11 +52,12 @@ include $(UTSBASE)/sun4u/Makefile.sun4u # Define targets # ALL_TARGET = $(BINARY) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(BINARY) $(ROOTMODULE) # -# lint pass one enforcement +# For now, disable these warnings; maintainers should endeavor +# to investigate and remove these for maximum coverage. +# Please do not carry these forward to new Makefiles. # CFLAGS += $(CCVERBOSE) CERRWARN += $(CNOWARN_UNINIT) @@ -72,12 +72,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # diff --git a/usr/src/uts/sun4u/vm/Makefile b/usr/src/uts/sun4u/vm/Makefile index 4b13d436ff..6c1a33bd37 100644 --- a/usr/src/uts/sun4u/vm/Makefile +++ b/usr/src/uts/sun4u/vm/Makefile @@ -76,6 +76,5 @@ CLEANFILES= CLOBBERFILES= -CLEANLINTFILES= include ../../Makefile.targ |