diff options
author | John Levon <john.levon@joyent.com> | 2018-12-17 21:44:38 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2019-01-14 18:34:56 +0000 |
commit | 05ede3db5e3b7d540afbccdc872c735770e82ef3 (patch) | |
tree | 48e8ef98653eb259c6a4ed19a6fafa66f2a209f5 /usr | |
parent | cadd68ea0014761eda6a293664086dfa80686d85 (diff) | |
download | illumos-joyent-05ede3db5e3b7d540afbccdc872c735770e82ef3.tar.gz |
10079 smatch Makefile changes for usr/src/lib
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr')
162 files changed, 654 insertions, 76 deletions
diff --git a/usr/src/lib/auditd_plugins/binfile/Makefile.com b/usr/src/lib/auditd_plugins/binfile/Makefile.com index f3f74d02b1..24e4d5cac0 100644 --- a/usr/src/lib/auditd_plugins/binfile/Makefile.com +++ b/usr/src/lib/auditd_plugins/binfile/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= audit_binfile.a VERS= .1 @@ -40,6 +41,9 @@ CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 CERRWARN += -_gcc=-Wno-parentheses +# not linted +SMATCH=off + ROOTLIBDIR= $(ROOT)/usr/lib/security .KEEP_STATE: diff --git a/usr/src/lib/auditd_plugins/syslog/Makefile.com b/usr/src/lib/auditd_plugins/syslog/Makefile.com index 0e1c95eed9..624707fa3f 100644 --- a/usr/src/lib/auditd_plugins/syslog/Makefile.com +++ b/usr/src/lib/auditd_plugins/syslog/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= audit_syslog.a VERS= .1 @@ -50,6 +51,9 @@ CPPFLAGS += -I$(LIBBSM) CERRWARN += -_gcc=-Wno-char-subscripts CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + ROOTLIBDIR= $(ROOT)/usr/lib/security .KEEP_STATE: diff --git a/usr/src/lib/brand/shared/librtld_db/Makefile.com b/usr/src/lib/brand/shared/librtld_db/Makefile.com index dc34726f4e..30fef02f93 100644 --- a/usr/src/lib/brand/shared/librtld_db/Makefile.com +++ b/usr/src/lib/brand/shared/librtld_db/Makefile.com @@ -21,6 +21,7 @@ # # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. include $(SRC)/lib/Makefile.lib @@ -52,6 +53,9 @@ CPPFLAGS += -D_REENTRANT \ -I$(SRC)/cmd/sgs/include \ -I$(SRC)/cmd/sgs/include/$(MACH) +# not linted +SMATCH=off + ROOTLIBDIR = $(ROOT)/usr/lib/brand/$(BRAND) ROOTLIBDIR64 = $(ROOT)/usr/lib/brand/$(BRAND)/$(MACH64) diff --git a/usr/src/lib/cfgadm_plugins/fp/Makefile.com b/usr/src/lib/cfgadm_plugins/fp/Makefile.com index c18d3323d3..e319918c1b 100644 --- a/usr/src/lib/cfgadm_plugins/fp/Makefile.com +++ b/usr/src/lib/cfgadm_plugins/fp/Makefile.com @@ -22,12 +22,12 @@ # Copyright 2010 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY= fp.a VERS= .1 -OBJECTS = cfga_fp.o cfga_rcm.o cfga_cs.o cfga_utils.o +OBJECTS = cfga_fp.o cfga_rcm.o cfga_cs.o cfga_utils.o OBJECTS += cfga_cvt.o cfga_list.o cfga_rep.o # include library definitions @@ -51,6 +51,9 @@ CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-address +# not linted +SMATCH=off + CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS LINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY diff --git a/usr/src/lib/cfgadm_plugins/ib/Makefile.com b/usr/src/lib/cfgadm_plugins/ib/Makefile.com index 185009afea..97a2a1816b 100644 --- a/usr/src/lib/cfgadm_plugins/ib/Makefile.com +++ b/usr/src/lib/cfgadm_plugins/ib/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= ib.a VERS= .1 @@ -48,6 +49,9 @@ CERRWARN += -_gcc=-Wno-char-subscripts CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-unused-value +# not linted +SMATCH=off + LDLIBS += -lc -ldevice -ldevinfo -lrcm -lnvpair .KEEP_STATE: diff --git a/usr/src/lib/cfgadm_plugins/pci/Makefile.com b/usr/src/lib/cfgadm_plugins/pci/Makefile.com index b53cad13f7..7abe51ddef 100644 --- a/usr/src/lib/cfgadm_plugins/pci/Makefile.com +++ b/usr/src/lib/cfgadm_plugins/pci/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= pci.a VERS= .1 @@ -51,6 +52,9 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-char-subscripts CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/cfgadm_plugins/sbd/Makefile.com b/usr/src/lib/cfgadm_plugins/sbd/Makefile.com index 8e6083ac46..39e160404a 100644 --- a/usr/src/lib/cfgadm_plugins/sbd/Makefile.com +++ b/usr/src/lib/cfgadm_plugins/sbd/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= sbd.a VERS= .1 @@ -51,6 +52,9 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-char-subscripts CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + CPPFLAGS += -I$(ROOT)/usr/platform/$(PLATFORM)/include -DSBD_DEBUG # # Generate the error messages form sbd_ioctl.h diff --git a/usr/src/lib/cfgadm_plugins/scsi/Makefile.com b/usr/src/lib/cfgadm_plugins/scsi/Makefile.com index effff0131e..0b75b01975 100644 --- a/usr/src/lib/cfgadm_plugins/scsi/Makefile.com +++ b/usr/src/lib/cfgadm_plugins/scsi/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= scsi.a VERS= .1 @@ -43,6 +44,9 @@ CERRWARN += -_gcc=-Wno-char-subscripts CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-address +# not linted +SMATCH=off + LDLIBS += -lc -ldevice -ldevinfo -lrcm .KEEP_STATE: diff --git a/usr/src/lib/cfgadm_plugins/shp/Makefile.com b/usr/src/lib/cfgadm_plugins/shp/Makefile.com index 3ba1ae337c..8771bcced3 100644 --- a/usr/src/lib/cfgadm_plugins/shp/Makefile.com +++ b/usr/src/lib/cfgadm_plugins/shp/Makefile.com @@ -21,6 +21,7 @@ # # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= shp.a VERS= .1 @@ -52,6 +53,9 @@ CERRWARN += -_gcc=-Wno-char-subscripts CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-unused-variable +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/cfgadm_plugins/sysctrl/Makefile.com b/usr/src/lib/cfgadm_plugins/sysctrl/Makefile.com index 786b37df3f..f25d1771d0 100644 --- a/usr/src/lib/cfgadm_plugins/sysctrl/Makefile.com +++ b/usr/src/lib/cfgadm_plugins/sysctrl/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. include $(SRC)/lib/cfgadm_plugins/Makefile.com @@ -56,6 +57,9 @@ CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/cfgadm_plugins/usb/Makefile.com b/usr/src/lib/cfgadm_plugins/usb/Makefile.com index 9588313161..833c9a6a6d 100644 --- a/usr/src/lib/cfgadm_plugins/usb/Makefile.com +++ b/usr/src/lib/cfgadm_plugins/usb/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= usb.a VERS= .1 @@ -48,6 +49,9 @@ CERRWARN += -_gcc=-Wno-char-subscripts CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-unused-value +# not linted +SMATCH=off + LDLIBS += -lc -ldevice -ldevinfo -lrcm -lnvpair .KEEP_STATE: diff --git a/usr/src/lib/fm/libdiskstatus/Makefile.com b/usr/src/lib/fm/libdiskstatus/Makefile.com index ee2fa3725a..c22e5808eb 100644 --- a/usr/src/lib/fm/libdiskstatus/Makefile.com +++ b/usr/src/lib/fm/libdiskstatus/Makefile.com @@ -22,7 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libdiskstatus.a VERS= .1 @@ -44,6 +44,9 @@ INCS += -I$(SRCDIR) LDLIBS += -lc -lnvpair CPPFLAGS += $(INCS) +# not linted +SMATCH=off + $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) .KEEP_STATE: diff --git a/usr/src/lib/fm/libfmd_msg/Makefile.com b/usr/src/lib/fm/libfmd_msg/Makefile.com index a2a731da0e..31c9047656 100644 --- a/usr/src/lib/fm/libfmd_msg/Makefile.com +++ b/usr/src/lib/fm/libfmd_msg/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libfmd_msg.a VERS = .1 @@ -42,6 +43,9 @@ CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS) CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS) CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-uninitialized + +SMOFF += all_func_returns + LDLIBS += -lnvpair -lc LINTFLAGS = -msux diff --git a/usr/src/lib/fm/libseslog/Makefile.com b/usr/src/lib/fm/libseslog/Makefile.com index 980580b25a..81beeab149 100644 --- a/usr/src/lib/fm/libseslog/Makefile.com +++ b/usr/src/lib/fm/libseslog/Makefile.com @@ -21,12 +21,13 @@ # # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libseslog.a VERS= .1 -OBJECTS= libseslog.o +OBJECTS= libseslog.o include ../../../Makefile.lib include ../../Makefile.lib @@ -39,6 +40,9 @@ INCS += -I$(SRCDIR) LDLIBS += -lc -lnvpair CPPFLAGS += $(INCS) +# not linted +SMATCH=off + $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) .KEEP_STATE: diff --git a/usr/src/lib/fm/topo/libtopo/Makefile.com b/usr/src/lib/fm/topo/libtopo/Makefile.com index 21ae880d59..1ab6819b98 100644 --- a/usr/src/lib/fm/topo/libtopo/Makefile.com +++ b/usr/src/lib/fm/topo/libtopo/Makefile.com @@ -83,6 +83,9 @@ CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-parentheses +# not linted +SMATCH=off + LINTFLAGS = -msux LINTFLAGS64 = -msux -m64 diff --git a/usr/src/lib/fm/topo/modules/i86pc/chip/Makefile b/usr/src/lib/fm/topo/modules/i86pc/chip/Makefile index ff2d070398..bbe1aa06d6 100644 --- a/usr/src/lib/fm/topo/modules/i86pc/chip/Makefile +++ b/usr/src/lib/fm/topo/modules/i86pc/chip/Makefile @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. MODULE = chip ARCH = i86pc @@ -31,3 +32,6 @@ chip_serial.c chip_smbios.c include ../../Makefile.plugin LDLIBS += -lipmi -lfmd_agent -lumem -lsmbios + +# not linted +SMATCH=off diff --git a/usr/src/lib/gss_mechs/mech_dh/backend/Makefile.com b/usr/src/lib/gss_mechs/mech_dh/backend/Makefile.com index f2983bd51b..5b71525c9d 100644 --- a/usr/src/lib/gss_mechs/mech_dh/backend/Makefile.com +++ b/usr/src/lib/gss_mechs/mech_dh/backend/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. # # This make file will build mech_dh.so.1. This shared object @@ -50,6 +51,9 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-uninitialized +# needs work +SMATCH=off + $(PICS) := CFLAGS += $(XFFLAG) $(PICS) := CCFLAGS += $(XFFLAG) $(PICS) := CFLAGS64 += $(XFFLAG) diff --git a/usr/src/lib/gss_mechs/mech_dummy/Makefile.com b/usr/src/lib/gss_mechs/mech_dummy/Makefile.com index 04a103536b..4e46b287f7 100644 --- a/usr/src/lib/gss_mechs/mech_dummy/Makefile.com +++ b/usr/src/lib/gss_mechs/mech_dummy/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. # # The mech_dummy shared object contains all the functionality needed to @@ -43,6 +44,9 @@ CPPFLAGS += -I../../libgss -I$(SRC)/uts/common/gssapi/include \ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized +# needs work +SMATCH=off + SRCDIR = ../mech LIBS = $(DYNLIB) LDLIBS += -lgss -lc diff --git a/usr/src/lib/gss_mechs/mech_krb5/Makefile.com b/usr/src/lib/gss_mechs/mech_krb5/Makefile.com index cc5f115250..f73f15c1a5 100644 --- a/usr/src/lib/gss_mechs/mech_krb5/Makefile.com +++ b/usr/src/lib/gss_mechs/mech_krb5/Makefile.com @@ -20,6 +20,8 @@ # # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. +# # This make file will build mech_krb5.so.1. This shared object # contains all the functionality needed to support the Kereros V5 GSS-API # mechanism. No other Kerberos libraries are needed. @@ -262,6 +264,9 @@ CERRWARN += -_gcc=-Wno-unused-value CERRWARN += -_gcc=-Wno-empty-body CERRWARN += -_gcc=-Wno-address +# needs work +SMATCH=off + MAPFILES = ../mapfile-vers #CPPFLAGS += -D_REENTRANT diff --git a/usr/src/lib/gss_mechs/mech_spnego/Makefile.com b/usr/src/lib/gss_mechs/mech_spnego/Makefile.com index e775560841..a3bfcc615a 100644 --- a/usr/src/lib/gss_mechs/mech_spnego/Makefile.com +++ b/usr/src/lib/gss_mechs/mech_spnego/Makefile.com @@ -21,7 +21,7 @@ # # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. # - +# Copyright (c) 2018, Joyent, Inc. # # This make file will build mech_spnego.so.1. This shared object @@ -48,6 +48,9 @@ CPPFLAGS += -I$(SRC)/uts/common/gssapi/include $(DEBUG) -I$(SRC)/lib/gss_mechs/m CERRWARN += -_gcc=-Wno-unused-function CERRWARN += -_gcc=-Wno-type-limits +# needs work +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/hal/libhal-storage/Makefile.com b/usr/src/lib/hal/libhal-storage/Makefile.com index 1acc45195c..e02f113d22 100644 --- a/usr/src/lib/hal/libhal-storage/Makefile.com +++ b/usr/src/lib/hal/libhal-storage/Makefile.com @@ -22,9 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# -# usr/src/lib/hal/libhal-storage/Makefile.com -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libhal-storage.a VERS = .1.0.0 @@ -47,6 +45,8 @@ CPPFLAGS += -DGETTEXT_PACKAGE=\"$(HAL_GETTEXT_PACKAGE)\" -DENABLE_NLS CPPFLAGS += -DPACKAGE_LOCALE_DIR=\"/usr/lib/locale\" CPPFLAGS += -I$(ROOT)/usr/include/hal +SMOFF += all_func_returns + ROOTMAJLINK = $(ROOTLIBDIR)/$(LIBRARY:.a=.so)$(VERS_MAJ) ROOTMAJLINK64 = $(ROOTLIBDIR64)/$(LIBRARY:.a=.so)$(VERS_MAJ) diff --git a/usr/src/lib/hal/libhal/Makefile.com b/usr/src/lib/hal/libhal/Makefile.com index 0c9e146a7e..48657590c7 100644 --- a/usr/src/lib/hal/libhal/Makefile.com +++ b/usr/src/lib/hal/libhal/Makefile.com @@ -25,6 +25,7 @@ # # usr/src/lib/hal/libhal/Makefile.com # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libhal.a VERS = .1.0.0 @@ -44,6 +45,8 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += $(HAL_CONFIG_CPPFLAGS) CPPFLAGS += -DGETTEXT_PACKAGE=\"$(HAL_GETTEXT_PACKAGE)\" -DENABLE_NLS +SMOFF += all_func_returns,leaks + ROOTMAJLINK = $(ROOTLIBDIR)/$(LIBRARY:.a=.so)$(VERS_MAJ) ROOTMAJLINK64 = $(ROOTLIBDIR64)/$(LIBRARY:.a=.so)$(VERS_MAJ) diff --git a/usr/src/lib/hbaapi/Makefile.com b/usr/src/lib/hbaapi/Makefile.com index 9dc4272593..cc38763048 100644 --- a/usr/src/lib/hbaapi/Makefile.com +++ b/usr/src/lib/hbaapi/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libHBAAPI.a @@ -45,6 +46,9 @@ CERRWARN += -_gcc=-Wno-unused-value CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-unused-function +# not linted +SMATCH=off + LDLIBS += -lc $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) diff --git a/usr/src/lib/iconv_modules/hi_IN/Makefile.com b/usr/src/lib/iconv_modules/hi_IN/Makefile.com index ced4ae69a5..2a1d4996f4 100644 --- a/usr/src/lib/iconv_modules/hi_IN/Makefile.com +++ b/usr/src/lib/iconv_modules/hi_IN/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. SRCS = iscii91%UTF-8.c \ UTF-8%iscii91.c \ @@ -36,4 +37,7 @@ include $(SRC)/lib/iconv_modules/Makefile.iconv CFLAGS += -I../include +# needs work +SMOFF += index_overflow + all: $(PROGS) diff --git a/usr/src/lib/iconv_modules/ja/Makefile.com b/usr/src/lib/iconv_modules/ja/Makefile.com index bf8a026394..a7e10f6fed 100644 --- a/usr/src/lib/iconv_modules/ja/Makefile.com +++ b/usr/src/lib/iconv_modules/ja/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. include $(SRC)/Makefile.master @@ -34,6 +35,9 @@ LIB64 = $(MODULES:%.c=$(MACH64)/%.so) LDLIBS= -lc +# needs work +SMATCH=off + INSTALL_MODULES = .modules_installed CLEANFILES += $(INSTALL_MODULES) diff --git a/usr/src/lib/iconv_modules/ko/Makefile.com b/usr/src/lib/iconv_modules/ko/Makefile.com index 252771e423..25ae7bb98e 100644 --- a/usr/src/lib/iconv_modules/ko/Makefile.com +++ b/usr/src/lib/iconv_modules/ko/Makefile.com @@ -22,6 +22,8 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. + include $(SRC)/lib/iconv_modules/Makefile.iconv @@ -92,6 +94,9 @@ ALL_SOS = $(E2I) $(I2E) $(E2J92) $(J922E) $(E2J) $(J2E) $(E2NB) $(NB2E) \ LDFLAGS = $(DYNFLAGS) $(LDLIBS) $(CFLAG_OPT) CFLAGS += -I$(ICONV_COMMON) -I../inc +# needs work +SMATCH=off + LINK_TARGETS = $(U2UH) $(C9332U) $(UH2U) $(E2U) $(I2U) $(O2U) $(N2U) \ $(E2I) $(E2J) $(E2J92) $(E2NB) $(I2E) $(J2E) $(J922E) $(NVBE) \ $(UCS2BE2UH) $(U2LE2UH) $(U2C933) $(U2E) $(U2I) $(U2O) $(U2N) \ diff --git a/usr/src/lib/iconv_modules/utf-8/Makefile.com b/usr/src/lib/iconv_modules/utf-8/Makefile.com index f674e3a392..2136e0ea66 100644 --- a/usr/src/lib/iconv_modules/utf-8/Makefile.com +++ b/usr/src/lib/iconv_modules/utf-8/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2010 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. include $(SRC)/Makefile.master @@ -75,6 +76,9 @@ LDLIBS = -lc LDFLAGS = $(DYNFLAGS) $(LDLIBS) $(CFLAG_OPT) +# needs work +SMATCH=off + $(DYNOBJS) := CFLAGS += $(XREGSFLAG) $(C_PICFLAGS) -D_REENTRANT \ -I$(COMMON) -I$(COMMON)/tbls \ -I$(ADJUNCT_PROTO)/usr/include diff --git a/usr/src/lib/iconv_modules/vi/Makefile.com b/usr/src/lib/iconv_modules/vi/Makefile.com index 3c773932e6..c3d8d12904 100644 --- a/usr/src/lib/iconv_modules/vi/Makefile.com +++ b/usr/src/lib/iconv_modules/vi/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. SRCS = tcvn%UCS-2.c \ tcvn%UTF-8.c \ @@ -38,6 +39,9 @@ COMMON = ../common/ LINK_TARGETS = UCS-2BE%tcvn.so tcvn%UCS-2BE.so LINK_TARGETS += UCS-2BE%viscii.so viscii%UCS-2BE.so +# needs work +SMOFF += all_func_returns,deref_check + dummy: all tcvn%UCS-2LE.o: $(COMMON)tcvn%UCS-2.c diff --git a/usr/src/lib/iconv_modules/zh/Makefile.com b/usr/src/lib/iconv_modules/zh/Makefile.com index 65523522fd..741b71d069 100644 --- a/usr/src/lib/iconv_modules/zh/Makefile.com +++ b/usr/src/lib/iconv_modules/zh/Makefile.com @@ -22,9 +22,13 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LDFLAGS = $(DYNFLAGS) $(LDLIBS) +# needs work +SMATCH=off + COMMON = ../common/ ICONV_COMMON = ../../common/ diff --git a/usr/src/lib/krb5/dyn/Makefile.com b/usr/src/lib/krb5/dyn/Makefile.com index 501893d8c6..0036b363b4 100644 --- a/usr/src/lib/krb5/dyn/Makefile.com +++ b/usr/src/lib/krb5/dyn/Makefile.com @@ -22,6 +22,8 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. + LIBRARY= libdyn.a VERS= .1 @@ -63,6 +65,8 @@ LDLIBS += -lc CERRWARN += -_gcc=-Wno-unused-variable +SMOFF += no_if_block + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/krb5/kadm5/clnt/Makefile.com b/usr/src/lib/krb5/kadm5/clnt/Makefile.com index 44d13ddcc5..ba382f0ce9 100644 --- a/usr/src/lib/krb5/kadm5/clnt/Makefile.com +++ b/usr/src/lib/krb5/kadm5/clnt/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libkadm5clnt.a VERS= .1 @@ -86,6 +87,8 @@ CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized +SMOFF += all_func_returns,indenting,no_if_block + LDLIBS += -lc .KEEP_STATE: diff --git a/usr/src/lib/krb5/kadm5/srv/Makefile.com b/usr/src/lib/krb5/kadm5/srv/Makefile.com index 96d3aba6e6..2f5a4eda60 100644 --- a/usr/src/lib/krb5/kadm5/srv/Makefile.com +++ b/usr/src/lib/krb5/kadm5/srv/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libkadm5srv.a VERS= .1 @@ -93,6 +94,8 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-type-limits CERRWARN += -_gcc=-Wno-uninitialized +SMOFF += all_func_returns,indenting + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/krb5/kdb/Makefile.com b/usr/src/lib/krb5/kdb/Makefile.com index b75f6e5e3e..608756d463 100644 --- a/usr/src/lib/krb5/kdb/Makefile.com +++ b/usr/src/lib/krb5/kdb/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libkdb.a VERS= .1 @@ -87,6 +88,8 @@ CERRWARN += -_gcc=-Wno-type-limits CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-parentheses +SMOFF += indenting,all_func_returns,deref_check,signed + DYNFLAGS += $(KRUNPATH) $(KMECHLIB) LDLIBS += -lc -lnsl diff --git a/usr/src/lib/krb5/plugins/kdb/db2/Makefile.com b/usr/src/lib/krb5/plugins/kdb/db2/Makefile.com index 064c9d7e4b..e44ff025be 100644 --- a/usr/src/lib/krb5/plugins/kdb/db2/Makefile.com +++ b/usr/src/lib/krb5/plugins/kdb/db2/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= db2.a VERS= .1 @@ -69,6 +70,9 @@ CERRWARN += -_gcc=-Wno-unused-function CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + DYNFLAGS += $(KRUNPATH) $(KERBRUNPATH) $(KMECHLIB) LDLIBS += -L $(ROOTLIBDIR) -ldb2 -lkdb -lkadm5srv -lc -lnsl diff --git a/usr/src/lib/krb5/plugins/kdb/db2/libdb2/Makefile.com b/usr/src/lib/krb5/plugins/kdb/db2/libdb2/Makefile.com index aec2ac074b..0fbc9900e9 100644 --- a/usr/src/lib/krb5/plugins/kdb/db2/libdb2/Makefile.com +++ b/usr/src/lib/krb5/plugins/kdb/db2/libdb2/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libdb2.a VERS= .1 @@ -102,6 +103,10 @@ CPPFLAGS += -DHAVE_CONFIG_H \ CFLAGS += $(CCVERBOSE) -I.. CERRWARN += -_gcc=-Wno-uninitialized + +# not linted +SMATCH=off + LDLIBS += -lc # Identify that this library is an interposer (on dbm_ routines from libc.so.1). diff --git a/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/Makefile.com b/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/Makefile.com index 0f094f2b4d..a3751a8a9b 100644 --- a/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/Makefile.com +++ b/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libkdb_ldap.a VERS= .1 @@ -76,6 +77,10 @@ CPPFLAGS += -DHAVE_CONFIG_H \ CFLAGS += $(CCVERBOSE) -I.. CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-unused-function + +# not linted +SMATCH=off + DYNFLAGS += $(KRUNPATH) $(KERBRUNPATH) $(KMECHLIB) LDLIBS += -L $(ROOTLIBDIR) -lkadm5srv -lc -lnsl -lldap diff --git a/usr/src/lib/krb5/plugins/preauth/pkinit/Makefile.com b/usr/src/lib/krb5/plugins/preauth/pkinit/Makefile.com index 8449d22e24..e7c1936015 100644 --- a/usr/src/lib/krb5/plugins/preauth/pkinit/Makefile.com +++ b/usr/src/lib/krb5/plugins/preauth/pkinit/Makefile.com @@ -22,7 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY= pkinit.a VERS= .1 @@ -68,6 +68,9 @@ CPPFLAGS += -I$(SRC)/lib/krb5 \ CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-unused-function +# not linted +SMATCH=off + CFLAGS += $(CCVERBOSE) -I.. DYNFLAGS += $(KRUNPATH) $(KMECHLIB) -znodelete LDLIBS += -L $(ROOTLIBDIR) -lcrypto -lc diff --git a/usr/src/lib/krb5/ss/Makefile.com b/usr/src/lib/krb5/ss/Makefile.com index 424c5293d4..e8a090776a 100644 --- a/usr/src/lib/krb5/ss/Makefile.com +++ b/usr/src/lib/krb5/ss/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libss.a VERS= .1 @@ -69,6 +70,8 @@ CFLAGS += $(CCVERBOSE) -I.. CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-unused-variable +SMOFF += all_func_returns + DYNFLAGS += $(KRUNPATH) $(KMECHLIB) $(ZIGNORE) LDLIBS += -lc -ltecla diff --git a/usr/src/lib/libadm/Makefile.com b/usr/src/lib/libadm/Makefile.com index 4631c50bf4..9896df06ba 100644 --- a/usr/src/lib/libadm/Makefile.com +++ b/usr/src/lib/libadm/Makefile.com @@ -21,6 +21,7 @@ # # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libadm.a VERS= .1 @@ -47,6 +48,9 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-char-subscripts +# not linted +SMATCH=off + $(LINTLIB) := SRCS=$(SRCDIR)/$(LINTSRC) LDLIBS += -lc diff --git a/usr/src/lib/libadt_jni/Makefile.com b/usr/src/lib/libadt_jni/Makefile.com index 658a114f8e..eb72d00d79 100644 --- a/usr/src/lib/libadt_jni/Makefile.com +++ b/usr/src/lib/libadt_jni/Makefile.com @@ -22,8 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libadt_jni.a VERS= .1 @@ -40,6 +39,9 @@ SRCDIR = ../common CPPFLAGS += -I$(JAVA_ROOT)/include -I$(JAVA_ROOT)/include/solaris CPPFLAGS += -D_REENTRANT +# not linted +SMATCH=off + DYNFLAGS += LDLIBS += -lc -lbsm diff --git a/usr/src/lib/libadutils/Makefile.com b/usr/src/lib/libadutils/Makefile.com index 7d7e142481..4d2f9cd5ae 100644 --- a/usr/src/lib/libadutils/Makefile.com +++ b/usr/src/lib/libadutils/Makefile.com @@ -24,6 +24,7 @@ # # Copyright 2014 Nexenta Systems, Inc. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libadutils.a VERS = .1 @@ -47,6 +48,9 @@ CPPFLAGS += -I$(SRC)/lib/libldap5/include/ldap CERRWARN += -_gcc=-Wno-type-limits CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libbsdmalloc/Makefile.com b/usr/src/lib/libbsdmalloc/Makefile.com index d58fd9e383..9732e9b2b5 100644 --- a/usr/src/lib/libbsdmalloc/Makefile.com +++ b/usr/src/lib/libbsdmalloc/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libbsdmalloc.a VERS= .1 @@ -53,6 +54,9 @@ CPPFLAGS += -D_REENTRANT DYNFLAGS += $(ZINTERPOSE) LDLIBS += -lc +# not linted +SMATCH=off + .KEEP_STATE: lint: diff --git a/usr/src/lib/libbsm/Makefile.com b/usr/src/lib/libbsm/Makefile.com index 0d5bc4976d..86449984c6 100644 --- a/usr/src/lib/libbsm/Makefile.com +++ b/usr/src/lib/libbsm/Makefile.com @@ -21,6 +21,7 @@ # # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libbsm.a VERS = .1 @@ -88,6 +89,9 @@ LDLIBS += -lsocket -lnsl -lmd -lc -lsecdb -ltsol -linetutil -lscf CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + COMDIR= ../common AUDITD= $(SRC)/cmd/auditd diff --git a/usr/src/lib/libc_db/Makefile.com b/usr/src/lib/libc_db/Makefile.com index 60f1f0cd96..36c954e36c 100644 --- a/usr/src/lib/libc_db/Makefile.com +++ b/usr/src/lib/libc_db/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libc_db.a VERS = .1 @@ -49,6 +50,9 @@ LDLIBS += -lc CERRWARN += -_gcc=-Wno-type-limits CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libcfgadm/Makefile.com b/usr/src/lib/libcfgadm/Makefile.com index 55747cb387..d246e9a0e7 100644 --- a/usr/src/lib/libcfgadm/Makefile.com +++ b/usr/src/lib/libcfgadm/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libcfgadm.a VERS = .1 @@ -39,6 +40,8 @@ CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-type-limits CERRWARN += -_gcc=-Wno-unused-label +SMOFF += snprintf_overflow + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libcmd/Makefile.com b/usr/src/lib/libcmd/Makefile.com index c3725e124b..d5e09b13c8 100644 --- a/usr/src/lib/libcmd/Makefile.com +++ b/usr/src/lib/libcmd/Makefile.com @@ -22,6 +22,7 @@ # # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. SHELL=/usr/bin/ksh93 @@ -138,6 +139,9 @@ CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-implicit-function-declaration +# not linted +SMATCH=off + pics/cut.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED pics/sync.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED pics/vmstate.o := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED diff --git a/usr/src/lib/libcpc/Makefile.com b/usr/src/lib/libcpc/Makefile.com index 428955e904..8e95766942 100644 --- a/usr/src/lib/libcpc/Makefile.com +++ b/usr/src/lib/libcpc/Makefile.com @@ -21,6 +21,7 @@ # # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libcpc.a VERS = .1 @@ -48,6 +49,9 @@ CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libcryptoutil/Makefile.com b/usr/src/lib/libcryptoutil/Makefile.com index b6df76e3c4..79eab46787 100644 --- a/usr/src/lib/libcryptoutil/Makefile.com +++ b/usr/src/lib/libcryptoutil/Makefile.com @@ -20,6 +20,7 @@ # # Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libcryptoutil.a VERS= .1 @@ -54,6 +55,9 @@ LINTFLAGS64 += -errchk=longptr64 CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + all: $(LIBS) lint: lintcheck diff --git a/usr/src/lib/libcurses/Makefile.com b/usr/src/lib/libcurses/Makefile.com index b295f4b536..b3b7a2da0e 100644 --- a/usr/src/lib/libcurses/Makefile.com +++ b/usr/src/lib/libcurses/Makefile.com @@ -23,6 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libcurses.a VERS= .1 @@ -152,6 +153,9 @@ CERRWARN += -_gcc=-Wno-char-subscripts CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-parentheses +# not linted +SMATCH=off + LDLIBS += -lc CPPFLAGS += -I../screen -I../../common/inc diff --git a/usr/src/lib/libcustr/Makefile b/usr/src/lib/libcustr/Makefile index 19b08dc521..c89032e534 100644 --- a/usr/src/lib/libcustr/Makefile +++ b/usr/src/lib/libcustr/Makefile @@ -27,6 +27,9 @@ clobber := TARGET= clobber install := TARGET= install lint := TARGET= lint +# needs work +SMOFF=all_func_returns + .KEEP_STATE: all clean clobber install lint: $(SUBDIRS) diff --git a/usr/src/lib/libdevinfo/Makefile.com b/usr/src/lib/libdevinfo/Makefile.com index 690d2aea59..4567bc289f 100644 --- a/usr/src/lib/libdevinfo/Makefile.com +++ b/usr/src/lib/libdevinfo/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libdevinfo.a VERS= .1 @@ -43,6 +44,9 @@ CPPFLAGS += -I.. CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libdhcpagent/Makefile.com b/usr/src/lib/libdhcpagent/Makefile.com index c01532cac2..c62f6c26c2 100644 --- a/usr/src/lib/libdhcpagent/Makefile.com +++ b/usr/src/lib/libdhcpagent/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libdhcpagent.a VERS = .1 @@ -39,9 +40,12 @@ LDLIBS += -lc -lsocket -ldhcputil -luuid -ldlpi -lcontract SRCDIR = ../common $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-type-limits +# needs work +SMOFF += allocating_enough_data + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libdhcputil/Makefile.com b/usr/src/lib/libdhcputil/Makefile.com index b32dc645ce..b8e2721122 100644 --- a/usr/src/lib/libdhcputil/Makefile.com +++ b/usr/src/lib/libdhcputil/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libdhcputil.a VERS = .1 @@ -48,6 +49,9 @@ CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -I$(COMDIR) +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libdisasm/Makefile.com b/usr/src/lib/libdisasm/Makefile.com index 2afa0e3499..3e08026f68 100644 --- a/usr/src/lib/libdisasm/Makefile.com +++ b/usr/src/lib/libdisasm/Makefile.com @@ -123,6 +123,9 @@ $(LINTLIB) := SRCS = $(COMDIR)/$(LINTSRC) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + # We want the thread-specific errno in the library, but we don't want it in # the standalone. $(DTS_ERRNO) is designed to add -D_TS_ERRNO to $(CPPFLAGS), # in order to enable this feature. Conveniently, -D_REENTRANT does the same diff --git a/usr/src/lib/libdiskmgt/Makefile.com b/usr/src/lib/libdiskmgt/Makefile.com index 9c9e20908e..ee8dee6344 100644 --- a/usr/src/lib/libdiskmgt/Makefile.com +++ b/usr/src/lib/libdiskmgt/Makefile.com @@ -23,7 +23,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # Copyright 2016 Nexenta Systems, Inc. -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libdiskmgt.a VERS = .1 @@ -65,6 +65,9 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -D_REENTRANT -I$(SRC)/lib/libdiskmgt/common +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libdladm/Makefile.com b/usr/src/lib/libdladm/Makefile.com index 8d036ccd27..5e05ce1713 100644 --- a/usr/src/lib/libdladm/Makefile.com +++ b/usr/src/lib/libdladm/Makefile.com @@ -20,6 +20,7 @@ # # # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2018, Joyent, Inc. # LIBRARY = libdladm.a @@ -48,6 +49,9 @@ CERRWARN += -_gcc=-Wno-unused-label CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -I$(SRCDIR) -D_REENTRANT +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libdll/Makefile.com b/usr/src/lib/libdll/Makefile.com index 745aabb9f1..67411c3487 100644 --- a/usr/src/lib/libdll/Makefile.com +++ b/usr/src/lib/libdll/Makefile.com @@ -23,6 +23,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. SHELL=/usr/bin/ksh93 @@ -86,6 +87,9 @@ CFLAGS64 += \ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized +# needs work +SMOFF += all_func_returns,strcpy_overflow + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libdns_sd/Makefile.com b/usr/src/lib/libdns_sd/Makefile.com index 217ef72c05..84dfcd0c5e 100644 --- a/usr/src/lib/libdns_sd/Makefile.com +++ b/usr/src/lib/libdns_sd/Makefile.com @@ -22,6 +22,7 @@ # Use is subject to license terms. # Copyright 2016 Toomas Soome <tsoome@me.com> # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libdns_sd.a VERS = .1 @@ -41,6 +42,9 @@ CPPFLAGS += -DMDNS_VERSIONSTR_NODTS pics/dnssd_clientstub.o := CERRWARN += -_gcc=-Wno-unused-but-set-variable +# not linted +SMATCH=off + .PARALLEL = $(OBJECTS) .KEEP_STATE: diff --git a/usr/src/lib/libdtrace/Makefile.com b/usr/src/lib/libdtrace/Makefile.com index dead7c1468..0fdeb48394 100644 --- a/usr/src/lib/libdtrace/Makefile.com +++ b/usr/src/lib/libdtrace/Makefile.com @@ -22,6 +22,7 @@ # Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2011, 2016 by Delphix. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libdtrace.a VERS = .1 @@ -103,7 +104,7 @@ DLIBSRCS += \ include ../../Makefile.lib -SRCS = $(LIBSRCS:%.c=../common/%.c) $(LIBISASRCS:%.c=../$(MACH)/%.c) +SRCS = $(LIBSRCS:%.c=../common/%.c) $(LIBISASRCS:%.c=../$(MACH)/%.c) LIBS = $(DYNLIB) $(LINTLIB) SRCDIR = ../common @@ -132,6 +133,9 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-switch +# not linted +SMATCH=off + YYCFLAGS = LDLIBS += -lgen -lproc -lrtld_db -lnsl -lsocket -lctf -lelf -lc DRTILDLIBS = $(LDLIBS.lib) -lc diff --git a/usr/src/lib/libdtrace_jni/Makefile.com b/usr/src/lib/libdtrace_jni/Makefile.com index 471746866f..00813b4442 100644 --- a/usr/src/lib/libdtrace_jni/Makefile.com +++ b/usr/src/lib/libdtrace_jni/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libdtrace_jni.a VERS = .1 @@ -51,6 +52,8 @@ CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS64) CERRWARN += -_gcc=-Wno-uninitialized +SMOFF += all_func_returns + LDLIBS += -lc -luutil -ldtrace -lproc LINTLIB = diff --git a/usr/src/lib/libefi/Makefile.com b/usr/src/lib/libefi/Makefile.com index 3fc915acdd..c0108f5f85 100644 --- a/usr/src/lib/libefi/Makefile.com +++ b/usr/src/lib/libefi/Makefile.com @@ -23,6 +23,7 @@ # Copyright 2018 OmniOS Community Edition (OmniOSce) Association. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libefi.a VERS = .1 @@ -42,6 +43,8 @@ CFLAGS += $(CCVERBOSE) LINTFLAGS64 += -errchk=longptr64 +SMOFF += kmalloc_wrong_size + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libfdisk/Makefile.com b/usr/src/lib/libfdisk/Makefile.com index 46572b0b2b..27079153c4 100644 --- a/usr/src/lib/libfdisk/Makefile.com +++ b/usr/src/lib/libfdisk/Makefile.com @@ -22,7 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libfdisk.a VERS= .1 @@ -54,6 +54,9 @@ LINTFLAGS64 += -erroff=E_BAD_PTR_CAST_ALIGN CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libficl/Makefile.com b/usr/src/lib/libficl/Makefile.com index b4532d2ed9..2a077c47ee 100644 --- a/usr/src/lib/libficl/Makefile.com +++ b/usr/src/lib/libficl/Makefile.com @@ -12,6 +12,7 @@ # # Copyright 2016 Toomas Soome <tsoome@me.com> # +# Copyright (c) 2018, Joyent, Inc. LIBRARY=libficl-sys.a MAJOR = 4 @@ -40,6 +41,9 @@ pics/vm.o := CERRWARN += -_gcc=-Wno-clobbered LDLIBS += -luuid -lz -lc -lm -lumem +# not linted +SMATCH=off + HEADERS= $(FICLDIR)/ficl.h $(FICLDIR)/ficltokens.h ../ficllocal.h \ $(FICLDIR)/ficlplatform/unix.h $(PNGLITE)/pnglite.h diff --git a/usr/src/lib/libfru/libfruraw/Makefile.com b/usr/src/lib/libfru/libfruraw/Makefile.com index 76bdea8a36..92b14c7756 100644 --- a/usr/src/lib/libfru/libfruraw/Makefile.com +++ b/usr/src/lib/libfru/libfruraw/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libfruraw.a VERS= .1 @@ -54,6 +55,9 @@ CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + $(LINTLIB) := LINTFLAGS = -nvx -I.. $(LINTLIB) := LINTFLAGS64 = -nvx -m64 -I.. diff --git a/usr/src/lib/libfsmgt/Makefile.com b/usr/src/lib/libfsmgt/Makefile.com index c9143741ac..3c2db0f981 100644 --- a/usr/src/lib/libfsmgt/Makefile.com +++ b/usr/src/lib/libfsmgt/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libfsmgt.a VERS = .1 @@ -54,6 +55,9 @@ CPPFLAGS += -D_REENTRANT -I$(SRC)/lib/libfsmgt/common \ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + CLOBBERFILES += $(SRCDIR)/nfs_sec.c CLOBBERFILES += $(SRCDIR)/replica.c CLOBBERFILES += $(SRCDIR)/sharetab.c diff --git a/usr/src/lib/libgen/Makefile.com b/usr/src/lib/libgen/Makefile.com index 52bace544f..5fbf71233f 100644 --- a/usr/src/lib/libgen/Makefile.com +++ b/usr/src/lib/libgen/Makefile.com @@ -21,6 +21,7 @@ # # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libgen.a VERS = .1 @@ -46,6 +47,9 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-char-subscripts CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libgss/Makefile.com b/usr/src/lib/libgss/Makefile.com index d1d34bd48a..fa824b1cb8 100644 --- a/usr/src/lib/libgss/Makefile.com +++ b/usr/src/lib/libgss/Makefile.com @@ -21,6 +21,7 @@ # # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libgss.a VERS = .1 @@ -111,6 +112,9 @@ CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-empty-body +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libima/Makefile.com b/usr/src/lib/libima/Makefile.com index cf7cea4fc6..7e2b2eaa16 100644 --- a/usr/src/lib/libima/Makefile.com +++ b/usr/src/lib/libima/Makefile.com @@ -22,7 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libima.a VERS= .1 @@ -52,6 +52,9 @@ CFLAGS64 += -DSOLARIS CERRWARN += -_gcc=-Wno-unused-variable +# not linted +SMATCH=off + LINTFLAGS += -DSOLARIS LINTFLAGS64 += -DSOLARIS diff --git a/usr/src/lib/libinetsvc/Makefile.com b/usr/src/lib/libinetsvc/Makefile.com index 4d12fdc942..9505796f00 100644 --- a/usr/src/lib/libinetsvc/Makefile.com +++ b/usr/src/lib/libinetsvc/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libinetsvc.a VERS = .1 @@ -43,6 +44,9 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libinetutil/Makefile.com b/usr/src/lib/libinetutil/Makefile.com index d22ab84726..d73fecb5ef 100644 --- a/usr/src/lib/libinetutil/Makefile.com +++ b/usr/src/lib/libinetutil/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libinetutil.a VERS = .1 @@ -48,6 +49,8 @@ CPPFLAGS += -I$(SRCDIR) CERRWARN += -_gcc=-Wno-parentheses +SMOFF += index_overflow + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libinstzones/Makefile.com b/usr/src/lib/libinstzones/Makefile.com index b00c58f370..2fa0b68803 100644 --- a/usr/src/lib/libinstzones/Makefile.com +++ b/usr/src/lib/libinstzones/Makefile.com @@ -23,6 +23,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libinstzones.a VERS= .1 @@ -57,6 +58,9 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-clobbered CERRWARN += -_gcc=-Wno-address +# not linted +SMATCH=off + LIBS = $(DYNLIB) $(LINTLIB) DYNFLAGS += $(ZLAZYLOAD) diff --git a/usr/src/lib/libipadm/Makefile.com b/usr/src/lib/libipadm/Makefile.com index 255dc3125b..c2671ea571 100644 --- a/usr/src/lib/libipadm/Makefile.com +++ b/usr/src/lib/libipadm/Makefile.com @@ -21,7 +21,7 @@ # # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2016, Chris Fraire <cfraire@me.com>. -# +# Copyright (c) 2018, Joyent, Inc. # LIBRARY = libipadm.a @@ -46,6 +46,9 @@ CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -I$(SRCDIR) -D_REENTRANT +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libipsecutil/Makefile.com b/usr/src/lib/libipsecutil/Makefile.com index aef11c9c76..9e828a0476 100644 --- a/usr/src/lib/libipsecutil/Makefile.com +++ b/usr/src/lib/libipsecutil/Makefile.com @@ -47,6 +47,8 @@ CPPFLAGS += -I$(SRCDIR) -I$(BERDIR) CERRWARN += -_gcc=-Wno-unused-function CERRWARN += -_gcc=-Wno-uninitialized +SMOFF += shift_to_zero + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libkmf/ber_der/Makefile.com b/usr/src/lib/libkmf/ber_der/Makefile.com index 6654e7cfde..72576bb97e 100644 --- a/usr/src/lib/libkmf/ber_der/Makefile.com +++ b/usr/src/lib/libkmf/ber_der/Makefile.com @@ -21,6 +21,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libkmfberder.a VERS= .1 @@ -51,6 +52,9 @@ LDLIBS += -lc CERRWARN += -_gcc=-Wno-unused-label +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libkmf/libkmf/Makefile.com b/usr/src/lib/libkmf/libkmf/Makefile.com index 43de43cb1d..1ac577ab76 100644 --- a/usr/src/lib/libkmf/libkmf/Makefile.com +++ b/usr/src/lib/libkmf/libkmf/Makefile.com @@ -72,6 +72,9 @@ CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-type-limits CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libkmf/plugins/kmf_nss/Makefile.com b/usr/src/lib/libkmf/plugins/kmf_nss/Makefile.com index 3b5f23aa92..79eb757e56 100644 --- a/usr/src/lib/libkmf/plugins/kmf_nss/Makefile.com +++ b/usr/src/lib/libkmf/plugins/kmf_nss/Makefile.com @@ -22,8 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# Makefile for KMF Plugins -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY= kmf_nss.a VERS= .1 @@ -46,7 +45,7 @@ NSSLIBS64= $(BERLIB64) -L$(ADJUNCT_PROTO)$(MPSDIR)/$(MACH64) \ SRCDIR= ../common INCDIR= ../../include -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) CPPFLAGS += -D_REENTRANT $(KMFINC) $(NSSINC) \ -I$(INCDIR) -I$(ADJUNCT_PROTO)/usr/include/libxml2 @@ -59,6 +58,9 @@ CERRWARN += -_gcc=-Wno-unused-label CERRWARN += -_gcc=-Wno-unused-value CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + lint:= NSSLIBS = $(BERLIB) lint:= NSSLIBS64 = $(BERLIB64) diff --git a/usr/src/lib/libkmf/plugins/kmf_openssl/Makefile.com b/usr/src/lib/libkmf/plugins/kmf_openssl/Makefile.com index b5b08f175c..839d261128 100644 --- a/usr/src/lib/libkmf/plugins/kmf_openssl/Makefile.com +++ b/usr/src/lib/libkmf/plugins/kmf_openssl/Makefile.com @@ -21,8 +21,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# Makefile for KMF Plugins -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY= kmf_openssl.a VERS= .1 @@ -51,7 +50,7 @@ LINTFLAGS64 += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED SRCDIR= ../common INCDIR= ../../include -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) CPPFLAGS += -D_REENTRANT $(KMFINC) \ -I$(INCDIR) -I$(ADJUNCT_PROTO)/usr/include/libxml2 @@ -59,6 +58,9 @@ CERRWARN += -_gcc=-Wno-unused-label CERRWARN += -_gcc=-Wno-unused-value CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + PICS= $(OBJECTS:%=pics/%) lint:= OPENSSLLIBS= $(LINTSSLLIBS) diff --git a/usr/src/lib/libkmf/plugins/kmf_pkcs11/Makefile.com b/usr/src/lib/libkmf/plugins/kmf_pkcs11/Makefile.com index 0b69e23fd6..d8bdbec7f7 100644 --- a/usr/src/lib/libkmf/plugins/kmf_pkcs11/Makefile.com +++ b/usr/src/lib/libkmf/plugins/kmf_pkcs11/Makefile.com @@ -21,8 +21,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# Makefile for KMF Plugins -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY= kmf_pkcs11.a VERS= .1 @@ -55,6 +54,9 @@ LINTFLAGS64 += -errchk=longptr64 CERRWARN += -_gcc=-Wno-unused-label +# not linted +SMATCH=off + PICS= $(OBJECTS:%=pics/%) LDLIBS += $(PKCS11LIBS) diff --git a/usr/src/lib/libkvm/Makefile.com b/usr/src/lib/libkvm/Makefile.com index 9bef6968ba..41e4c80071 100644 --- a/usr/src/lib/libkvm/Makefile.com +++ b/usr/src/lib/libkvm/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libkvm.a VERS= .1 @@ -48,6 +49,8 @@ CPPFLAGS = -D_KMEMUSER -D_LARGEFILE64_SOURCE=1 -I.. $(CPPFLAGS.master) CERRWARN += -_gcc=-Wno-uninitialized +SMOFF += signed + CLOBBERFILES += test test.o .KEEP_STATE: diff --git a/usr/src/lib/libldap5/Makefile.com b/usr/src/lib/libldap5/Makefile.com index ee48739eea..e0cb907335 100644 --- a/usr/src/lib/libldap5/Makefile.com +++ b/usr/src/lib/libldap5/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libldap.a VERS= .5 @@ -120,6 +121,9 @@ CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-unused-value CERRWARN += -_gcc=-Wno-address +# not linted +SMATCH=off + LDLIBS += -lsasl -lsocket -lnsl -lmd -lc .KEEP_STATE: diff --git a/usr/src/lib/libmapid/Makefile.com b/usr/src/lib/libmapid/Makefile.com index 2b1eaac8a5..2d7c9e55ca 100644 --- a/usr/src/lib/libmapid/Makefile.com +++ b/usr/src/lib/libmapid/Makefile.com @@ -21,7 +21,7 @@ # # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. # -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libmapid.a VERS = .1 @@ -58,6 +58,8 @@ CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-uninitialized +SMOFF += all_func_returns + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libmd/Makefile.com b/usr/src/lib/libmd/Makefile.com index 9d2458f918..0fad27dcc7 100644 --- a/usr/src/lib/libmd/Makefile.com +++ b/usr/src/lib/libmd/Makefile.com @@ -22,6 +22,7 @@ # # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright 2013 Saso Kiselkov. All rights reserved. +# Copyright (c) 2018, Joyent, Inc. # LIBS = $(DYNLIB) $(LINTLIB) @@ -42,4 +43,6 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(SRCDIR) LDLIBS += -lc +SMOFF += 64bit_shift + $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) diff --git a/usr/src/lib/libnisdb/Makefile b/usr/src/lib/libnisdb/Makefile index 7af72f8452..762f725643 100644 --- a/usr/src/lib/libnisdb/Makefile +++ b/usr/src/lib/libnisdb/Makefile @@ -23,7 +23,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libnisdb.a VERS= .2 @@ -165,6 +165,9 @@ $(UVAR_PICS) := CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-switch +# not linted +SMATCH=off + # Extra includes, from yp, for yptol files. CPPFLAGS += -I$(SRC)/cmd/ypcmd diff --git a/usr/src/lib/libnsl/Makefile.com b/usr/src/lib/libnsl/Makefile.com index 17bff31ba6..5260a7bc81 100644 --- a/usr/src/lib/libnsl/Makefile.com +++ b/usr/src/lib/libnsl/Makefile.com @@ -22,6 +22,7 @@ # # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright 2018 Nexenta Systems, Inc. All rights reserved. +# Copyright (c) 2018, Joyent, Inc. # LIBRARY= libnsl.a @@ -203,6 +204,9 @@ CERRWARN += -_gcc=-Wno-empty-body CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-clobbered +# not linted +SMATCH=off + LIBMP = -lmp lint := LIBMP = LDLIBS += $(LIBMP) -lmd -lc diff --git a/usr/src/lib/libnwam/Makefile.com b/usr/src/lib/libnwam/Makefile.com index bce8452d4b..db26d0d23f 100644 --- a/usr/src/lib/libnwam/Makefile.com +++ b/usr/src/lib/libnwam/Makefile.com @@ -23,6 +23,7 @@ # Use is subject to license terms. # Copyright (c) 2016, Chris Fraire <cfraire@me.com>. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libnwam.a VERS= .1 @@ -56,6 +57,9 @@ CPPFLAGS += -I$(SRCDIR) -D_REENTRANT CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libofmt/Makefile.com b/usr/src/lib/libofmt/Makefile.com index 15cc384511..04a627f9e0 100644 --- a/usr/src/lib/libofmt/Makefile.com +++ b/usr/src/lib/libofmt/Makefile.com @@ -11,6 +11,7 @@ # # Copyright 2017 Nexenta Systems, Inc. +# Copyright (c) 2018, Joyent, Inc. # LIBRARY= libofmt.a @@ -29,6 +30,8 @@ SRCS= $(SRCDIR)/ofmt.c $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) LDLIBS += -lc +SMOFF += kmalloc_wrong_size + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libpicltree/Makefile.com b/usr/src/lib/libpicltree/Makefile.com index e444c69527..1707ecebc6 100644 --- a/usr/src/lib/libpicltree/Makefile.com +++ b/usr/src/lib/libpicltree/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libpicltree.a VERS= .1 @@ -38,6 +39,9 @@ CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all : $(LIBS) diff --git a/usr/src/lib/libpkg/Makefile.com b/usr/src/lib/libpkg/Makefile.com index a0dd3bcab5..e3f93d3959 100644 --- a/usr/src/lib/libpkg/Makefile.com +++ b/usr/src/lib/libpkg/Makefile.com @@ -26,6 +26,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libpkg.a VERS= .1 @@ -67,6 +68,10 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-clobbered CERRWARN += -_gcc=-Wno-switch + +# not linted +SMATCH=off + CPPFLAGS += -I$(SRCDIR) -D_FILE_OFFSET_BITS=64 .KEEP_STATE: diff --git a/usr/src/lib/libpool/Makefile.com b/usr/src/lib/libpool/Makefile.com index 13b8a05cc1..d1c3972cae 100644 --- a/usr/src/lib/libpool/Makefile.com +++ b/usr/src/lib/libpool/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libpool.a VERS = .1 @@ -55,6 +56,9 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libproc/Makefile.com b/usr/src/lib/libproc/Makefile.com index bf20ef40d5..bb72f8dc17 100644 --- a/usr/src/lib/libproc/Makefile.com +++ b/usr/src/lib/libproc/Makefile.com @@ -23,6 +23,7 @@ # Copyright 2012 DEY Storage Systems, Inc. All rights reserved. # Copyright (c) 2013 by Delphix. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libproc.a VERS = .1 @@ -99,6 +100,9 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-type-limits CERRWARN += -_gcc=-Wno-unused-label +# not linted +SMATCH=off + # All interfaces are interposable, therefore don't allow direct binding to # libproc. Disable libproc from directly binding to itself, but allow libperl # to directly bind to its dependencies (ie. map -Bdirect -> -zdirect). Ensure diff --git a/usr/src/lib/libraidcfg/Makefile.com b/usr/src/lib/libraidcfg/Makefile.com index 1aeed69bfd..b3643c2d6b 100644 --- a/usr/src/lib/libraidcfg/Makefile.com +++ b/usr/src/lib/libraidcfg/Makefile.com @@ -23,8 +23,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# lib/libraidcfg/Makefile.com -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libraidcfg.a VERS = .1 @@ -41,6 +40,9 @@ $(LINTLIB):= SRCS = $(LINTSRC:%=$(SRCDIR)/%) CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-type-limits +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libresolv/Makefile b/usr/src/lib/libresolv/Makefile index 4b905e0c8f..fe94b16c25 100644 --- a/usr/src/lib/libresolv/Makefile +++ b/usr/src/lib/libresolv/Makefile @@ -23,6 +23,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libresolv.a VERS= .1 @@ -60,6 +61,9 @@ CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + ROOTDYNLIBS= $(DYNLIB:%=$(ROOTLIBDIR)/%) .KEEP_STATE: diff --git a/usr/src/lib/libresolv2/Makefile.com b/usr/src/lib/libresolv2/Makefile.com index 942d2a69b8..35e1eca77c 100644 --- a/usr/src/lib/libresolv2/Makefile.com +++ b/usr/src/lib/libresolv2/Makefile.com @@ -22,7 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libresolv.a VERS= .2 @@ -32,16 +32,16 @@ BSDOBJS= putenv.o strcasecmp.o strsep.o \ gettimeofday.o setenv.o strerror.o utimes.o \ mktemp.o setitimer.o strpbrk.o writev.o -DSTOBJS= dst_api.o support.o hmac_link.o +DSTOBJS= dst_api.o support.o hmac_link.o -# inet_addr, inet_pton, inet_ntop, and inet_ntoa removed due to overlap with +# inet_addr, inet_pton, inet_ntop, and inet_ntoa removed due to overlap with # libnsl INETOBJS= inet_net_pton.o inet_neta.o inet_lnaof.o \ inet_netof.o nsap_addr.o inet_makeaddr.o \ inet_network.o inet_net_ntop.o inet_cidr_ntop.o \ inet_cidr_pton.o inet_data.o -# build only the IRS objects that the ISC libbind's make would +# build only the IRS objects that the ISC libbind's make would IRSTHROBJS= gethostent_r.o getnetent_r.o getnetgrent_r.o \ getprotoent_r.o getservent_r.o IRSOBJS= ${IRSTHROBJS} \ @@ -108,10 +108,13 @@ LOCFLAGS += $(CRYPTFLAGS) LOCFLAGS += -D_SYS_STREAM_H -D_REENTRANT -DSVR4 -DSUNW_OPTIONS \ $(SOLCOMPAT) -I../include -I../../common/inc -CPPFLAGS += $(LOCFLAGS) +CPPFLAGS += $(LOCFLAGS) CERRWARN += -_gcc=-Wno-implicit-function-declaration +# not linted +SMATCH=off + DYNFLAGS += $(ZNODELETE) LDLIBS += -lsocket -lnsl -lc -lmd diff --git a/usr/src/lib/librestart/Makefile.com b/usr/src/lib/librestart/Makefile.com index 7f2ef884aa..f2a0fc8965 100644 --- a/usr/src/lib/librestart/Makefile.com +++ b/usr/src/lib/librestart/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = librestart.a VERS = .1 @@ -42,6 +43,9 @@ CFLAGS += $(CCVERBOSE) -Wp,$(CSTD_GNU99) CPPFLAGS += +# not linted +SMATCH=off + .KEEP_STATE: all: diff --git a/usr/src/lib/librsm/Makefile.com b/usr/src/lib/librsm/Makefile.com index 5323366ddd..1b4f118a20 100644 --- a/usr/src/lib/librsm/Makefile.com +++ b/usr/src/lib/librsm/Makefile.com @@ -22,13 +22,14 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= librsm.a VERS= .2 TEXT_DOMAIN= SUNW_OST_OSLIB -OBJECTS = rsmlib.o rsmgen.o rsmloopback.o +OBJECTS = rsmlib.o rsmgen.o rsmloopback.o # include library definitions, do not change order of include and DYNLIB include ../../Makefile.lib @@ -41,7 +42,7 @@ LIBS = $(DYNLIB) DEBUG = $(NOT_RELEASE_BUILD)DEBUG = -DDEBUG -# The COPTFLAG is used for optimization purposes. +# The COPTFLAG is used for optimization purposes. # It is disabled for debug builds $(NOT_RELEASE_BUILD)COPTFLAG = $(NOT_RELEASE_BUILD)COPTFLAG64 = @@ -51,6 +52,9 @@ CPPFLAGS = -I../inc -I../../common/inc $(CPPFLAGS.master) -D_REENTRANT $(DEBUG) CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-parentheses +# not linted +SMATCH=off + LDLIBS += -lc .KEEP_STATE: diff --git a/usr/src/lib/librstp/Makefile.com b/usr/src/lib/librstp/Makefile.com index de23f29906..82beb3a2a1 100644 --- a/usr/src/lib/librstp/Makefile.com +++ b/usr/src/lib/librstp/Makefile.com @@ -23,6 +23,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = librstp.a VERS = .1 @@ -44,6 +45,9 @@ LDLIBS += -lc CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(SRCDIR) -D__SUN__ -D__STP_INTERNAL__ +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libsasl/Makefile.com b/usr/src/lib/libsasl/Makefile.com index 0403f1fa15..6b6aa0e69f 100644 --- a/usr/src/lib/libsasl/Makefile.com +++ b/usr/src/lib/libsasl/Makefile.com @@ -22,8 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libsasl.a VERS= .1 @@ -52,6 +51,9 @@ CFLAGS += $(CCVERBOSE) $(XSTRCONST) CFLAGS64 += $(XSTRCONST) CPPFLAGS += -I../include -I$(PLUGDIR) +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libsaveargs/Makefile.com b/usr/src/lib/libsaveargs/Makefile.com index 6db07cb87c..94d80c1d5b 100644 --- a/usr/src/lib/libsaveargs/Makefile.com +++ b/usr/src/lib/libsaveargs/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. # # The build process for libsaveargs is sightly different from that used by other @@ -94,6 +95,9 @@ CFLAGS += $(CFLAGS_$(CURTYPE)) $(CFLAGS_common) CFLAGS64_standalone = $(STAND_FLAGS_64) CFLAGS64 += $(CCVERBOSE) $(CFLAGS64_$(CURTYPE)) $(CFLAGS64_common) +# not linted +SMATCH=off + DYNFLAGS += $(ZINTERPOSE) .KEEP_STATE: diff --git a/usr/src/lib/libscf/Makefile.com b/usr/src/lib/libscf/Makefile.com index a6e2657925..071818bef9 100644 --- a/usr/src/lib/libscf/Makefile.com +++ b/usr/src/lib/libscf/Makefile.com @@ -21,6 +21,7 @@ # # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libscf.a VERS = .1 @@ -62,6 +63,9 @@ CERRWARN += -_gcc=-Wno-unused-label CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + # # For native builds, we compile and link against the native version # of libuutil. diff --git a/usr/src/lib/libsec/Makefile.com b/usr/src/lib/libsec/Makefile.com index 6a30ddf56a..58834e08f1 100644 --- a/usr/src/lib/libsec/Makefile.com +++ b/usr/src/lib/libsec/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libsec.a VERS= .1 @@ -51,6 +52,9 @@ CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-unused-label CERRWARN += -_gcc=-Wno-unused-variable +# not linted +SMATCH=off + CLOBBERFILES += acl.output # install this library in the root filesystem diff --git a/usr/src/lib/libshare/Makefile.com b/usr/src/lib/libshare/Makefile.com index 509ba0c662..3628432a6a 100644 --- a/usr/src/lib/libshare/Makefile.com +++ b/usr/src/lib/libshare/Makefile.com @@ -20,6 +20,7 @@ # # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2016 by Delphix. All rights reserved. +# Copyright (c) 2018, Joyent, Inc. # LIBRARY = libshare.a VERS = .1 @@ -47,6 +48,10 @@ CSTD += $(CSTD_GNU99) CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-switch + +# not linted +SMATCH=off + CPPFLAGS += -D_REENTRANT -I$(NFSLIB_DIR) \ -I$(ADJUNCT_PROTO)/usr/include/libxml2 diff --git a/usr/src/lib/libshare/autofs/Makefile.com b/usr/src/lib/libshare/autofs/Makefile.com index d110bf634a..0123923ddb 100644 --- a/usr/src/lib/libshare/autofs/Makefile.com +++ b/usr/src/lib/libshare/autofs/Makefile.com @@ -21,7 +21,7 @@ # # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. # -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libshare_autofs.a VERS = .1 @@ -49,6 +49,10 @@ CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-uninitialized + +# not linted +SMATCH=off + CPPFLAGS += -D_REENTRANT -I$(AUTOFSSMFLIB_DIR) \ -I$(ADJUNCT_PROTO)/usr/include/libxml2 \ -I$(SRCDIR)../common @@ -67,7 +71,7 @@ pics/%.o: $(AUTOFSSMFLIB_DIR)/%.c $(ROOTLIBDIR): $(INS.dir) - + $(ROOTLIBDIR64): $(INS.dir) diff --git a/usr/src/lib/libshare/nfs/Makefile.com b/usr/src/lib/libshare/nfs/Makefile.com index ed89b6d960..f6675414cf 100644 --- a/usr/src/lib/libshare/nfs/Makefile.com +++ b/usr/src/lib/libshare/nfs/Makefile.com @@ -22,6 +22,7 @@ # # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libshare_nfs.a VERS = .1 @@ -53,6 +54,9 @@ CERRWARN += -_gcc=-Wno-uninitialized CPPFLAGS += -D_REENTRANT -I$(NFSLIB_DIR) \ -I$(ADJUNCT_PROTO)/usr/include/libxml2 -I$(SRCDIR)/../common +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libshare/smb/Makefile.com b/usr/src/lib/libshare/smb/Makefile.com index ea69f59b22..386ffc35de 100644 --- a/usr/src/lib/libshare/smb/Makefile.com +++ b/usr/src/lib/libshare/smb/Makefile.com @@ -24,6 +24,7 @@ # # Copyright 2013 Nexenta Systems, Inc. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libshare_smb.a VERS = .1 @@ -50,6 +51,10 @@ LDLIBS += -lshare -lscf -luuid -ldlpi -lnsl -lnvpair -lxml2 -lumem -lc CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-char-subscripts CERRWARN += -_gcc=-Wno-switch + +# not linted +SMATCH=off + CPPFLAGS += -D_REENTRANT -I$(ADJUNCT_PROTO)/usr/include/libxml2 \ -I$(SRCDIR)/../common $(ENABLE_SMB_PRINTING) CPPFLAGS += -DHAVE_CUPS diff --git a/usr/src/lib/libsip/Makefile.com b/usr/src/lib/libsip/Makefile.com index febd458320..b73783361d 100644 --- a/usr/src/lib/libsip/Makefile.com +++ b/usr/src/lib/libsip/Makefile.com @@ -21,8 +21,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libsip.a VERS = .1 @@ -43,6 +42,9 @@ LDLIBS += -lmd5 -lc CFLAGS += $(CCVERBOSE) CPPFLAGS += -DOS='"solaris"' -D__OS_solaris -DNDEBUG +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libsldap/Makefile.com b/usr/src/lib/libsldap/Makefile.com index 0d35b1f794..4854275b4b 100644 --- a/usr/src/lib/libsldap/Makefile.com +++ b/usr/src/lib/libsldap/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libsldap.a VERS= .1 @@ -55,6 +56,9 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libslp/Makefile.com b/usr/src/lib/libslp/Makefile.com index 80c1cc01e4..0e8f4f70c0 100644 --- a/usr/src/lib/libslp/Makefile.com +++ b/usr/src/lib/libslp/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libslp.a VERS = .1 @@ -48,6 +49,9 @@ CPPFLAGS += -D_REENTRANT -I../clib -I$(JAVA_ROOT)/include \ CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-parentheses +# not linted +SMATCH=off + .KEEP_STATE: all: diff --git a/usr/src/lib/libsmbfs/Makefile.com b/usr/src/lib/libsmbfs/Makefile.com index 8f8b118128..872e8222a5 100644 --- a/usr/src/lib/libsmbfs/Makefile.com +++ b/usr/src/lib/libsmbfs/Makefile.com @@ -26,6 +26,7 @@ # # Copyright 2013 Nexenta Systems, Inc. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. # # lib/libsmbfs/Makefile.com @@ -76,7 +77,7 @@ OBJ_LIB=\ ui-sun.o \ utf_str.o -OBJ_CMN= smbfs_ntacl.o +OBJ_CMN= smbfs_ntacl.o OBJECTS= $(OBJ_LIB) $(OBJ_CMN) @@ -97,11 +98,14 @@ CSTD= $(CSTD_GNU99) LDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap # normal warnings... -CFLAGS += $(CCVERBOSE) +CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-unused-variable +# not linted +SMATCH=off + CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \ -I$(SRCDIR) -I.. -I../netsmb \ -I$(SRC)/uts/common \ diff --git a/usr/src/lib/libsmedia/plugins/Makefile.com b/usr/src/lib/libsmedia/plugins/Makefile.com index f1fa1c19e2..5c239ce171 100644 --- a/usr/src/lib/libsmedia/plugins/Makefile.com +++ b/usr/src/lib/libsmedia/plugins/Makefile.com @@ -22,8 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# +# Copyright (c) 2018, Joyent, Inc. LIBS = $(DYNLIB) @@ -43,6 +42,9 @@ CLEANFILES= $(LINTOUT) $(LINTPLUGIN) SRCDIR = ../common +# not linted +SMATCH=off + LINTFLAGS += -xu LINTFLAGS64 += -xu $(LINTPLUGIN) := SRCS=$(OBJECTS:%.o=../common/%.c) diff --git a/usr/src/lib/libsocket/Makefile.com b/usr/src/lib/libsocket/Makefile.com index ed741f39d8..f4b4ac28e6 100644 --- a/usr/src/lib/libsocket/Makefile.com +++ b/usr/src/lib/libsocket/Makefile.com @@ -21,6 +21,7 @@ # # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2018, Joyent, Inc. # LIBRARY = libsocket.a @@ -60,6 +61,9 @@ CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-parentheses +# not linted +SMATCH=off + .KEEP_STATE: all: diff --git a/usr/src/lib/libsqlite/Makefile.com b/usr/src/lib/libsqlite/Makefile.com index f2671beccc..3ce5d9b1e4 100644 --- a/usr/src/lib/libsqlite/Makefile.com +++ b/usr/src/lib/libsqlite/Makefile.com @@ -3,6 +3,7 @@ # Use is subject to license terms. # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com> # Copyright 2016 Nexenta Systems, Inc. All rights reserved. +# Copyright (c) 2018, Joyent, Inc. # # Make the SO name unlikely to conflict with any other @@ -99,6 +100,9 @@ CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-unused-function CERRWARN += -_gcc=-Wno-unused-label +# not linted +SMATCH=off + MAPFILES = ../mapfile-sqlite # headers generated here diff --git a/usr/src/lib/libstmf/Makefile.com b/usr/src/lib/libstmf/Makefile.com index 76ffd111de..7fd4d6b09d 100644 --- a/usr/src/lib/libstmf/Makefile.com +++ b/usr/src/lib/libstmf/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libstmf.a VERS= .1 @@ -43,6 +44,9 @@ CPPFLAGS += $(INCS) -D_REENTRANT CERRWARN += -_gcc=-Wno-unused-label +# not linted +SMATCH=off + $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) .KEEP_STATE: diff --git a/usr/src/lib/libsum/Makefile.com b/usr/src/lib/libsum/Makefile.com index 5fdf850a78..9dffd007f4 100644 --- a/usr/src/lib/libsum/Makefile.com +++ b/usr/src/lib/libsum/Makefile.com @@ -23,6 +23,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. SHELL=/usr/bin/ksh93 @@ -76,6 +77,8 @@ CFLAGS64 += \ CERRWARN += -_gcc=-Wno-parentheses +SMOFF += all_func_returns + # This codepath is performance-critical sparc_COPTFLAG=-xO5 -_cc=-xprefetch=auto,explicit sparcv9_COPTFLAG=-xO5 -_cc=-xprefetch=auto,explicit diff --git a/usr/src/lib/libsun_ima/Makefile.com b/usr/src/lib/libsun_ima/Makefile.com index 321b966a83..f23c75c7b0 100644 --- a/usr/src/lib/libsun_ima/Makefile.com +++ b/usr/src/lib/libsun_ima/Makefile.com @@ -22,7 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libsun_ima.a VERS = .1 @@ -51,6 +51,9 @@ CFLAGS64 += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-parentheses +# not linted +SMATCH=off + CPPFLAGS += -DSOLARIS .KEEP_STATE: diff --git a/usr/src/lib/libsysevent/Makefile.com b/usr/src/lib/libsysevent/Makefile.com index dcb6517a0d..a1f97796c2 100644 --- a/usr/src/lib/libsysevent/Makefile.com +++ b/usr/src/lib/libsysevent/Makefile.com @@ -22,8 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libsysevent.a @@ -44,6 +43,9 @@ CPPFLAGS += -D_REENTRANT -I.. CFLAGS += $(CCVERBOSE) LDLIBS += -lnvpair -lc +# not linted +SMATCH=off + $(LINTLIB) := SRCS = ../llib-lsysevent .KEEP_STATE: diff --git a/usr/src/lib/libtecla/Makefile.com b/usr/src/lib/libtecla/Makefile.com index 1f52c6b878..975e67c4a0 100644 --- a/usr/src/lib/libtecla/Makefile.com +++ b/usr/src/lib/libtecla/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libtecla.a VERS= .1 @@ -46,6 +47,9 @@ $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) CERRWARN += -_gcc=-Wno-type-limits +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libtnfctl/Makefile.com b/usr/src/lib/libtnfctl/Makefile.com index 4117e0fa8a..e3e14c3304 100644 --- a/usr/src/lib/libtnfctl/Makefile.com +++ b/usr/src/lib/libtnfctl/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libtnfctl.a VERS= .1 @@ -80,6 +81,9 @@ CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-empty-body CERRWARN += -_gcc=-Wno-parentheses +# not linted +SMATCH=off + ASFLAGS += -P $(ROOTHDRS) := FILEMODE = 644 diff --git a/usr/src/lib/libtnfprobe/Makefile.com b/usr/src/lib/libtnfprobe/Makefile.com index f0fe5a2658..f4df1679f3 100644 --- a/usr/src/lib/libtnfprobe/Makefile.com +++ b/usr/src/lib/libtnfprobe/Makefile.com @@ -21,6 +21,7 @@ # # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libtnfprobe.a VERS= .1 @@ -66,6 +67,9 @@ CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + $(ROOTHDRS) := FILEMODE = 644 LDLIBS += -lc diff --git a/usr/src/lib/libtsol/Makefile.com b/usr/src/lib/libtsol/Makefile.com index f58f6f63ec..5028745796 100644 --- a/usr/src/lib/libtsol/Makefile.com +++ b/usr/src/lib/libtsol/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libtsol.a VERS = .2 @@ -61,6 +62,9 @@ LINTFLAGS64 += -m64 CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libumem/Makefile.com b/usr/src/lib/libumem/Makefile.com index 61f7e9503d..b98977ed88 100644 --- a/usr/src/lib/libumem/Makefile.com +++ b/usr/src/lib/libumem/Makefile.com @@ -22,7 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# Copyright (c) 2012, Joyent, Inc. All rights reserved. +# Copyright (c) 2018, Joyent, Inc. # # @@ -130,6 +130,8 @@ ASFLAGS += -P $(ASFLAGS_$(CURTYPE)) -D_ASM CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-uninitialized +SMOFF += deref_check + $(LINTLIB) := SRCS = ../common/$(LINTSRC) # We want the thread-specific errno in the library, but we don't want it in diff --git a/usr/src/lib/libuutil/Makefile.com b/usr/src/lib/libuutil/Makefile.com index 73b1dcddb9..d9da48cc0c 100644 --- a/usr/src/lib/libuutil/Makefile.com +++ b/usr/src/lib/libuutil/Makefile.com @@ -21,6 +21,7 @@ # # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libuutil.a VERS = .1 @@ -73,6 +74,8 @@ CPPFLAGS += -I$(SRCDIR) -I../../common/inc LINTFLAGS += -erroff=E_GLOBAL_COULD_BE_STATIC2 LINTFLAGS64 += -erroff=E_GLOBAL_COULD_BE_STATIC2 +SMOFF += signed + MY_NATIVE_CPPFLAGS = -DNATIVE_BUILD -I$(SRCDIR) MY_NATIVE_LDLIBS = -lc diff --git a/usr/src/lib/libvscan/Makefile.com b/usr/src/lib/libvscan/Makefile.com index 1f43359369..5ec00cc3d3 100644 --- a/usr/src/lib/libvscan/Makefile.com +++ b/usr/src/lib/libvscan/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libvscan.a VERS= .1 @@ -41,6 +42,8 @@ LDLIBS += -lc -lscf -lsecdb -lm CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(SRCDIR) +SMOFF += signed + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libwrap/Makefile.com b/usr/src/lib/libwrap/Makefile.com index f3ce93d1e5..40e2f11d0a 100644 --- a/usr/src/lib/libwrap/Makefile.com +++ b/usr/src/lib/libwrap/Makefile.com @@ -22,6 +22,7 @@ # Use is subject to license terms. # # Copyright 2011 Nexenta Systems, Inc. All rights reserved. +# Copyright (c) 2018, Joyent, Inc. # LIBRARY = libwrap.a @@ -48,7 +49,7 @@ LDLIBS += -lsocket -lnsl -lc CPPFLAGS += $(NETGROUP) $(TLI) $(ALWAYS_HOSTNAME) $(AUTH) \ $(STYLE) $(TABLES) $(DOT) $(BUGS) \ -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \ - -I$(SRCDIR) + -I$(SRCDIR) CFLAGS += $(CCVERBOSE) CERRWARN += -erroff=E_FUNC_EXPECTS_TO_RETURN_VALUE @@ -60,6 +61,9 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) @@ -98,7 +102,7 @@ NETGROUP = -DNETGROUP # module, which also gives hints on how to add your own extensions. # Uncomment the next definition to turn on the language extensions # (examples: allow, deny, banners, twist and spawn). -# +# STYLE = -DPROCESS_OPTIONS # Enable language extensions. ########################### @@ -126,7 +130,7 @@ STYLE = -DPROCESS_OPTIONS # Enable language extensions. # with connections from non-UNIX PCs. On some systems, remote username # lookups can trigger a kernel bug, causing loss of service. The README # file describes how to find out if your UNIX kernel has that problem. -# +# # Uncomment the following definition if the wrappers should always # attempt to get the remote user name. If this is not enabled you can # still do selective username lookups as documented in the hosts_access.5 @@ -155,7 +159,7 @@ TABLES = -DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\" # hostname. With selective hostname lookups, the client hostname # lookup is postponed until the name is required by an access control # rule or by a %letter expansion. -# +# # In order to perform selective hostname lookups, disable paranoid # mode (see previous section) and comment out the following definition. diff --git a/usr/src/lib/libxcurses/Makefile.com b/usr/src/lib/libxcurses/Makefile.com index 15658cc686..1449690433 100644 --- a/usr/src/lib/libxcurses/Makefile.com +++ b/usr/src/lib/libxcurses/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libcurses.a VERS= .1 @@ -111,13 +112,16 @@ ROOTLIBDIR64= $(ROOT)/usr/xpg4/lib/$(MACH64) ROOTLIBS= $(LIBS:%=$(ROOTLIBDIR)/%) $(LINTLIB):= SRCS=../src/libc/llib-lcurses -$(LINTLIB):= CPPFLAGS += -D_XOPEN_SOURCE_EXTENDED +$(LINTLIB):= CPPFLAGS += -D_XOPEN_SOURCE_EXTENDED CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-unused-label CERRWARN += -_gcc=-Wno-unused-function +# not linted +SMATCH=off + LINTSRC= $(LINTLIB:%.ln=%) LDLIBS += -lc diff --git a/usr/src/lib/libxcurses2/Makefile.com b/usr/src/lib/libxcurses2/Makefile.com index c1629d2435..41235cf283 100644 --- a/usr/src/lib/libxcurses2/Makefile.com +++ b/usr/src/lib/libxcurses2/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libcurses.a VERS= .2 @@ -99,6 +100,9 @@ CPPFLAGS = -I../h -I../src/libc/xcurses $(CPPFLAGS.master) CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-unused-value +# not linted +SMATCH=off + # # If and when somebody gets around to messaging this, CLOBBERFILE should not # be cleared (so that any .po file will be clobbered. diff --git a/usr/src/lib/libzfs/Makefile.com b/usr/src/lib/libzfs/Makefile.com index 581adf9120..996087bc0a 100644 --- a/usr/src/lib/libzfs/Makefile.com +++ b/usr/src/lib/libzfs/Makefile.com @@ -22,6 +22,7 @@ # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright 2016 Igor Kozhukhov <ikozhukhov@gmail.com> # Copyright (c) 2011, 2017 by Delphix. All rights reserved. +# Copyright (c) 2018, Joyent, Inc. # LIBRARY= libzfs.a @@ -75,6 +76,9 @@ LDLIBS += -lc -lm -ldevid -lgen -lnvpair -luutil -lavl -lefi \ CPPFLAGS += $(INCS) -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG +# not linted +SMATCH=off + # There's no lint library for zlib, so only include this when building $(DYNLIB) := LDLIBS += -lz diff --git a/usr/src/lib/libzfs_jni/Makefile.com b/usr/src/lib/libzfs_jni/Makefile.com index 8d8f9c4b26..693542d081 100644 --- a/usr/src/lib/libzfs_jni/Makefile.com +++ b/usr/src/lib/libzfs_jni/Makefile.com @@ -22,10 +22,10 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # - -# # Copyright (c) 2015 by Delphix. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. +# LIBRARY= libzfs_jni.a VERS= .1 @@ -50,6 +50,8 @@ CPPFLAGS += $(INCS) $(NOT_RELEASE_BUILD) CPPFLAGS += -DDEBUG CERRWARN += -_gcc=-Wno-switch +SMOFF += all_func_returns + SRCDIR = ../common $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) diff --git a/usr/src/lib/libzonestat/Makefile.com b/usr/src/lib/libzonestat/Makefile.com index be23af3d93..ca7b710a18 100644 --- a/usr/src/lib/libzonestat/Makefile.com +++ b/usr/src/lib/libzonestat/Makefile.com @@ -21,6 +21,7 @@ # # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libzonestat.a VERS= .1 @@ -28,7 +29,7 @@ OBJECTS= libzonestat.o include ../../Makefile.lib -LIBS = $(DYNLIB) $(LINTLIB) +LIBS = $(DYNLIB) $(LINTLIB) LDLIBS += -lcmdutils -lumem -lc SRCDIR = ../common @@ -37,6 +38,9 @@ $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/libzpool/Makefile.com b/usr/src/lib/libzpool/Makefile.com index ae65fc5887..99f7cd70eb 100644 --- a/usr/src/lib/libzpool/Makefile.com +++ b/usr/src/lib/libzpool/Makefile.com @@ -21,7 +21,7 @@ # # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2013, 2016 by Delphix. All rights reserved. -# Copyright 2017 Joyent, Inc. +# Copyright (c) 2018, Joyent, Inc. # LIBRARY= libzpool.a @@ -84,6 +84,9 @@ CERRWARN += -_gcc=-Wno-empty-body CERRWARN += -_gcc=-Wno-unused-function CERRWARN += -_gcc=-Wno-unused-label +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/mpapi/libmpapi/Makefile.com b/usr/src/lib/mpapi/libmpapi/Makefile.com index 892120bbf9..d62912f592 100644 --- a/usr/src/lib/mpapi/libmpapi/Makefile.com +++ b/usr/src/lib/mpapi/libmpapi/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libMPAPI.a VERS= .1 @@ -47,6 +48,9 @@ CERRWARN += -_gcc=-Wno-type-limits CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + ROOTETC = $(ROOT)/etc CONFDIR = ../common CONFFILE = $(CONFDIR)/mpapi.conf diff --git a/usr/src/lib/mpapi/libmpscsi_vhci/Makefile.com b/usr/src/lib/mpapi/libmpscsi_vhci/Makefile.com index 4a357345fa..023d711284 100644 --- a/usr/src/lib/mpapi/libmpscsi_vhci/Makefile.com +++ b/usr/src/lib/mpapi/libmpscsi_vhci/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libmpscsi_vhci.a VERS= .1 @@ -65,6 +66,9 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(SRCDIR) -D_POSIX_PTHREAD_SEMANTICS CPPFLAGS += -DBUILD_TIME='"Wed Sep 24 12:00:00 2008"' +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/nsswitch/Makefile.com b/usr/src/lib/nsswitch/Makefile.com index 9cbd34291b..570ae3a035 100644 --- a/usr/src/lib/nsswitch/Makefile.com +++ b/usr/src/lib/nsswitch/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. include $(SRC)/lib/Makefile.lib @@ -41,6 +42,9 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-address +# not linted +SMATCH=off + LDLIBS += -lc HSONAME = diff --git a/usr/src/lib/pam_modules/authtok_check/Makefile.com b/usr/src/lib/pam_modules/authtok_check/Makefile.com index 79332c6e90..ffdafad371 100644 --- a/usr/src/lib/pam_modules/authtok_check/Makefile.com +++ b/usr/src/lib/pam_modules/authtok_check/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= pam_authtok_check.a VERS= .1 @@ -35,6 +36,9 @@ LDLIBS += -lpam -lc CPPFLAGS += -D_FILE_OFFSET_BITS=64 CERRWARN += -_gcc=-Wno-parentheses +# not linted +SMATCH=off + all: $(LIBS) lint: lintcheck diff --git a/usr/src/lib/pam_modules/krb5/Makefile.com b/usr/src/lib/pam_modules/krb5/Makefile.com index 222f064fad..44e00890ad 100644 --- a/usr/src/lib/pam_modules/krb5/Makefile.com +++ b/usr/src/lib/pam_modules/krb5/Makefile.com @@ -22,8 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# usr/src/lib/pam_modules/krb5/Makefile.com -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY= pam_krb5.a VERS= .1 @@ -51,6 +50,9 @@ CPPFLAGS += -I../../../gss_mechs/mech_krb5/include \ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-unused-function +# not linted +SMATCH=off + # module needs to be unloadable because the key destructor might be # called after dlclose() DYNFLAGS += $(ZNODELETE) diff --git a/usr/src/lib/passwdutil/Makefile.com b/usr/src/lib/passwdutil/Makefile.com index 0b7c1ec4c4..d62fa7963d 100644 --- a/usr/src/lib/passwdutil/Makefile.com +++ b/usr/src/lib/passwdutil/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= passwdutil.a VERS= .1 @@ -43,7 +44,7 @@ OBJECTS= $(OBJ) include ../../Makefile.lib # -# Since our name doesn't start with "lib", Makefile.lib incorrectly +# Since our name doesn't start with "lib", Makefile.lib incorrectly # calculates LIBNAME. Therefore, we set it here. # LIBNAME= passwdutil @@ -60,6 +61,9 @@ CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-unused-label +# not linted +SMATCH=off + lint := SRCS= $(OBJ:%.o=$(SRCDIR)/%.c) .KEEP_STATE: diff --git a/usr/src/lib/pkcs11/libpkcs11/Makefile.com b/usr/src/lib/pkcs11/libpkcs11/Makefile.com index 33283e66e1..7c8d79737a 100644 --- a/usr/src/lib/pkcs11/libpkcs11/Makefile.com +++ b/usr/src/lib/pkcs11/libpkcs11/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libpkcs11.a VERS= .1 @@ -78,6 +79,9 @@ LINTFLAGS64 += -errchk=longptr64 CERRWARN += -_gcc=-Wno-unused-label CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/pkcs11/libsoftcrypto/amd64/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/amd64/Makefile index 40a2ae7830..1d184f528a 100644 --- a/usr/src/lib/pkcs11/libsoftcrypto/amd64/Makefile +++ b/usr/src/lib/pkcs11/libsoftcrypto/amd64/Makefile @@ -24,6 +24,7 @@ # Copyright 2017 Jason King # Copyright (c) 2018, Joyent, Inc. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libsoftcrypto.a VERS = .1 @@ -42,6 +43,9 @@ CERRWARN += -_gcc=-Wno-type-limits CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + AES_PSM_SRC = $(AES_DIR)/$(MACH64)/aes_amd64.s \ $(AES_DIR)/$(MACH64)/aes_intel.s \ $(AES_DIR)/$(MACH64)/aeskey.c diff --git a/usr/src/lib/pkcs11/libsoftcrypto/i386/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/i386/Makefile index 897a2da6cd..4968174065 100644 --- a/usr/src/lib/pkcs11/libsoftcrypto/i386/Makefile +++ b/usr/src/lib/pkcs11/libsoftcrypto/i386/Makefile @@ -22,6 +22,7 @@ # # Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libsoftcrypto.a VERS = .1 @@ -34,6 +35,9 @@ CERRWARN += -_gcc=-Wno-type-limits CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + # Sources need to be redefined after Makefile.lib inclusion. SRCS = $(AES_SRC) $(ARCFOUR_SRC) $(BIGNUM_SRC) $(BLOWFISH_SRC) \ $(DES_SRC) $(MODES_SRC) $(DH_SRC) $(DSA_SRC) $(RSA_SRC) \ diff --git a/usr/src/lib/pkcs11/pkcs11_kernel/Makefile.com b/usr/src/lib/pkcs11/pkcs11_kernel/Makefile.com index e44f6cfec0..d29e303e77 100644 --- a/usr/src/lib/pkcs11/pkcs11_kernel/Makefile.com +++ b/usr/src/lib/pkcs11/pkcs11_kernel/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= pkcs11_kernel.a VERS= .1 @@ -88,6 +89,9 @@ CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-unused-label +# not linted +SMATCH=off + ROOTLIBDIR= $(ROOT)/usr/lib/security ROOTLIBDIR64= $(ROOT)/usr/lib/security/$(MACH64) diff --git a/usr/src/lib/pkcs11/pkcs11_softtoken/Makefile.com b/usr/src/lib/pkcs11/pkcs11_softtoken/Makefile.com index 2f544d4434..c571c0b278 100644 --- a/usr/src/lib/pkcs11/pkcs11_softtoken/Makefile.com +++ b/usr/src/lib/pkcs11/pkcs11_softtoken/Makefile.com @@ -24,8 +24,7 @@ # Copyright 2010 Nexenta Systems, Inc. All rights reserved. # Copyright 2018, Joyent, Inc. # -# lib/pkcs11/pkcs11_softtoken/Makefile.com -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY = pkcs11_softtoken.a VERS= .1 @@ -136,6 +135,9 @@ CERRWARN += -_gcc=-Wno-type-limits CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-empty-body +# not linted +SMATCH=off + CPPFLAGS += -I$(AESDIR) -I$(BLOWFISHDIR) -I$(ARCFOURDIR) -I$(DESDIR) \ -I$(DHDIR) -I$(DSADIR) -I$(ECCDIR) -I$(SRC)/common/crypto \ -I$(MPIDIR) -I$(RSADIR) -I$(RNGDIR) \ diff --git a/usr/src/lib/pkcs11/pkcs11_tpm/Makefile.com b/usr/src/lib/pkcs11/pkcs11_tpm/Makefile.com index 76b2f3f302..d09d2012f0 100644 --- a/usr/src/lib/pkcs11/pkcs11_tpm/Makefile.com +++ b/usr/src/lib/pkcs11/pkcs11_tpm/Makefile.com @@ -23,6 +23,8 @@ # # Copyright 2018 Jason King # +# Copyright (c) 2018, Joyent, Inc. + LIBRARY = pkcs11_tpm.a VERS = .1 @@ -95,6 +97,9 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-unused-label CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + LINTSRC= $(OBJECTS:%.o=$(SRCDIR)/%.c) $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) @@ -105,7 +110,7 @@ CLOBBERFILES += C.ln .KEEP_STATE: all: $(LIBS) - + lint: $$(LINTSRC) $(LINT.c) $(LINTCHECKFLAGS) $(LINTSRC) $(LDLIBS) diff --git a/usr/src/lib/print/libhttp-core/Makefile.com b/usr/src/lib/print/libhttp-core/Makefile.com index cfb8ae8730..f8412cd381 100644 --- a/usr/src/lib/print/libhttp-core/Makefile.com +++ b/usr/src/lib/print/libhttp-core/Makefile.com @@ -22,8 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libhttp-core.a VERS = .1 @@ -47,6 +46,9 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(SRCDIR) CPPFLAGS += -I../../libpapi-common/common +# not linted +SMATCH=off + MAPFILES = $(SRCDIR)/mapfile LDLIBS += -lsocket -lnsl -lc diff --git a/usr/src/lib/print/libipp-core/Makefile.com b/usr/src/lib/print/libipp-core/Makefile.com index 26f48c2dbb..20c9a1e5ac 100644 --- a/usr/src/lib/print/libipp-core/Makefile.com +++ b/usr/src/lib/print/libipp-core/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libipp-core.a VERS = .0 @@ -46,6 +47,8 @@ CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-char-subscripts CERRWARN += -_gcc=-Wno-switch +SMOFF += all_func_returns + MAPFILES = $(SRCDIR)/mapfile LDLIBS += -lpapi-common -lc diff --git a/usr/src/lib/print/libipp-listener/Makefile.com b/usr/src/lib/print/libipp-listener/Makefile.com index 4db2966ceb..a111a471e0 100644 --- a/usr/src/lib/print/libipp-listener/Makefile.com +++ b/usr/src/lib/print/libipp-listener/Makefile.com @@ -22,7 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libipp-listener.a VERS = .0 @@ -55,6 +55,9 @@ CPPFLAGS += -I../../libipp-core/common CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + MAPFILES = $(SRCDIR)/mapfile LDLIBS += -lipp-core -lpapi -lc -lsocket -lnsl diff --git a/usr/src/lib/print/libpapi-common/Makefile.com b/usr/src/lib/print/libpapi-common/Makefile.com index 7948a2261e..2f09a330ac 100644 --- a/usr/src/lib/print/libpapi-common/Makefile.com +++ b/usr/src/lib/print/libpapi-common/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libpapi-common.a VERS = .0 @@ -43,6 +44,9 @@ CPPFLAGS += -I$(SRCDIR) CERRWARN += -_gcc=-Wno-switch +# not linted +SMATCH=off + MAPFILES = $(SRCDIR)/mapfile LDLIBS += -lc -lsocket -lnsl diff --git a/usr/src/lib/print/libpapi-dynamic/Makefile.com b/usr/src/lib/print/libpapi-dynamic/Makefile.com index 8a51154c48..daab165a1d 100644 --- a/usr/src/lib/print/libpapi-dynamic/Makefile.com +++ b/usr/src/lib/print/libpapi-dynamic/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libpapi.a VERS = .0 @@ -48,6 +49,8 @@ LDLIBS += -lc CERRWARN += -_gcc=-Wno-unused-variable +SMOFF += all_func_returns + .KEEP_STATE: all: $(LIBS) diff --git a/usr/src/lib/print/libpapi-ipp/Makefile.com b/usr/src/lib/print/libpapi-ipp/Makefile.com index f5abebce00..b96b6fef71 100644 --- a/usr/src/lib/print/libpapi-ipp/Makefile.com +++ b/usr/src/lib/print/libpapi-ipp/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = psm-ipp.a VERS = .1 @@ -54,6 +55,9 @@ CERRWARN += -_gcc=-Wno-type-limits CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + MAPFILES = $(SRCDIR)/mapfile LDLIBS += -L$(ROOTLIBDIR) -R/usr/lib/print -lhttp-core -lmd5 diff --git a/usr/src/lib/print/libpapi-lpd/Makefile.com b/usr/src/lib/print/libpapi-lpd/Makefile.com index 9c0a8af8df..1e24f80ac5 100644 --- a/usr/src/lib/print/libpapi-lpd/Makefile.com +++ b/usr/src/lib/print/libpapi-lpd/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = psm-lpd.a VERS = .1 @@ -51,6 +52,9 @@ CPPFLAGS += -I../../libpapi-common/common CERRWARN += -_gcc=-Wno-unused-variable +# not linted +SMATCH=off + MAPFILES = $(SRCDIR)/mapfile LDLIBS += -lc diff --git a/usr/src/lib/print/libprint/Makefile.com b/usr/src/lib/print/libprint/Makefile.com index 88fbb532b0..47492ab7c8 100644 --- a/usr/src/lib/print/libprint/Makefile.com +++ b/usr/src/lib/print/libprint/Makefile.com @@ -22,8 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libprint.a VERS = .2 @@ -46,6 +45,9 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(SRCDIR) CPPFLAGS += -I../../head -D_REENTRANT +# not linted +SMATCH=off + LDLIBS += -lnsl -lsocket -lc -lldap diff --git a/usr/src/lib/rpcsec_gss/Makefile.com b/usr/src/lib/rpcsec_gss/Makefile.com index 53287d4664..2dca6fe9e2 100644 --- a/usr/src/lib/rpcsec_gss/Makefile.com +++ b/usr/src/lib/rpcsec_gss/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= rpcsec.a VERS = .1 @@ -40,6 +41,9 @@ CFLAGS64 += $(XFFLAG) CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-parentheses +# not linted +SMATCH=off + DYNFLAGS += $(ZIGNORE) LINTSRC= $(LINTLIB:%.ln=%) diff --git a/usr/src/lib/sasl_plugins/Makefile.com b/usr/src/lib/sasl_plugins/Makefile.com index 043c3eb01c..09eb2bd2bd 100644 --- a/usr/src/lib/sasl_plugins/Makefile.com +++ b/usr/src/lib/sasl_plugins/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. COMMONOBJS= plugin_common.o OBJECTS= $(PLUG_OBJS) $(COMMONOBJS) @@ -32,6 +33,9 @@ CPPFLAGS += -I$(SRC)/lib/libsasl/include CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + LIBS = $(DYNLIB) SRCS= $(PLUG_OBJS:%.o=../%.c) \ $(COMMONOBJS:%.o=$(SRC)/lib/libsasl/plugin/%.c) diff --git a/usr/src/lib/scsi/libses/Makefile.defs b/usr/src/lib/scsi/libses/Makefile.defs index 91c04eeeec..32f6075d32 100644 --- a/usr/src/lib/scsi/libses/Makefile.defs +++ b/usr/src/lib/scsi/libses/Makefile.defs @@ -22,6 +22,7 @@ # # Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. SRCS = $(OBJECTS:%.o=../common/%.c) CSTD = $(CSTD_GNU99) @@ -33,6 +34,8 @@ CERRWARN += -_gcc=-Wno-type-limits CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-unused-label +SMOFF += all_func_returns + ROOTLIBDIR = $(ROOTSCSILIBDIR) ROOTLIBDIR64 = $(ROOTSCSILIBDIR)/$(MACH64) diff --git a/usr/src/lib/scsi/libsmp/Makefile.com b/usr/src/lib/scsi/libsmp/Makefile.com index 428e4e795c..13760167b9 100644 --- a/usr/src/lib/scsi/libsmp/Makefile.com +++ b/usr/src/lib/scsi/libsmp/Makefile.com @@ -22,6 +22,7 @@ # # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libsmp.a VERS = .1 @@ -44,6 +45,8 @@ CFLAGS += $(CCVERBOSE) CERRWARN += -_gcc=-Wno-type-limits CERRWARN += -_gcc=-Wno-uninitialized +SMOFF += all_func_returns + LDLIBS += \ -lumem \ -lc diff --git a/usr/src/lib/scsi/plugins/scsi/engines/uscsi/Makefile.com b/usr/src/lib/scsi/plugins/scsi/engines/uscsi/Makefile.com index ed98d38b11..8917816b7c 100644 --- a/usr/src/lib/scsi/plugins/scsi/engines/uscsi/Makefile.com +++ b/usr/src/lib/scsi/plugins/scsi/engines/uscsi/Makefile.com @@ -23,9 +23,11 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" +# Copyright (c) 2018, Joyent, Inc. MODULE = uscsi SRCS = uscsi.c include ../../Makefile.engine + +SMOFF += signed diff --git a/usr/src/lib/smbsrv/libfksmbsrv/Makefile.com b/usr/src/lib/smbsrv/libfksmbsrv/Makefile.com index cfc1776993..074e316b28 100644 --- a/usr/src/lib/smbsrv/libfksmbsrv/Makefile.com +++ b/usr/src/lib/smbsrv/libfksmbsrv/Makefile.com @@ -24,6 +24,7 @@ # # Copyright 2014 Nexenta Systems, Inc. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libfksmbsrv.a VERS = .1 @@ -215,6 +216,9 @@ CPPFLAGS += -DDEBUG CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-switch +# not linted +SMATCH=off + SRCS= $(OBJS_LOCAL:%.o=$(SRCDIR)/%.c) \ $(OBJS_FS_SMBSRV:%.o=$(SRC)/uts/common/fs/smbsrv/%.c) \ $(OBJS_CMN_SMBSRV:%.o=$(SRC)/common/smbsrv/%.c) diff --git a/usr/src/lib/smbsrv/libmlsvc/Makefile.com b/usr/src/lib/smbsrv/libmlsvc/Makefile.com index 50e596caa4..a613eb24b4 100644 --- a/usr/src/lib/smbsrv/libmlsvc/Makefile.com +++ b/usr/src/lib/smbsrv/libmlsvc/Makefile.com @@ -22,6 +22,7 @@ # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright 2014 Nexenta Systems, Inc. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libmlsvc.a VERS = .1 @@ -93,6 +94,10 @@ $(ENABLE_SMB_PRINTING) CPPFLAGS += -DHAVE_CUPS CERRWARN += -_gcc=-Wno-unused-function CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + + SRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) include ../../Makefile.targ diff --git a/usr/src/lib/smbsrv/libsmb/Makefile.com b/usr/src/lib/smbsrv/libsmb/Makefile.com index 78dc4fdcfa..fd685fc2f9 100644 --- a/usr/src/lib/smbsrv/libsmb/Makefile.com +++ b/usr/src/lib/smbsrv/libsmb/Makefile.com @@ -22,6 +22,7 @@ # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright 2014 Nexenta Systems, Inc. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libsmb.a VERS= .1 @@ -88,6 +89,9 @@ CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-char-subscripts CERRWARN += -_gcc=-Wno-switch +# not linted +SMATCH=off + SRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) \ $(OBJS_SHARED:%.o=$(SRC)/common/smbsrv/%.c) diff --git a/usr/src/lib/smbsrv/libsmbns/Makefile.com b/usr/src/lib/smbsrv/libsmbns/Makefile.com index e0dd1beec7..8011d3305a 100644 --- a/usr/src/lib/smbsrv/libsmbns/Makefile.com +++ b/usr/src/lib/smbsrv/libsmbns/Makefile.com @@ -20,7 +20,8 @@ # # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright 2014 Nexenta Systems, Inc. All rights reserved. -# +# +# Copyright (c) 2018, Joyent, Inc. LIBRARY= libsmbns.a VERS= .1 @@ -56,6 +57,9 @@ CPPFLAGS += -Dsyslog=smb_syslog CERRWARN += -_gcc=-Wno-unused-function CERRWARN += -_gcc=-Wno-uninitialized +# not linted +SMATCH=off + # DYNLIB libraries do not have lint libs and are not linted $(DYNLIB) := LDLIBS += -lkrb5 diff --git a/usr/src/lib/smhba/Makefile.com b/usr/src/lib/smhba/Makefile.com index 61a498eaeb..d512f5b80a 100644 --- a/usr/src/lib/smhba/Makefile.com +++ b/usr/src/lib/smhba/Makefile.com @@ -22,6 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libSMHBAAPI.a @@ -49,6 +50,8 @@ CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-unused-function +SMOFF += indenting,all_func_returns + LDLIBS += -lc $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) diff --git a/usr/src/lib/sun_sas/Makefile.com b/usr/src/lib/sun_sas/Makefile.com index f6457c7c8e..a4c1ea4b0b 100644 --- a/usr/src/lib/sun_sas/Makefile.com +++ b/usr/src/lib/sun_sas/Makefile.com @@ -22,7 +22,7 @@ # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# +# Copyright (c) 2018, Joyent, Inc. LIBRARY = libsun_sas.a VERS = .1 @@ -84,6 +84,9 @@ CPPFLAGS += -DBUILD_TIME='"Wed Feb 4 12:00:00 2009"' CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-unused-value +# not linted +SMATCH=off + LDLIBS += -ldevinfo LDLIBS += -lsysevent LDLIBS += -lnvpair diff --git a/usr/src/lib/udapl/udapl_tavor/Makefile.com b/usr/src/lib/udapl/udapl_tavor/Makefile.com index 75780c71be..4671bea78d 100644 --- a/usr/src/lib/udapl/udapl_tavor/Makefile.com +++ b/usr/src/lib/udapl/udapl_tavor/Makefile.com @@ -22,9 +22,10 @@ # # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. # +# Copyright (c) 2018, Joyent, Inc. -LIBRARY= udapl_tavor.a -VERS= .1 +LIBRARY= udapl_tavor.a +VERS= .1 LOCOBJS = \ dapl_cno_create.o \ @@ -139,7 +140,7 @@ TAVORSRCDIR = ../tavor SRCS = $(LOCOBJS:%.o=$(SRCDIR)/%.c) $(TAVOROBJS:%.o=$(TAVORSRCDIR)/%.c) -CPPFLAGS += -I$(SRC)/lib/udapl/udapl_tavor/include +CPPFLAGS += -I$(SRC)/lib/udapl/udapl_tavor/include CPPFLAGS += -I$(SRC)/lib/udapl/udapl_tavor/tavor CPPFLAGS += -I$(SRC)/uts/common/sys/ib/clients/daplt CPPFLAGS += -I$(SRC)/uts/common @@ -152,6 +153,9 @@ CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-uninitialized CERRWARN += -_gcc=-Wno-switch +# not linted +SMATCH=off + $(NOT_RELEASE_BUILD)CPPFLAGS += -DDAPL_DBG debug := COPTFLAG = -g debug := COPTFLAG64 = -g diff --git a/usr/src/lib/watchmalloc/Makefile.com b/usr/src/lib/watchmalloc/Makefile.com index eabd4993bc..c4cb542ac3 100644 --- a/usr/src/lib/watchmalloc/Makefile.com +++ b/usr/src/lib/watchmalloc/Makefile.com @@ -42,6 +42,9 @@ DYNFLAGS += $(ZINTERPOSE) CERRWARN += -_gcc=-Wno-unused-label +# not linted +SMATCH=off + .KEEP_STATE: all: $(LIBS) |