diff options
author | John Levon <john.levon@joyent.com> | 2019-07-24 13:20:02 -0700 |
---|---|---|
committer | John Levon <john.levon@joyent.com> | 2019-08-12 08:25:47 -0700 |
commit | efe51d0cc2398b9ac179568b63a44e4bf295b8e2 (patch) | |
tree | 7cfc305912bf3c9efe1a234885b96678a89af2a5 /usr/src/uts/intel/genunix | |
parent | cc7e66e6be0e280179bd43f44f08e442d9839a8f (diff) | |
download | illumos-joyent-efe51d0cc2398b9ac179568b63a44e4bf295b8e2.tar.gz |
11506 smatch resync
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/uts/intel/genunix')
-rw-r--r-- | usr/src/uts/intel/genunix/Makefile | 44 |
1 files changed, 4 insertions, 40 deletions
diff --git a/usr/src/uts/intel/genunix/Makefile b/usr/src/uts/intel/genunix/Makefile index 04a0279b01..58a50d801a 100644 --- a/usr/src/uts/intel/genunix/Makefile +++ b/usr/src/uts/intel/genunix/Makefile @@ -23,13 +23,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# Copyright (c) 2018, Joyent, Inc. - -# -# This makefile drives the production of the generic -# unix kernel module. -# -# x86 implementation architecture dependent +# Copyright 2019 Joyent, Inc. # # @@ -46,9 +40,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_KERN_DIR)/$(MODULE) LIBGEN = $(OBJS_DIR)/libgenunix.so @@ -63,7 +54,6 @@ include $(UTSBASE)/intel/Makefile.intel # Define targets # ALL_TARGET = $(LIBGEN) $(GENUNIX) -LINT_TARGET = $(MODULE).lint INSTALL_TARGET = $(LIBGEN) $(GENUNIX) $(ROOTMODULE) # @@ -88,18 +78,6 @@ CPPFLAGS += -I$(SRC)/uts/common/fs/zfs CPPFLAGS += -I$(UTSBASE)/i86pc -# -# 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 - CERRWARN += -_gcc=-Wno-unused-label CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-unused-value @@ -111,6 +89,9 @@ CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-clobbered CERRWARN += -_gcc=-Wno-empty-body +# very hairy +$(OBJS_DIR)/u8_textprep.o := SMATCH=off + # false positives SMOFF += index_overflow $(OBJS_DIR)/seg_vn.o := SMOFF += deref_check @@ -130,12 +111,6 @@ $(OBJS_DIR)/timers.o := SMOFF += signed_integer_overflow_check $(OBJS_DIR)/acl_common.o := SMOFF += or_vs_and # -# Ensure that lint sees 'struct cpu' containing a fully declared -# embedded 'struct machcpu' -# -LINTFLAGS += -D_MACHDEP -I../../i86pc - -# # Default build targets. # .KEEP_STATE: @@ -148,12 +123,6 @@ clean: $(CLEAN_DEPS) clobber: $(CLOBBER_DEPS) -lint: $(LINT_DEPS) - -modlintlib: $(MODLINTLIB_DEPS) - -clean.lint: $(CLEAN_LINT_DEPS) - install: $(INSTALL_DEPS) # Due to what seems to be an issue in GCC 4 generated DWARF containing @@ -190,8 +159,3 @@ include $(UTSBASE)/intel/Makefile.targ include $(UTSBASE)/i86pc/Makefile.workarounds ALL_DEFS += $(WORKAROUND_DEFS) - -# -# Override. -# -$(MODULE).lint := GEN_LINT_LIB = |