changeset 20599:d2c2cc412666

10080 smatch Makefile changes for usr/src/cmd Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Robert Mustacchi <rm@joyent.com>
author John Levon <john.levon@joyent.com>
date Mon, 17 Dec 2018 23:44:05 +0000
parents 973230bc8d42
children a9ce21b31e86
files usr/src/cmd/abi/appcert/static_prof/Makefile.com usr/src/cmd/abi/spectrans/Makefile.cmd usr/src/cmd/abi/spectrans/parser/Makefile.targ usr/src/cmd/abi/spectrans/spec2trace/Makefile.targ usr/src/cmd/acct/Makefile usr/src/cmd/acct/lib/Makefile usr/src/cmd/acpi/acpidump/Makefile usr/src/cmd/acpi/acpixtract/Makefile usr/src/cmd/adbgen/Makefile.com usr/src/cmd/addbadsec/Makefile usr/src/cmd/allocate/Makefile usr/src/cmd/ast/msgcc/Makefile usr/src/cmd/audio/audioplay/Makefile usr/src/cmd/audio/utilities/Makefile usr/src/cmd/auditd/Makefile usr/src/cmd/auditreduce/Makefile usr/src/cmd/awk/Makefile usr/src/cmd/awk_xpg4/Makefile usr/src/cmd/backup/Makefile.backup usr/src/cmd/bart/Makefile usr/src/cmd/bc/Makefile usr/src/cmd/bdiff/Makefile usr/src/cmd/boot/bootadm/Makefile usr/src/cmd/boot/fiocompress/Makefile usr/src/cmd/boot/installgrub/Makefile usr/src/cmd/captoinfo/Makefile usr/src/cmd/cdrw/Makefile usr/src/cmd/cfgadm/Makefile usr/src/cmd/cmd-crypto/pktool/Makefile usr/src/cmd/cmd-inet/lib/nwamd/Makefile usr/src/cmd/cmd-inet/sbin/dhcpagent/Makefile usr/src/cmd/cmd-inet/usr.bin/Makefile usr/src/cmd/cmd-inet/usr.bin/chat/Makefile usr/src/cmd/cmd-inet/usr.bin/dns-sd/Makefile usr/src/cmd/cmd-inet/usr.bin/ftp/Makefile usr/src/cmd/cmd-inet/usr.bin/netstat/Makefile usr/src/cmd/cmd-inet/usr.bin/pppdump/Makefile usr/src/cmd/cmd-inet/usr.bin/rdist/Makefile usr/src/cmd/cmd-inet/usr.bin/talk/Makefile usr/src/cmd/cmd-inet/usr.bin/telnet/Makefile usr/src/cmd/cmd-inet/usr.lib/ilbd/Makefile usr/src/cmd/cmd-inet/usr.lib/in.ndpd/Makefile usr/src/cmd/cmd-inet/usr.lib/in.ripngd/Makefile usr/src/cmd/cmd-inet/usr.lib/inetd/Makefile usr/src/cmd/cmd-inet/usr.lib/mdnsd/Makefile usr/src/cmd/cmd-inet/usr.lib/pppoe/Makefile usr/src/cmd/cmd-inet/usr.lib/wpad/Makefile usr/src/cmd/cmd-inet/usr.sbin/Makefile usr/src/cmd/cmd-inet/usr.sbin/ilbadm/Makefile usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/Makefile usr/src/cmd/cmd-inet/usr.sbin/in.routed/Makefile usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/Makefile usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/Makefile usr/src/cmd/cmd-inet/usr.sbin/nwamadm/Makefile usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/Makefile usr/src/cmd/cmd-inet/usr.sbin/snoop/Makefile usr/src/cmd/cmd-inet/usr.sbin/wificonfig/Makefile usr/src/cmd/cpc/cpustat/Makefile usr/src/cmd/cpc/cputrack/Makefile.com usr/src/cmd/cpio/Makefile usr/src/cmd/cron/Makefile usr/src/cmd/csh/i386/Makefile usr/src/cmd/cxgbetool/Makefile usr/src/cmd/dc/Makefile usr/src/cmd/devfsadm/Makefile.com usr/src/cmd/devmgmt/cmds/Makefile usr/src/cmd/diskscan/Makefile usr/src/cmd/dladm/Makefile usr/src/cmd/dlstat/Makefile usr/src/cmd/dtrace/test/cmd/baddof/Makefile usr/src/cmd/dtrace/test/cmd/badioctl/Makefile usr/src/cmd/dtrace/test/tst/Makefile.com usr/src/cmd/ed/Makefile usr/src/cmd/eeprom/Makefile.com usr/src/cmd/enhance/Makefile usr/src/cmd/eqn/eqn.d/Makefile usr/src/cmd/eqn/neqn.d/Makefile usr/src/cmd/etdump/Makefile usr/src/cmd/expand/Makefile usr/src/cmd/expr/Makefile usr/src/cmd/exstr/Makefile usr/src/cmd/factor/Makefile usr/src/cmd/fcinfo/Makefile usr/src/cmd/fdformat/Makefile usr/src/cmd/fdisk/Makefile usr/src/cmd/ficl/Makefile.com usr/src/cmd/file/Makefile usr/src/cmd/filesync/Makefile usr/src/cmd/flowstat/Makefile usr/src/cmd/fm/eversholt/Makefile.esc.com usr/src/cmd/fm/fmd/Makefile.fmd usr/src/cmd/fm/fmstat/Makefile.com usr/src/cmd/fm/fmtopo/Makefile.com usr/src/cmd/fm/modules/common/disk-monitor/Makefile usr/src/cmd/fm/modules/common/eversholt/Makefile usr/src/cmd/fm/modules/common/fabric-xlate/Makefile usr/src/cmd/fm/modules/common/ip-transport/Makefile usr/src/cmd/fm/modules/common/ses-log-transport/Makefile usr/src/cmd/fmt/Makefile usr/src/cmd/fold/Makefile usr/src/cmd/format/Makefile usr/src/cmd/fs.d/Makefile usr/src/cmd/fs.d/autofs/Makefile usr/src/cmd/fs.d/hsfs/labelit/Makefile usr/src/cmd/fs.d/hsfs/mount/Makefile usr/src/cmd/fs.d/nfs/clear_locks/Makefile usr/src/cmd/fs.d/nfs/dfmounts/Makefile usr/src/cmd/fs.d/nfs/dfshares/Makefile usr/src/cmd/fs.d/nfs/lockd/Makefile usr/src/cmd/fs.d/nfs/mount/Makefile usr/src/cmd/fs.d/nfs/mountd/Makefile usr/src/cmd/fs.d/nfs/nfs4cbd/Makefile usr/src/cmd/fs.d/nfs/nfsd/Makefile usr/src/cmd/fs.d/nfs/nfslog/Makefile usr/src/cmd/fs.d/nfs/nfsmapid/Makefile usr/src/cmd/fs.d/nfs/nfsref/Makefile usr/src/cmd/fs.d/nfs/nfsstat/Makefile usr/src/cmd/fs.d/nfs/rp_basic/Makefile.com usr/src/cmd/fs.d/nfs/rquotad/Makefile usr/src/cmd/fs.d/nfs/showmount/Makefile usr/src/cmd/fs.d/nfs/statd/Makefile usr/src/cmd/fs.d/nfs/tests/Makefile usr/src/cmd/fs.d/smbclnt/smbiod-svc/Makefile usr/src/cmd/fs.d/smbclnt/smbiod/Makefile usr/src/cmd/fs.d/smbclnt/smbutil/Makefile usr/src/cmd/fs.d/udfs/fsck/Makefile usr/src/cmd/fs.d/udfs/fsdb/Makefile usr/src/cmd/fs.d/udfs/mkfs/Makefile usr/src/cmd/fs.d/ufs/df/Makefile usr/src/cmd/fs.d/ufs/edquota/Makefile usr/src/cmd/fs.d/ufs/ff/Makefile usr/src/cmd/fs.d/ufs/fsck/Makefile usr/src/cmd/fs.d/ufs/fsdb/Makefile usr/src/cmd/fs.d/ufs/fssnap/Makefile usr/src/cmd/fs.d/ufs/labelit/Makefile usr/src/cmd/fs.d/ufs/lockfs/Makefile usr/src/cmd/fs.d/ufs/newfs/Makefile usr/src/cmd/fs.d/ufs/quot/Makefile usr/src/cmd/fs.d/ufs/quota/Makefile usr/src/cmd/fs.d/ufs/quotacheck/Makefile usr/src/cmd/fs.d/ufs/quotaon/Makefile usr/src/cmd/fs.d/ufs/repquota/Makefile usr/src/cmd/fs.d/ufs/tunefs/Makefile usr/src/cmd/fs.d/ufs/volcopy/Makefile usr/src/cmd/fwflash/Makefile.com usr/src/cmd/gencat/Makefile usr/src/cmd/grpck/Makefile usr/src/cmd/gss/gsscred/Makefile usr/src/cmd/gss/gssd/Makefile usr/src/cmd/iconv/Makefile usr/src/cmd/idmap/idmap/Makefile usr/src/cmd/idmap/idmapd/Makefile usr/src/cmd/init/Makefile usr/src/cmd/ipf/Makefile.ipf usr/src/cmd/iscsiadm/Makefile usr/src/cmd/isns/isnsadm/Makefile usr/src/cmd/isns/isnsd/Makefile usr/src/cmd/keyserv/Makefile usr/src/cmd/krb5/kadmin/cli/Makefile usr/src/cmd/krb5/kadmin/dbutil/Makefile usr/src/cmd/krb5/kadmin/kclient/Makefile usr/src/cmd/krb5/kadmin/kdcmgr/Makefile usr/src/cmd/krb5/kadmin/kpasswd/Makefile usr/src/cmd/krb5/kadmin/ktutil/Makefile usr/src/cmd/krb5/kadmin/server/Makefile usr/src/cmd/krb5/kdestroy/Makefile usr/src/cmd/krb5/kinit/Makefile usr/src/cmd/krb5/klist/Makefile usr/src/cmd/krb5/kproplog/Makefile usr/src/cmd/krb5/krb5kdc/Makefile usr/src/cmd/krb5/kwarn/Makefile usr/src/cmd/krb5/ldap_util/Makefile usr/src/cmd/krb5/slave/Makefile usr/src/cmd/ksh/Makefile.com usr/src/cmd/ksh/builtins/Makefile usr/src/cmd/last/Makefile usr/src/cmd/ldap/Makefile.com usr/src/cmd/ldapcachemgr/Makefile usr/src/cmd/listen/Makefile usr/src/cmd/loadkeys/Makefile usr/src/cmd/lockstat/Makefile.com usr/src/cmd/lofiadm/Makefile usr/src/cmd/look/Makefile usr/src/cmd/lp/Makefile.lp usr/src/cmd/lp/lib/filters/Makefile usr/src/cmd/lp/lib/oam/Makefile usr/src/cmd/luxadm/Makefile usr/src/cmd/mail/Makefile usr/src/cmd/mailwrapper/Makefile usr/src/cmd/mailx/Makefile usr/src/cmd/mandoc/Makefile.common usr/src/cmd/mdb/Makefile.mdb usr/src/cmd/mdb/Makefile.module usr/src/cmd/mdb/intel/amd64/ip/Makefile usr/src/cmd/mdb/intel/ia32/libpython/Makefile usr/src/cmd/mkmsgs/Makefile usr/src/cmd/modload/Makefile.com usr/src/cmd/more/Makefile usr/src/cmd/mpathadm/Makefile usr/src/cmd/ndmpd/Makefile usr/src/cmd/ndmpstat/Makefile usr/src/cmd/news/Makefile usr/src/cmd/nl/Makefile usr/src/cmd/nlsadmin/Makefile usr/src/cmd/nscd/Makefile usr/src/cmd/nvmeadm/Makefile usr/src/cmd/oamuser/group/Makefile usr/src/cmd/oamuser/lib/Makefile usr/src/cmd/oamuser/user/Makefile usr/src/cmd/oawk/Makefile usr/src/cmd/passmgmt/Makefile usr/src/cmd/perl/Makefile.targ usr/src/cmd/picl/plugins/lib/picld_pluginutil/Makefile.com usr/src/cmd/pools/poolcfg/Makefile usr/src/cmd/pools/poold/Makefile usr/src/cmd/pools/poold/libjkstat/Makefile.com usr/src/cmd/pools/poold/libjlgrp/Makefile.com usr/src/cmd/pools/poold/libjpool/Makefile.com usr/src/cmd/pools/poold/libjsyslog/Makefile.com usr/src/cmd/power/Makefile usr/src/cmd/powertop/Makefile.com usr/src/cmd/pr/Makefile usr/src/cmd/praudit/Makefile usr/src/cmd/prctl/Makefile.com usr/src/cmd/print/bsd-sysv-commands/Makefile usr/src/cmd/print/conv_fix/Makefile usr/src/cmd/print/lpset/Makefile usr/src/cmd/print/printer-info/Makefile usr/src/cmd/print/printer-info/printer-info.c usr/src/cmd/print/printmgr/com/sun/admin/pm/server/Makefile usr/src/cmd/prtvtoc/Makefile usr/src/cmd/ps/Makefile.com usr/src/cmd/ptools/Makefile.bld usr/src/cmd/pwconv/Makefile usr/src/cmd/rcap/Makefile.com usr/src/cmd/rcm_daemon/Makefile.com usr/src/cmd/refer/Makefile usr/src/cmd/regcmp/Makefile usr/src/cmd/rmformat/Makefile usr/src/cmd/rmmount/Makefile usr/src/cmd/rmvolmgr/Makefile usr/src/cmd/rpcbind/Makefile usr/src/cmd/rpcsvc/Makefile usr/src/cmd/sa/Makefile usr/src/cmd/saf/Makefile usr/src/cmd/sasinfo/Makefile usr/src/cmd/savecore/Makefile.com usr/src/cmd/script/Makefile usr/src/cmd/setfacl/Makefile usr/src/cmd/sgs/ar/Makefile.com usr/src/cmd/sgs/crle/Makefile.com usr/src/cmd/sgs/dump/Makefile.com usr/src/cmd/sgs/elfdump/Makefile.com usr/src/cmd/sgs/error/i386/Makefile usr/src/cmd/sgs/gprof/Makefile.com usr/src/cmd/sgs/ldd/Makefile.com usr/src/cmd/sgs/ldprof/Makefile.com usr/src/cmd/sgs/libconv/Makefile.com usr/src/cmd/sgs/libelf/Makefile.com usr/src/cmd/sgs/libld/Makefile.com usr/src/cmd/sgs/nm/amd64/Makefile usr/src/cmd/sgs/nm/i386/Makefile usr/src/cmd/sgs/prof/Makefile.com usr/src/cmd/sgs/pvs/Makefile.com usr/src/cmd/sgs/rtld/Makefile.com usr/src/cmd/sgs/tools/Makefile.com usr/src/cmd/sgs/yacc/Makefile.com usr/src/cmd/sh/Makefile usr/src/cmd/shcomp/Makefile usr/src/cmd/smbsrv/smbadm/Makefile usr/src/cmd/smserverd/Makefile usr/src/cmd/soelim/Makefile usr/src/cmd/sort/Makefile.com usr/src/cmd/sqlite/Makefile usr/src/cmd/ssh/etc/Makefile usr/src/cmd/stat/fsstat/Makefile usr/src/cmd/stat/vmstat/Makefile usr/src/cmd/streams/log/Makefile usr/src/cmd/sulogin/Makefile usr/src/cmd/sunpc/other/Makefile usr/src/cmd/svc/startd/Makefile usr/src/cmd/svc/svccfg/Makefile usr/src/cmd/svr4pkg/Makefile.svr4pkg usr/src/cmd/svr4pkg/libinst/Makefile usr/src/cmd/swap/Makefile.com usr/src/cmd/sysdef/Makefile.com usr/src/cmd/syslogd/Makefile.com usr/src/cmd/tabs/Makefile usr/src/cmd/tail/Makefile usr/src/cmd/tar/Makefile usr/src/cmd/tbl/Makefile usr/src/cmd/tcopy/Makefile usr/src/cmd/tcpd/Makefile usr/src/cmd/tnf/prex/Makefile.com usr/src/cmd/tnf/tnfxtract/Makefile.com usr/src/cmd/tput/Makefile usr/src/cmd/truss/Makefile.com usr/src/cmd/tsol/tnd/Makefile usr/src/cmd/ttymon/Makefile usr/src/cmd/units/Makefile usr/src/cmd/unlink/Makefile usr/src/cmd/utmpd/Makefile usr/src/cmd/vgrind/Makefile usr/src/cmd/vi/misc/Makefile usr/src/cmd/vi/port/Makefile usr/src/cmd/volcheck/Makefile usr/src/cmd/volrmmount/Makefile usr/src/cmd/vscan/vscand/Makefile usr/src/cmd/wall/Makefile usr/src/cmd/whodo/amd64/Makefile usr/src/cmd/write/Makefile usr/src/cmd/xargs/Makefile usr/src/cmd/ypcmd/Makefile usr/src/cmd/ypcmd/mknetid/Makefile usr/src/cmd/ypcmd/revnetgroup/Makefile usr/src/cmd/ypcmd/yppasswd/Makefile usr/src/cmd/ypcmd/ypupdated/Makefile usr/src/cmd/zdb/Makefile.com usr/src/cmd/zlogin/Makefile usr/src/cmd/zonecfg/Makefile usr/src/cmd/zonestat/zonestat/Makefile usr/src/cmd/zonestat/zonestatd/Makefile usr/src/cmd/zstreamdump/Makefile usr/src/cmd/ztest/Makefile.com
diffstat 324 files changed, 1330 insertions(+), 213 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/abi/appcert/static_prof/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/abi/appcert/static_prof/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -26,6 +26,7 @@
 #
 # Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 include		$(SRC)/cmd/Makefile.cmd
 
@@ -35,6 +36,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-value
 CERRWARN +=	-_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 LDLIBS +=	-lelf
 
 LINTFLAGS =	-nmxsuF -errtags=yes
--- a/usr/src/cmd/abi/spectrans/Makefile.cmd	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/abi/spectrans/Makefile.cmd	Mon Dec 17 23:44:05 2018 +0000
@@ -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.
 
 include $(SRC)/cmd/Makefile.cmd
 
@@ -40,6 +39,9 @@
 LDFLAGS	+=	-L$(U_DIR)
 LINTFLAGS +=	-xsuF -errtags=yes
 
+# not linted
+SMATCH=off
+
 LDLIBS	+=	-l$(U_LIB) -lgen
 LINTLIBS =	-L$(U_DIR) -l$(U_LIB)
 
--- a/usr/src/cmd/abi/spectrans/parser/Makefile.targ	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/abi/spectrans/parser/Makefile.targ	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 .KEEP_STATE:
 
@@ -45,6 +46,9 @@
 CERRWARN	+= -_gcc=-Wno-unused-label
 CERRWARN	+= -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 objs/%.o: ../%.c
 	$(COMPILE.c) -o $@ $<
 	$(POST_PROCESS_O)
--- a/usr/src/cmd/abi/spectrans/spec2trace/Makefile.targ	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/abi/spectrans/spec2trace/Makefile.targ	Mon Dec 17 23:44:05 2018 +0000
@@ -26,6 +26,7 @@
 #
 # Copyright 2015 Nexenta Systems, Inc.  All right reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 .KEEP_STATE:
 
@@ -49,3 +50,7 @@
 CERRWARN +=	-_gcc=-Wno-switch
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-unused-label
+
+# not linted
+SMATCH=off
+
--- a/usr/src/cmd/acct/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/acct/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		acctcms acctcom acctcon acctcon1 acctcon2 \
 		acctdisk acctdusg acctmerg accton acctprc acctprc1 \
@@ -92,6 +93,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-address
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 .PARALLEL: $(ALL)
--- a/usr/src/cmd/acct/lib/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/acct/lib/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -19,14 +19,13 @@
 #
 # CDDL HEADER END
 #
-#
 # Copyright (c) 1989 by Sun Microsystems, Inc.
-#
+# Copyright (c) 2018, Joyent, Inc.
 #
 LIBS=	a.a
 
-OBJS=	pnpsplit.o  copyn.o devtolin.o expand.o lintodev.o \
-	namtouid.o tmless.o tmsecs.o uidtonam.o substr.o 
+OBJS=	pnpsplit.o devtolin.o expand.o lintodev.o \
+	namtouid.o tmless.o tmsecs.o uidtonam.o substr.o
 SRCS=	$(OBJS:%.o=%.c)
 
 include	../../Makefile.cmd
@@ -36,6 +35,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-extra
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 .PARALLEL: $(OBJS)
--- a/usr/src/cmd/acpi/acpidump/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/acpi/acpidump/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -27,6 +27,9 @@
 
 CERRWARN += -_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 CPPFLAGS += -I$(SRC)/uts/intel/sys/acpi -DACPI_DUMP_APP
 
 LDLIBS += -ldevinfo
--- a/usr/src/cmd/acpi/acpixtract/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/acpi/acpixtract/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -26,6 +26,9 @@
 
 CERRWARN += -_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 CPPFLAGS += -I$(SRC)/uts/intel/sys/acpi -DACPI_XTRACT_APP
 
 .KEEP_STATE:
--- a/usr/src/cmd/adbgen/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/adbgen/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -25,6 +25,7 @@
 #
 # Copyright 2015 RackTop Systems.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROGS = adbgen1 adbgen3 adbgen4
 OBJS = adbsub.o
@@ -36,6 +37,10 @@
 .KEEP_STATE:
 
 include ../../Makefile.cmd
+include ../../Makefile.targ
+
+# not linted
+SMATCH=off
 
 ROOTADBDIR32	= $(ROOT)/usr/lib/adb
 ROOTADBDIR64	= $(ROOT)/usr/lib/adb/$(MACH64)
@@ -77,5 +82,3 @@
 
 $(ROOTADBDIR64): $(ROOTADBDIR32)
 	$(INS.dir)
-
-include ../../Makefile.targ
--- a/usr/src/cmd/addbadsec/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/addbadsec/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= 		addbadsec
 OBJECTS=	addbadsec.o ix_altsctr.o
@@ -34,6 +35,9 @@
 
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/allocate/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/allocate/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 ETCTSOLFILES =	devalloc_defaults
 
@@ -32,6 +33,9 @@
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-clobbered
 
+# not linted
+SMATCH=off
+
 ROOTSEC =	$(ROOTETC)/security
 ROOTSECDEV =	$(ROOTSEC)/dev
 ROOTSECLIB =	$(ROOTSEC)/lib
--- a/usr/src/cmd/ast/msgcc/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ast/msgcc/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 SHELL=/usr/bin/ksh93
 
@@ -51,6 +52,9 @@
 CERRWARN += -_gcc=-Wno-empty-body
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 LDLIBS += -last
 msgcpp   := LDLIBS += -lpp
 
--- a/usr/src/cmd/audio/audioplay/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/audio/audioplay/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=	audioplay
 
@@ -40,6 +41,8 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-uninitialized
 
+SMOFF += indenting
+
 LINTFLAGS += -m -v -u $(LDFLAGS)
 
 .KEEP_STATE:
--- a/usr/src/cmd/audio/utilities/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/audio/utilities/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# Makefile for C++ Audio Library (libAudio.a) 
+# Copyright (c) 2018, Joyent, Inc.
 
 include ../../Makefile.cmd
 
@@ -37,6 +37,9 @@
 CERRWARN += -_gcc=-Wno-unused-variable
 CERRWARN += -_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 LINTFLAGS += -m -v -u
 
 AR=     /usr/ccs/bin/ar
--- a/usr/src/cmd/auditd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/auditd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 #
 # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG = auditd
 
@@ -39,6 +40,8 @@
 
 CERRWARN += -_gcc=-Wno-parentheses
 
+SMOFF += macros
+
 LDLIBS += -lbsm -lsecdb
 
 OBJS = auditd.o doorway.o queue.o
--- a/usr/src/cmd/auditreduce/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/auditreduce/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -24,7 +24,7 @@
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 TABLEDIR = ../praudit
 
@@ -44,6 +44,9 @@
 CERRWARN += -_gcc=-Wno-uninitialized
 CERRWARN += -_gcc=-Wno-parentheses
 
+# false positives / need cleanup
+SMOFF += indenting,no_if_block,strcpy_overflow
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/awk/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/awk/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -24,6 +24,7 @@
 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 # NOTE: awk is oawk.
 
@@ -42,6 +43,9 @@
 CERRWARN += -_gcc=-Wno-unused-variable
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 #
 # Message catalog
 #
--- a/usr/src/cmd/awk_xpg4/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/awk_xpg4/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -25,6 +25,7 @@
 #
 # cmd/awk_xpg4/Makefile
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 # NOTE: this is nawk in usr/src/cmd/awk_xpg4 to reside as /usr/xpg4/bin/awk
 
@@ -48,6 +49,9 @@
 LDLIBS += -lm
 CLEANFILES= awk.c y.tab.h
 
+# not linted
+SMATCH=off
+
 # for messaging catalog
 
 POFILE= awk_xpg4.po
--- a/usr/src/cmd/backup/Makefile.backup	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/backup/Makefile.backup	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 #
 # cmd/backup/Makefile.backup
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 include $(SRC)/cmd/Makefile.cmd
 
@@ -44,6 +45,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-clobbered
 
+# not linted
+SMATCH=off
+
 UFSROOTETC=		$(ROOT)/etc
 UFSROOTUSR=		$(ROOT)/usr
 UFSROOTUSRLIB=		$(UFSROOTUSR)/lib
--- a/usr/src/cmd/bart/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/bart/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=	bart
 SRCS=	rules.c create.c compare.c main.c lutbl.c
@@ -34,6 +35,8 @@
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+SMOFF +=	indenting
+
 #
 # for messaging catalog
 #
@@ -46,7 +49,7 @@
 
 .KEEP_STATE:
 
-all:	$(PROG) 
+all:	$(PROG)
 
 $(PROG):	$(OBJS)
 	$(CC) -o $(PROG) $(OBJS) $(LDFLAGS) $(LDLIBS)
--- a/usr/src/cmd/bc/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/bc/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= bc
 XPG6PROG= bc
@@ -39,6 +40,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-unused-label
 
+# nothing lintable
+SMATCH=off
+
 $(XPG6EXOBJS) := CFLAGS += -DXPG6
 ROOTLIBB= $(LIBB:%=$(ROOTLIB)/%)
 $(ROOTLIBB) :=	FILEMODE =	$(LIBFILEMODE)
--- a/usr/src/cmd/bdiff/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/bdiff/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright (c) 1989, 1996 by Sun Microsystems, Inc.
 # All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= bdiff 
 
@@ -33,6 +34,9 @@
 CPPFLAGS += -D_FILE_OFFSET_BITS=64
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG) 
--- a/usr/src/cmd/boot/bootadm/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/boot/bootadm/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -25,7 +25,7 @@
 # Copyright 2016 Toomas Soome <tsoome@me.com>
 # Copyright 2016 Nexenta Systems, Inc.
 # Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= bootadm
 
@@ -52,6 +52,8 @@
 CPPFLAGS +=	-D_FILE_OFFSET_BITS=64
 CPPFLAGS +=	-I$(SRC)/uts/common -I$(SRC)/common -I$(SRC)/common/ficl
 
+SMOFF +=	all_func_returns
+
 CSTD=	$(CSTD_GNU99)
 
 LINTFLAGS += -erroff=E_INCONS_ARG_DECL2
--- a/usr/src/cmd/boot/fiocompress/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/boot/fiocompress/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= fiocompress
 
@@ -39,6 +40,8 @@
 CFLAGS +=	-I../../../uts/common
 LINTFLAGS +=	-I../../../uts/common
 
+SMOFF += 	leaks
+
 all: $(PROG)
 
 $(PROG): $(OBJS)
--- a/usr/src/cmd/boot/installgrub/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/boot/installgrub/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -20,7 +20,7 @@
 #
 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
 # Copyright 2015, Nexenta Systems, Inc.
-# 
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= installgrub
 
@@ -40,6 +40,9 @@
 CPPFLAGS += -I$(SRC)/uts/i86pc -I$(SRC)/uts/intel -I$(SRC)/uts/common
 CPPFLAGS += -I$(SRC)/common/util
 
+# not linted
+SMATCH=off
+
 LDLIBS += -lmd5
 
 i386_CFLAGS += -D_LARGEFILE64_SOURCE
--- a/usr/src/cmd/captoinfo/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/captoinfo/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= captoinfo
 
@@ -36,9 +37,12 @@
 CPPFLAGS +=	-I../../lib/libcurses/screen
 CERRWARN +=	-_gcc=-Wno-parentheses
 
+# code is a mess right now
+SMATCH=off
+
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 $(PROG): $(OBJS) $(MAPFILE.INT)
 	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
--- a/usr/src/cmd/cdrw/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cdrw/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= cdrw
 
@@ -42,6 +43,9 @@
 CPPFLAGS +=	-D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(HAL_DBUS_CPPFLAGS)
 LINTFLAGS += 	-um
 
+# not linted
+SMATCH=off
+
 $(ROOTBIN)/cdrw := FILEMODE = 04755
 
 .KEEP_STATE:
@@ -52,7 +56,7 @@
 	$(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS) $(NONLINTLDLIBS) $(CFLAGS)
 	$(POST_PROCESS)
 
-install: all $(ROOTPROG) 
+install: all $(ROOTPROG)
 
 clean:
 	$(RM) $(OBJS)
--- a/usr/src/cmd/cfgadm/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cfgadm/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,11 +23,9 @@
 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#ident	"%Z%%M%	%I%	%E% SMI"
-#
-# cmd/cfgadm/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
-PROG= cfgadm 
+PROG= cfgadm
 
 include ../Makefile.cmd
 
@@ -36,12 +34,14 @@
 
 XGETFLAGS += -a -x cfgadm.xcl
 
-LDLIBS += -lcfgadm 
+LDLIBS += -lcfgadm
 LINTFLAGS += $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) $(LDLIBS)
 
+SMOFF += snprintf_overflow
+
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 install: all $(ROOTUSRSBINPROG)
 	-$(RM) $(ROOTETCPROG)
--- a/usr/src/cmd/cmd-crypto/pktool/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-crypto/pktool/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =	pktool
 
@@ -55,7 +56,10 @@
 CERRWARN += -_gcc=-Wno-uninitialized
 CERRWARN += -_gcc=-Wno-unused-label
 
-LDLIBS +=  -lkmf -lpkcs11 -lcryptoutil 
+# not linted, too much mess, but it should be
+SMATCH=off
+
+LDLIBS +=  -lkmf -lpkcs11 -lcryptoutil
 
 .KEEP_STATE:
 
--- a/usr/src/cmd/cmd-inet/lib/nwamd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/lib/nwamd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,8 +21,7 @@
 #
 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
 #
-# usr/src/cmd/cmd-inet/lib/nwamd/Makefile
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 # Needed for ROOTFS_LIBDIR definition
 include		../../../../lib/Makefile.lib
@@ -60,6 +59,9 @@
 CERRWARN +=	-_gcc=-Wno-switch
 CERRWARN +=	-_gcc=-Wno-unused-label
 
+# not linted
+SMATCH=off
+
 #
 # Instrument with CTF data to ease debugging.
 #
--- a/usr/src/cmd/cmd-inet/sbin/dhcpagent/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/sbin/dhcpagent/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 # Copyright (c) 2016, Chris Fraire <cfraire@me.com>.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 PROG    = dhcpagent
@@ -41,6 +42,9 @@
 CERRWARN += -_gcc=-Wno-switch
 CERRWARN += -_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 #
 # to compile a debug version, do a `make COPTFLAG="-g -XO0"'
 #
--- a/usr/src/cmd/cmd-inet/usr.bin/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.bin/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -24,6 +24,7 @@
 #
 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
 # Copyright 2016 Toomas Soome <tsoome@me.com>
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 PROG=		finger rdate ruptime rwho whois
@@ -34,7 +35,7 @@
 
 SUBDIRS=	chat dns-sd ftp nc nca netstat \
 		pppd pppdump pppstats rdist talk telnet tftp
-SUBDIR1=	talk 
+SUBDIR1=	talk
 MSGSUBDIRS=	nca talk
 
 # As programs get lint-clean, add them here.  Eventually.
@@ -75,6 +76,8 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-unused-function
 
+ruptime :=     SMOFF += leaks
+
 # Eventually just plain CFLAGS should be += -v, but not until all in
 # PROGS are lint clean.
 $(LINTCLEAN)	:=	CFLAGS += $(CCVERBOSE)
@@ -148,7 +151,7 @@
 rlogin: rlogin.o $(COMMONOBJS)
 	$(LINK.c) $@.o $(COMMONOBJS) -o $@ $(LDLIBS)
 	$(POST_PROCESS)
- 
+
 rcp: rcp.o $(COMMONOBJS)
 	$(LINK.c) $@.o $(COMMONOBJS) -o $@ $(LDLIBS)
 	$(POST_PROCESS)
@@ -156,7 +159,7 @@
 rsh: rsh.o $(COMMONOBJS)
 	$(LINK.c) $@.o $(COMMONOBJS) -o $@ $(LDLIBS)
 	$(POST_PROCESS)
- 
+
 $(ROOTSUNWRCP):
 	$(RM) $@; $(SYMLINK) ../bin/rcp $@
 
@@ -177,7 +180,7 @@
 
 clobber: $(SUBDIRS) clobber_local
 clobber_local: clean_local
-	$(RM) $(CLOBBERFILES) 
+	$(RM) $(CLOBBERFILES)
 
 LINTLOCALS=	$(LINTCLEAN:%.c=lint-%)
 
--- a/usr/src/cmd/cmd-inet/usr.bin/chat/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.bin/chat/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -2,6 +2,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 #  Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		chat
 OBJS=		chat.o
@@ -14,6 +15,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-value
 CERRWARN +=	-_gcc=-Wno-trigraphs
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/cmd-inet/usr.bin/dns-sd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.bin/dns-sd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -11,10 +11,9 @@
 
 #
 # Copyright 2017 Toomas Soome <tsoome@me.com>
+# Copyright (c) 2018, Joyent, Inc.
 #
 
-# cmd/cmd-inet/usr.bin/dns-sd/Makefile
-
 PROG=		dns-sd
 
 include ../../../Makefile.cmd
@@ -29,6 +28,9 @@
 CPPFLAGS += -DMDNS_VERSIONSTR_NODTS
 LDLIBS += -lsocket -ldns_sd
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/cmd-inet/usr.bin/ftp/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.bin/ftp/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =		ftp
 DEFAULTFILES =	ftp.dfl
@@ -44,6 +45,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-address
 
+# not linted
+SMATCH=off
+
 LDLIBS +=	-lsocket -lnsl -lgss
 
 # ftp defines its own delete and glob - localize all symbols to prevent a
--- a/usr/src/cmd/cmd-inet/usr.bin/netstat/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.bin/netstat/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -24,7 +24,7 @@
 #
 # Copyright (c) 1990 Mentat Inc.
 #
-# cmd/cmd-inet/usr.bin/netstat/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		netstat
 
@@ -50,9 +50,12 @@
 CERRWARN += -_gcc=-Wno-parentheses
 LDLIBS += -ldhcpagent -lsocket -lnsl -lkstat -ltsnet -ltsol
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
-all: $(PROG) $(NPROG) 
+all: $(PROG) $(NPROG)
 
 ROOTPROG=   $(PROG:%=$(ROOTBIN)/%)
 
--- a/usr/src/cmd/cmd-inet/usr.bin/pppdump/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.bin/pppdump/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -1,6 +1,7 @@
 #
 # Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 PROG=		pppdump
@@ -16,6 +17,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all:		$(PROG)
--- a/usr/src/cmd/cmd-inet/usr.bin/rdist/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.bin/rdist/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/cmd-inet/usr.bin/rdist/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=	rdist
 OBJS=	docmd.o expand.o lookup.o main.o server.o
@@ -55,6 +55,9 @@
 CERRWARN +=	-_gcc=-Wno-clobbered
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 ROOTSYMLINK=	$(ROOT)/usr/ucb/$(PROG)
 
 # conditional assignments
--- a/usr/src/cmd/cmd-inet/usr.bin/talk/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.bin/talk/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=	talk
 OBJS=	talk.o get_names.o display.o io.o ctl.o init_disp.o \
@@ -42,6 +43,9 @@
 CPPFLAGS +=	-DSYSV -DSTRNET -DBSD_COMP
 LDLIBS +=	-lcurses -lsocket -lnsl
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 .PARALLEL: $(OBJS)
--- a/usr/src/cmd/cmd-inet/usr.bin/telnet/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.bin/telnet/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,8 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
+#
 
 PROG=		telnet
 OBJS=		telnet.o commands.o main.o network.o ring.o \
@@ -53,6 +55,9 @@
 LDLIBS +=	-lmech_krb5 
 LDFLAGS +=	$(KRUNPATH) -L$(ROOT)$(KLIBDIR_DO) -L$(ROOT)$(KLIBDIR_GL)
 
+# "missing type for func"
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/cmd-inet/usr.lib/ilbd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.lib/ilbd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -20,6 +20,7 @@
 #
 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 ILBD=		ilbd
 PROG=		$(ILBD)
@@ -53,6 +54,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-unused-label
 
+# not linted
+SMATCH=off
+
 CSTD =      $(CSTD_GNU99)
 
 # I18n
--- a/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		in.ndpd
 OBJS=		config.o main.o ndp.o tables.o trace.o
@@ -59,6 +60,9 @@
 CERRWARN += -_gcc=-Wno-switch
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 CTFCONVERT_HOOK = && $(CTFCONVERT_O)
 CTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
 $(OBJS) := CFLAGS += $(CTF_FLAGS)
--- a/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 SVCMETHOD=	svc-ripng
 MANIFEST=	ripng.xml
@@ -43,6 +44,9 @@
 
 LINTFLAGS +=	$(_D_UNIX98_EXTN)
 
+# not linted
+SMATCH=off
+
 # in.ripngd uses the ancillary data feature which is available only through
 # UNIX 98 standards version of Socket interface. This interface is supposed to
 # be accessed by -lxnet. In addition, -lsocket is used to
--- a/usr/src/cmd/cmd-inet/usr.lib/inetd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.lib/inetd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG	=	inetd
 MANIFEST=	inetd.xml inetd-upgrade.xml
@@ -42,6 +43,8 @@
 CERRWARN += -_gcc=-Wno-switch
 CERRWARN += -_gcc=-Wno-unused-label
 
+SMOFF += kmalloc_wrong_size
+
 LDLIBS    += -lsocket -lnsl -lrestart -lscf -lcontract -linetutil \
 		-lwrap -linetsvc -luutil -lumem -lbsm
 
--- a/usr/src/cmd/cmd-inet/usr.lib/mdnsd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.lib/mdnsd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Use is subject to license terms.
 # Copyright 2016 Toomas Soome <tsoome@me.com>
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		mdnsd
 MANIFEST=	multicast.xml
@@ -43,6 +44,13 @@
 
 include	../../../Makefile.cmd
 
+CERRWARN +=	-_gcc=-Wno-unused-variable
+CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
+CERRWARN +=	-_gcc=-Wno-uninitialized
+
+# not linted
+SMATCH=off
+
 ROOTMANIFESTDIR=	$(ROOTSVCNETWORKDNS)
 $(ROOTMANIFEST)		:= FILEMODE= 444
 
--- a/usr/src/cmd/cmd-inet/usr.lib/pppoe/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.lib/pppoe/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,10 +23,7 @@
 # Copyright 2000-2002 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-# cmd/cmd-inet/usr.lib/pppoe/Makefile
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 include		../../../Makefile.cmd
 
@@ -36,6 +33,9 @@
 
 CPPFLAGS +=	-I$(SRC)/uts/common
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all:		$(PROG)
--- a/usr/src/cmd/cmd-inet/usr.lib/wpad/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.lib/wpad/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =		wpad
 MANIFEST =	wpa.xml
@@ -37,6 +38,8 @@
 
 LINTFLAGS += 	-u
 
+SMOFF += all_func_returns
+
 .KEEP_STATE:
 
 all:		$(PROG)
--- a/usr/src/cmd/cmd-inet/usr.sbin/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.sbin/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 SYNCPROG=	syncinit syncloop syncstat
@@ -109,6 +110,9 @@
 CERRWARN += -_gcc=-Wno-extra
 CERRWARN += -_gcc=-Wno-address
 
+# "missing type for func"
+SMATCH=off
+
 #
 # Message catalog
 #
--- a/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -20,6 +20,7 @@
 #
 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		ilbadm
 
@@ -39,6 +40,9 @@
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 CSTD =	$(CSTD_GNU99)
 
 POFILES =	$(OBJS:%.o=%.po)
--- a/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,8 @@
 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
+#
 
 PROG=		in.rdisc
 MANIFEST=	rdisc.xml
@@ -35,6 +37,9 @@
 CPPFLAGS +=	-DSYSV -DBSD_COMP
 CERRWARN +=	-_gcc=-Wno-extra
 
+# "missing type for func"
+SMATCH =	off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/cmd-inet/usr.sbin/in.routed/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.sbin/in.routed/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -3,6 +3,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 ROUTEDPROG=	in.routed
 ROUTEDOBJS=	common.o if.o input.o main.o output.o parms.o radix.o \
@@ -39,6 +40,9 @@
 CFLAGS +=	$(CCVERBOSE)
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-uninitialized
+# not linted
+SMATCH=off
+
 LDLIBS +=	-lxnet -lmd -lsocket
 CLEAN_FILES +=	$(ROUTEDOBJS) $(RTQUERYOBJS)
 CLOBBERFILES +=	$(ROUTEDPROG) $(RTQUERYPROG)
--- a/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,9 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-
-#
-# cmd/cmd-inet/usr.sbin/ipqosconf/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		ipqosconf
 OBJS=		ipqosconf.o
@@ -55,6 +53,9 @@
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 LDLIBS +=	-lsocket -lnsl -lnvpair -lipp
 
 .KEEP_STATE:
--- a/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		ikeadm ipsecalgs ipsecconf ipseckey ikecert
 SOCKETPROG=	ipsecalgs ipsecconf ipseckey 
@@ -59,6 +60,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-switch
 
+# not linted
+SMATCH=off
+
 CFLAGS += $(XSTRCONST)
 LDLIBS += -lipsecutil -lnsl
 
--- a/usr/src/cmd/cmd-inet/usr.sbin/nwamadm/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.sbin/nwamadm/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,8 +23,7 @@
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#
-# cmd/cmd-inet/usr.sbin/nwamadm/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= nwamadm
 
@@ -36,9 +35,12 @@
 CERRWARN += -_gcc=-Wno-switch
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 install: all $(ROOTUSRSBINPROG)
 
--- a/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -24,7 +24,7 @@
 # Use is subject to license terms.
 # Copyright (c) 2016, Chris Fraire <cfraire@me.com>.
 #
-# cmd/cmd-inet/usr.sbin/nwamcfg/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=	nwamcfg
 OBJS=	nwamcfg.o nwamcfg_lex.o nwamcfg_grammar.tab.o
@@ -44,9 +44,11 @@
 CERRWARN +=	-_gcc=-Wno-unused-label
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
 
+SMOFF += all_func_returns
+
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 $(PROG): $(OBJS)
 	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
--- a/usr/src/cmd/cmd-inet/usr.sbin/snoop/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.sbin/snoop/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 PROG=	snoop
@@ -60,6 +61,9 @@
 CERRWARN += -_gcc=-Wno-unused-label
 CERRWARN += -_gcc=-Wno-unused-function
 
+# we really should have smatch running on this code but...
+SMATCH=off
+
 .KEEP_STATE:
 
 .PARALLEL: $(OBJS)
--- a/usr/src/cmd/cmd-inet/usr.sbin/wificonfig/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cmd-inet/usr.sbin/wificonfig/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		wificonfig	
 OBJS=		wificonfig.o
@@ -37,6 +38,9 @@
 CERRWARN += -_gcc=-Wno-char-subscripts
 CERRWARN += -_gcc=-Wno-parentheses
 
+# needs work
+SMOFF += index_overflow,memcpy_overflow
+
 .KEEP_STATE:
 
 all:	$(PROG)
--- a/usr/src/cmd/cpc/cpustat/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cpc/cpustat/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =		cpustat
 OBJS =		$(PROG).o caps.o time.o setgrp.o strtoset.o
@@ -40,6 +41,9 @@
 CPPFLAGS	+= -D_REENTRANT -I$(SRC)/lib/libcpc/common -I$(STATCOMMONDIR)
 LDLIBS +=	-lcpc -lkstat
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all:	$(PROG)
--- a/usr/src/cmd/cpc/cputrack/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cpc/cputrack/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -22,8 +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.
 
 include	../../../Makefile.cmd
 
@@ -36,6 +35,9 @@
 CFLAGS64 +=	$(CCVERBOSE) $(CTF_FLAGS)
 CPPFLAGS +=	-I$(SRC)/lib/libcpc/common
 
+# not linted
+SMATCH=off
+
 LINTFLAGS +=	-u
 LINTFLAGS64 +=	-u
 
--- a/usr/src/cmd/cpio/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cpio/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= cpio
 
@@ -32,12 +33,15 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 LDLIBS += -lsec -lcmdutils -lnvpair
 XGETFLAGS += -a -x cpio.xcl
 
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 $(PROG): $(OBJS)
 	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
--- a/usr/src/cmd/cron/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cron/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 DEFAULTFILES =	cron.dfl
 
@@ -39,6 +40,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-unused-value
 
+# not linted
+SMATCH=off
+
 ROOTVAR =	$(ROOT)/var
 
 ROOTSPCRON =	$(ROOTVAR)/spool/cron
--- a/usr/src/cmd/csh/i386/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/csh/i386/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -6,7 +6,8 @@
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley Software License Agreement
 # specifies the terms and conditions for redistribution.
-
+#
+# Copyright (c) 2018, Joyent, Inc.
 #
 # C Shell with process control; VM/UNIX VAX Makefile
 # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
@@ -34,6 +35,9 @@
 CERRWARN += -_gcc=-Wno-unused-label
 CERRWARN += -_gcc=-Wno-extra
 
+# "missing type for func"
+SMATCH=off
+
 MAPFILES =	../mapfile-intf $(MAPFILE.NGB)
 LDFLAGS +=	$(MAPFILES:%=-M%)
 
--- a/usr/src/cmd/cxgbetool/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/cxgbetool/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -12,12 +12,16 @@
 #
 # Copyright (c) 2018 by Chelsio Communications, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
+
 PROG =  cxgbetool
 
 include ../Makefile.cmd
 
 CFLAGS += $(CCVERBOSE) -I$(SRC)/uts/common/io/cxgbe/t4nex -I$(SRC)/uts/common/io/cxgbe/firmware
 
+SMOFF += all_func_returns
+
 all: $(PROG)
 
 install: all $(ROOTUSRSBINPROG)
--- a/usr/src/cmd/dc/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/dc/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= dc
 XPG6PROG= dc
@@ -37,6 +38,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(MAPFILE.NGB) $(PROG) $(XPG6)
--- a/usr/src/cmd/devfsadm/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/devfsadm/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 # This target builds both a command (daemon) and various shared objects.  This
 # isn't a typical target, and the inclusion of both library and command
@@ -99,6 +100,9 @@
 CERRWARN += -_gcc=-Wno-char-subscripts
 CERRWARN += -_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 # Define the dependencies required by devfsadm and all shared objects.
 LDLIBS +=		-ldevinfo
 devfsadm :=		LDLIBS += -lgen -lsysevent -lnvpair -lzonecfg -lbsm
--- a/usr/src/cmd/devmgmt/cmds/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/devmgmt/cmds/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 include ../../Makefile.cmd
 
@@ -38,6 +39,8 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-uninitialized
 
+SMOFF += signed
+
 .KEEP_STATE:
 
 .PARALLEL: $(PROG)
--- a/usr/src/cmd/diskscan/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/diskscan/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -20,15 +20,18 @@
 # CDDL HEADER END
 #
 #
-#ident	"%Z%%M%	%I%	%E% SMI"
-#
 # Copyright (c) 1989, 2001 by Sun Microsystems, Inc.
 # All rights reserved.
+#
+# Copyright (c) 2018, Joyent, Inc.
+
 
 PROG= diskscan
 
 include ../Makefile.cmd
 
+SMOFF += leaks
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/dladm/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/dladm/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -18,11 +18,10 @@
 #
 # CDDL HEADER END
 #
-
-#
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		dladm
 ROOTFS_PROG=	$(PROG)
@@ -45,6 +44,8 @@
 CERRWARN +=	-_gcc=-Wno-unused-label
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+SMOFF += snprintf_overflow
+
 # For headers from librstp.
 LINTFLAGS +=	-erroff=E_TRAILING_COMMA_IN_ENUM
 lint :=		ZLAZYLOAD=
--- a/usr/src/cmd/dlstat/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/dlstat/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= dlstat
 
@@ -35,6 +35,9 @@
 CERRWARN += -_gcc=-Wno-unused-variable
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 XGETFLAGS += -a -x $(PROG).xcl
 LDLIBS += -L$(ROOT)/lib
 LDLIBS += -ldladm -lofmt
--- a/usr/src/cmd/dtrace/test/cmd/baddof/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/dtrace/test/cmd/baddof/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 include $(SRC)/cmd/Makefile.cmd
 
@@ -40,6 +41,9 @@
 
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 
+# not linted
+SMATCH=off
+
 $(CMDS) := FILEMODE = 0555
 
 all: $(SRCS)
--- a/usr/src/cmd/dtrace/test/cmd/badioctl/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/dtrace/test/cmd/badioctl/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 include $(SRC)/cmd/Makefile.cmd
 
@@ -40,6 +41,9 @@
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 CERRWARN += -_gcc=-Wno-unused-variable
 
+# not linted
+SMATCH=off
+
 $(CMDS) := FILEMODE = 0555
 
 all: $(SRCS)
--- a/usr/src/cmd/dtrace/test/tst/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/dtrace/test/tst/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 include $(SRC)/cmd/Makefile.cmd
 
@@ -66,6 +67,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-function
 CERRWARN +=	-_gcc=-Wno-unused-variable
 
+# not linted
+SMATCH=off
+
 all: $(EXES)
 
 clean lint:
--- a/usr/src/cmd/ed/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ed/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= ed
 XPG4PROG= ed
@@ -42,6 +43,10 @@
 CERRWARN += -_gcc=-Wno-unused-variable
 CERRWARN += -_gcc=-Wno-unused-function
 CERRWARN += -_gcc=-Wno-uninitialized
+
+# not linted
+SMATCH=off
+
 $(XPG4) := CFLAGS += -DXPG4  
 $(XPG6) := CFLAGS += -DXPG6 -I$(SRC)/lib/libc/inc 
 lint := LDLIBS += -lgen -lcrypt
--- a/usr/src/cmd/eeprom/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/eeprom/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 #	Create default so empty rules don't
@@ -41,6 +42,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
 
+# not linted
+SMATCH=off
+
 LINT_OBJS = $(OBJS:%.o=%.ln)
 SOURCES = $(OBJS:%.o=%.c)
 
--- a/usr/src/cmd/enhance/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/enhance/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,8 +23,7 @@
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= enhance
 
@@ -41,6 +40,8 @@
 
 lint := LINTFLAGS += -ux
 
+SMOFF += all_func_returns
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/eqn/eqn.d/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/eqn/eqn.d/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -2,6 +2,8 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
+#
 
 include		../../Makefile.cmd
 
@@ -35,6 +37,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-label
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all :		$(PROG) 
--- a/usr/src/cmd/eqn/neqn.d/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/eqn/neqn.d/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -2,6 +2,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 include		../../Makefile.cmd
 
@@ -30,6 +31,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-unused-label
 
+# not linted
+SMATCH=off
+
 #
 # for message catalog
 #
--- a/usr/src/cmd/etdump/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/etdump/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -11,6 +11,7 @@
 
 #
 # Copyright 2019 Toomas Soome <tsoome@me.com>
+# Copyright (c) 2019, Joyent, Inc.
 #
 
 PROG=	etdump
@@ -19,6 +20,9 @@
 
 include ../Makefile.cmd
 
+# comes from FreeBSD upstream
+SMOFF += all_func_returns
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/expand/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/expand/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,8 +23,7 @@
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/expand/Makefile 
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		expand  unexpand
 SRCS=		$(PROG:=.c)
@@ -37,9 +36,11 @@
 
 CLOBBERFILES += expand_cmd.c
 
+SMOFF += signed
+
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 install: all $(ROOTPROG)
 
--- a/usr/src/cmd/expr/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/expr/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 #
 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= expr
 XPG4PROG= expr
@@ -38,6 +39,8 @@
 CFLAGS += $(CCVERBOSE)
 CERRWARN += -_gcc=-Wno-uninitialized
 CERRWARN += -_gcc=-Wno-extra
+# "missing type for func"
+SMATCH=off
 $(XPG4) := CFLAGS += -DXPG4
 $(XPG6) := CFLAGS += -DXPG6
 
--- a/usr/src/cmd/exstr/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/exstr/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 #
 #
 # Copyright (c) 1989 by Sun Microsystems, Inc.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 PROG= exstr
@@ -29,9 +30,12 @@
 
 CERRWARN += -_gcc=-Wno-extra
 
+# "missing type for func"
+SMATCH=off
+
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 install: all $(ROOTPROG)
 
--- a/usr/src/cmd/factor/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/factor/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1989 by Sun Microsystems, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= factor
 
@@ -30,6 +31,9 @@
 LDLIBS += -lm
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG) 
--- a/usr/src/cmd/fcinfo/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fcinfo/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 COMMONBASE = ../../common
 
@@ -49,6 +49,9 @@
 
 CERRWARN += -_gcc=-Wno-unused-variable
 
+# not linted
+SMATCH=off
+
 ROOTMANIFESTDIR=	$(ROOTSVCNETWORK)
 
 LDLIBS += -lHBAAPI
--- a/usr/src/cmd/fdformat/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fdformat/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,8 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/fdformat/Makefile
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= fdformat
 
@@ -32,6 +31,9 @@
 LDLIBS +=	-lvolmgt
 LINTFLAGS +=    -um
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 #
@@ -39,7 +41,7 @@
 #
 $(ROOTPROG) := FILEMODE = 04555
 
-all: $(PROG) 
+all: $(PROG)
 
 fdformat: fdformat.c
 	$(LINK.c) -o $@ ./fdformat.c $(LDLIBS)
--- a/usr/src/cmd/fdisk/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fdisk/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,7 +21,7 @@
 #
 # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
 #
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 #       Makefile for fdisk
 
@@ -34,6 +34,9 @@
 
 CPPFLAGS += -D_FILE_OFFSET_BITS=64
 
+# not linted
+SMATCH=off
+
 LDLIBS_i386= -lfdisk
 LDLIBS_sparc=
 LDLIBS += -ladm -lefi $(LDLIBS_$(MACH))
--- a/usr/src/cmd/ficl/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ficl/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -12,6 +12,7 @@
 #
 # Copyright 2016 Toomas Soome <tsoome@me.com>
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= ficl-sys
 OBJS= main.o
@@ -23,6 +24,8 @@
 LDLIBS += -lficl-sys -ltecla -lumem
 CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I$(SRC)/common/ficl
 
+SMOFF += all_func_returns
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/file/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/file/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= file
 XPG4PROG= file
@@ -43,6 +44,9 @@
 CERRWARN += -_gcc=-Wno-uninitialized
 CERRWARN += -_gcc=-Wno-type-limits
 
+# not linted
+SMATCH=off
+
 POFILE= file_all.po
 POFILES= $(SRCS:%.c=%.po)
 
--- a/usr/src/cmd/filesync/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/filesync/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= filesync
 
@@ -35,6 +36,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 FILEMODE= 0555
 
 .KEEP_STATE:
--- a/usr/src/cmd/flowstat/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/flowstat/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=flowstat
 
@@ -38,6 +39,9 @@
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 ROOTCFGDIR=	$(ROOTETC)/dladm
 
 .KEEP_STATE:
--- a/usr/src/cmd/fm/eversholt/Makefile.esc.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fm/eversholt/Makefile.esc.com	Mon Dec 17 23:44:05 2018 +0000
@@ -17,12 +17,12 @@
 # information: Portions Copyright [yyyy] [name of copyright owner]
 #
 # CDDL HEADER END
-# 
 #
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 # Copyright 2018 RackTop Systems.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 FMADIR = $(SRC)/cmd/fm
@@ -51,6 +51,8 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-switch
 
+SMOFF += all_func_returns
+
 CTFCONVO = $(CTFCONVERT_O)
 CTFMRG = $(CTFMERGE) -L VERSION -o $@ $(OBJS)
 
--- a/usr/src/cmd/fm/fmd/Makefile.fmd	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fm/fmd/Makefile.fmd	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 #
 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
 # Copyright 2015 RackTop Systems.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 .KEEP_STATE:
@@ -123,6 +124,9 @@
 CERRWARN += -_gcc=-Wno-unused-variable
 CERRWARN += -_gcc=-Wno-clobbered
 
+# not linted
+SMATCH=off
+
 $(PROG) := LDFLAGS += -R/usr/lib/fm
 $(PROG) := LDLIBS += -L$(ROOTLIB)/fm -ltopo -ldiagcode -lsysevent -lsmbios \
 		-luuid -lnvpair -lexacct -lnsl -lumem -ldevinfo -lfmd_msg
--- a/usr/src/cmd/fm/fmstat/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fm/fmstat/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 .KEEP_STATE:
 .SUFFIXES:
@@ -47,6 +48,8 @@
 LDFLAGS += -R/usr/lib/fm
 LINTFLAGS += -mnu
 
+SMOFF += signed
+
 .NO_PARALLEL:
 .PARALLEL: $(OBJS) $(LINTFILES)
 
--- a/usr/src/cmd/fm/fmtopo/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fm/fmtopo/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -24,7 +24,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.
 
 .KEEP_STATE:
 .SUFFIXES:
@@ -45,6 +45,9 @@
 LDFLAGS += -R/usr/lib/fm
 LINTFLAGS += -mnu
 
+# not linted
+SMATCH=off
+
 .NO_PARALLEL:
 .PARALLEL: $(OBJS) $(LINTFILES)
 
--- a/usr/src/cmd/fm/modules/common/disk-monitor/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fm/modules/common/disk-monitor/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 MODULE = disk-monitor
 CLASS = common
@@ -35,3 +36,6 @@
 LDLIBS += -lsysevent -lnvpair -lsmbios -lcfgadm -ltopo -luutil -lipmi
 LDFLAGS += -L$(ROOT)/usr/lib/fm -R/usr/lib/fm
 CERRWARN += -_gcc=-Wno-uninitialized
+
+# not linted
+SMATCH=off
--- a/usr/src/cmd/fm/modules/common/eversholt/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fm/modules/common/eversholt/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -25,6 +25,7 @@
 #
 # eft.so (the eversholt DE)
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 .KEEP_STATE:
 
@@ -49,6 +50,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 
+# not linted
+SMATCH=off
+
 $(PROG) := LDFLAGS += -R/usr/lib/fm
 $(PROG) := LDLIBS += -L$(ROOTLIB)/fm -ltopo
 
--- a/usr/src/cmd/fm/modules/common/fabric-xlate/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fm/modules/common/fabric-xlate/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 MODULE = fabric-xlate
 CLASS = common
@@ -41,3 +42,6 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-switch
 CERRWARN += -_gcc=-Wno-uninitialized
+
+# not linted
+SMATCH=off
--- a/usr/src/cmd/fm/modules/common/ip-transport/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fm/modules/common/ip-transport/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -24,6 +24,7 @@
 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 MODULE = ip-transport
 CLASS = common
@@ -33,3 +34,6 @@
 
 LDLIBS += -lsocket -lnsl
 CERRWARN += -_gcc=-Wno-uninitialized
+
+# not linted
+SMATCH=off
--- a/usr/src/cmd/fm/modules/common/ses-log-transport/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fm/modules/common/ses-log-transport/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,8 +21,8 @@
 #
 #Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
-   	
 MODULE = ses-log-transport
 CLASS = common
 SRCS = ses_log_transport.c
@@ -33,3 +33,6 @@
 LINTFLAGS += $(INCS)
 LDLIBS += -L$(ROOTLIB)/fm -ltopo -lseslog
 LDFLAGS += -R/usr/lib/fm
+
+# not linted
+SMATCH=off
--- a/usr/src/cmd/fmt/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fmt/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,7 +23,7 @@
 # Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/fmt/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= fmt
 
@@ -37,6 +37,9 @@
 CERRWARN += -_gcc=-Wno-switch
 CERRWARN += -_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/fold/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fold/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -19,12 +19,10 @@
 #
 # CDDL HEADER END
 #
-#
-#ident	"%Z%%M%	%I%	%E% SMI"
-#
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= fold
 
@@ -32,9 +30,11 @@
 
 CFLAGS  += $(CCVERBOSE)
 
+SMOFF += index_overflow
+
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 install: all $(ROOTPROG)
 
--- a/usr/src/cmd/format/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/format/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,7 +23,7 @@
 # Use is subject to license terms.
 #
 # Copyright 2015 Nexenta Systems, Inc. All rights reserved.
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= format
 
@@ -51,6 +51,9 @@
 CERRWARN += -_gcc=-Wno-unused-label
 CERRWARN += -_gcc=-Wno-clobbered
 
+# not linted
+SMATCH=off
+
 SRCS= $(OBJS:.o=.c)
 
 ROOTSYMLINK= $(ROOTETCPROG)
--- a/usr/src/cmd/fs.d/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -19,6 +19,7 @@
 # CDDL HEADER END
 #
 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 # Copyright 2015 Nexenta Systems, Inc. All rights reserved.
 #
 
@@ -87,6 +88,9 @@
 CERRWARN += -_gcc=-Wno-uninitialized
 CERRWARN += -_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 $(DFPROG) :=	LDLIBS += -lcmdutils
 $(SPPROG) :=	LDLIBS += -lkstat
 
--- a/usr/src/cmd/fs.d/autofs/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/autofs/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
 # Copyright 2015 RackTop Systems.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 FSTYPE=		autofs
@@ -98,6 +99,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-label
 CERRWARN +=	-_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 OBJS=		$(AUTOOBJS) $(MOUNTOBJS) $(TYPEOBJS) \
 		$(SHAREOBJS) $(UNSHAREOBJS)
 
--- a/usr/src/cmd/fs.d/hsfs/labelit/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/hsfs/labelit/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1989 by Sun Microsystems, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		hsfs
 LIBPROG=	labelit
@@ -33,6 +34,9 @@
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 CERRWARN += -_gcc=-Wno-unused-variable
 
+# not linted
+SMATCH=off
+
 lint := PROG = $(LIBPROG)
 
 lint:	lint_PROG
--- a/usr/src/cmd/fs.d/hsfs/mount/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/hsfs/mount/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		hsfs
 LIBPROG=	mount
@@ -40,3 +41,6 @@
 include		../../Makefile.mount.targ
 
 CERRWARN +=	-_gcc=-Wno-unused-variable
+
+# not linted
+SMATCH=off
--- a/usr/src/cmd/fs.d/nfs/clear_locks/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/clear_locks/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -20,11 +20,10 @@
 # CDDL HEADER END
 #
 #
-#ident	"%Z%%M%	%I%	%E% SMI"
-#
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= clear_locks
 
@@ -52,9 +51,12 @@
 
 CFLAGS		+=	$(CCVERBOSE)
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 install: all $(ROOTUSRSBINPROG)
 
--- a/usr/src/cmd/fs.d/nfs/dfmounts/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/dfmounts/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1989 by Sun Microsystems, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		nfs
 LIBPROG=	dfmounts
@@ -43,6 +44,9 @@
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
 CERRWARN +=	-_gcc=-Wno-parentheses
 
+# unknown type for func
+SMATCH =	off
+
 $(LIBPROG):	$(OBJS)
 		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
 		$(POST_PROCESS)
--- a/usr/src/cmd/fs.d/nfs/dfshares/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/dfshares/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1989 by Sun Microsystems, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		nfs
 LIBPROG=	dfshares
@@ -37,6 +38,10 @@
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
 CERRWARN +=	-_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
+
 $(LIBPROG):	$(OBJS)
 		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
 		$(POST_PROCESS)
--- a/usr/src/cmd/fs.d/nfs/lockd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/lockd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 #
 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
 # Copyright (c) 2012 by Delphix. All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 FSTYPE	  =	nfs
@@ -45,6 +46,10 @@
 CERRWARN += -_gcc=-Wno-unused-variable
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
+
 $(TYPEPROG):	$(OBJS)
 		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
 		$(POST_PROCESS)
--- a/usr/src/cmd/fs.d/nfs/mount/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/mount/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -19,7 +19,7 @@
 # CDDL HEADER END
 #
 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
-# Copyright 2017, Joyent, Inc. All rights reserved.
+# Copyright 2018, Joyent, Inc. All rights reserved.
 #
 # cmd/fs.d/nfs/mount/Makefile
 
@@ -50,6 +50,9 @@
 CERRWARN += -_gcc=-Wno-address
 CERRWARN += -_gcc=-Wno-unused-function
 
+# unknown type for func
+SMATCH=off
+
 #
 # Message catalog
 #
--- a/usr/src/cmd/fs.d/nfs/mountd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/mountd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE	  =	nfs
 TYPEPROG  =	mountd
@@ -44,6 +45,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-switch
 
+# not linted
+SMATCH=off
+
 $(TYPEPROG):	$(OBJS)
 		$(COMPILE.d) -s $(DSRC) -o $(DOBJ) $(OBJS)
 		$(LINK.c) -o $@ $(DOBJ) $(OBJS) $(LDLIBS)
--- a/usr/src/cmd/fs.d/nfs/nfs4cbd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/nfs4cbd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		nfs
 TYPEPROG=	nfs4cbd
@@ -40,6 +41,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-extra
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all:	$(TYPEPROG)
--- a/usr/src/cmd/fs.d/nfs/nfsd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/nfsd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,7 +21,7 @@
 #
 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
 #
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		nfs
 TYPEPROG=	nfsd
@@ -42,6 +42,9 @@
 CERRWARN +=	-_gcc=-Wno-switch
 CERRWARN +=	-_gcc=-Wno-extra
 
+# not linted
+SMATCH=off
+
 $(TYPEPROG):	$(OBJS)
 		$(CC) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
 		$(POST_PROCESS)
--- a/usr/src/cmd/fs.d/nfs/nfslog/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/nfslog/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		nfs
 TYPEPROG=	nfslogd
@@ -42,6 +43,10 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-switch
 CERRWARN +=	-_gcc=-Wno-type-limits
+
+# not linted
+SMATCH=off
+
 CPPFLAGS += 	-D_FILE_OFFSET_BITS=64
 
 #
--- a/usr/src/cmd/fs.d/nfs/nfsmapid/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/nfsmapid/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,8 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
+
 
 FSTYPE	  =	nfs
 TYPEPROG  =	nfsmapid
@@ -44,6 +46,9 @@
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 all:		$(TYPEPROG) $(TESTPROG)
 
 $(TYPEPROG):	$(OBJS) $(DSRC)
--- a/usr/src/cmd/fs.d/nfs/nfsref/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/nfsref/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/fs.d/nfs/nfsref/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		nfsref
 
@@ -36,6 +36,9 @@
 
 CERRWARN += -_gcc=-Wno-unused-variable
 
+# not linted
+SMATCH=off
+
 LDLIBS += -lreparse -lnvpair -lnsl -lumem
 
 $(PROG):	$(OBJS)
--- a/usr/src/cmd/fs.d/nfs/nfsstat/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/nfsstat/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/fs.d/nfs/nfsstat/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		nfsstat
 
@@ -42,6 +42,10 @@
 
 CPPFLAGS += -I$(STATCOMMONDIR)
 CERRWARN += -_gcc=-Wno-parentheses
+
+# not linted
+SMATCH=off
+
 LDLIBS += -lkstat -lnsl
 
 $(PROG):	$(OBJS)
--- a/usr/src/cmd/fs.d/nfs/rp_basic/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/rp_basic/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 LIBRARY =	libnfs_basic.a
 VERS =		.1
@@ -44,6 +45,9 @@
 CFLAGS +=	$(CCVERBOSE)
 CPPFLAGS +=	-D_REENTRANT -I$(SRC)/cmd/fs.d/nfs/lib
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(LIBS)
--- a/usr/src/cmd/fs.d/nfs/rquotad/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/rquotad/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1989 by Sun Microsystems, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		nfs
 TYPEPROG=	rquotad
@@ -38,6 +39,9 @@
 CERRWARN += -_gcc=-Wno-unused-variable
 LDLIBS += -lnsl
 
+# unknown type for func
+SMATCH=off
+
 $(TYPEPROG):	$(OBJS)
 		$(LINK.c) -o $@ $(LDLIBS) $(OBJS)
 		$(POST_PROCESS)
--- a/usr/src/cmd/fs.d/nfs/showmount/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/showmount/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1989 by Sun Microsystems, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		nfs
 LIBPROG=	showmount
@@ -47,6 +48,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 $(LIBPROG):	$(OBJS)
 		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
 		$(POST_PROCESS)
--- a/usr/src/cmd/fs.d/nfs/statd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/statd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -30,6 +30,7 @@
 #
 # Copyright (c) 2016 by Delphix. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		nfs
 TYPEPROG=	statd
@@ -43,6 +44,9 @@
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 LOCAL=		sm_svc.o sm_proc.o sm_statd.o
 OBJS=		$(LOCAL) selfcheck.o daemon.o smfcfg.o
 
--- a/usr/src/cmd/fs.d/nfs/tests/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/nfs/tests/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,7 +23,7 @@
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/fs.d/nfs/tests/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		nfs
 LIBPROG=	test_svc_tp_create
@@ -35,6 +35,9 @@
 
 CFLAGS += $(CCVERBOSE)
 
+# not linted
+SMATCH=off
+
 LDLIBS +=	-lnsl -lsocket
 
 # message catalog
--- a/usr/src/cmd/fs.d/smbclnt/smbiod-svc/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/smbclnt/smbiod-svc/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,10 +22,7 @@
 #
 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
 #
-
-#
-# cmd/fs.d/smbclnt/smbiod-svc/Makefile
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		smbfs
 TYPEPROG=	smbiod-svc
@@ -42,6 +39,9 @@
 CPPFLAGS += -I$(SRC)/lib/libsmbfs \
 	-I$(SRC)/uts/common/smbclnt -I$(SRC)/uts/common
 
+# not linted
+SMATCH=off
+
 # Debugging
 ${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
 
--- a/usr/src/cmd/fs.d/smbclnt/smbiod/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/smbclnt/smbiod/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 
 #
 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 #
@@ -39,13 +40,14 @@
 CFLAGS += $(CCVERBOSE)
 CSTD= $(CSTD_GNU99)
 
-# This is a multi-thread program but Nevada
-# no longer needs -lthread
 LDLIBS += -lsmbfs -lumem
 
 CPPFLAGS += -I$(SRC)/lib/libsmbfs \
 	-I$(SRC)/uts/common/smbclnt -I$(SRC)/uts/common
 
+# not linted
+SMATCH=off
+
 # Debugging
 ${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
 
--- a/usr/src/cmd/fs.d/smbclnt/smbutil/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/smbclnt/smbutil/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -24,6 +24,7 @@
 # Use is subject to license terms.
 #
 # Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 #
@@ -52,6 +53,9 @@
 CPPFLAGS += -I$(SRC)/lib/libsmbfs \
 	-I$(SRC)/uts/common/smbclnt -I$(SRC)/uts/common
 
+# not linted
+SMATCH=off
+
 # Debugging
 ${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
 
--- a/usr/src/cmd/fs.d/udfs/fsck/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/udfs/fsck/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright (c) 1999 by Sun Microsystems, Inc.
 # All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		udfs
 LIBPROG=	fsck
@@ -40,6 +41,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 OBJS=		$(FSCKOBJS) $(UDFSOBJS)
 SRCS=		$(FSCKSRCS) $(UDFSSRCS) ../mkfs/udfslib.c
 
--- a/usr/src/cmd/fs.d/udfs/fsdb/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/udfs/fsdb/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# Copyright 2017, Joyent Inc.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 FSTYPE=		udfs
@@ -51,6 +51,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-value
 CERRWARN +=	-_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 SRCS=	fsdb.c ud_lib.c
 
 fsdb : fsdb_yacc.o fsdb_lex.o ud_lib.o fsdb.o $(MAPFILES)
--- a/usr/src/cmd/fs.d/udfs/mkfs/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/udfs/mkfs/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright (c) 1999,2001 by Sun Microsystems, Inc.
 # All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		udfs
 LIBPROG=	mkfs
@@ -48,6 +49,9 @@
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 OBJS=		$(MKFSOBJS) $(UDFSOBJS)
 SRCS=		$(OBJS:%.o=%.c)
 
--- a/usr/src/cmd/fs.d/ufs/df/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/ufs/df/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		ufs
 LIBPROG=	df
@@ -40,6 +41,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-label
 CERRWARN +=	-_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 # for messaging catalogue file
 #
 POFILE= df.po
--- a/usr/src/cmd/fs.d/ufs/edquota/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/ufs/edquota/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright (c) 1989,1996 by Sun Microsystems, Inc.
 # All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		ufs
 LIBPROG=	edquota
@@ -37,5 +38,8 @@
 CERRWARN +=	-_gcc=-Wno-parentheses
 lint:		lint_PROG
 
+# not linted
+SMATCH=off
+
 $(ROOTUSRSBIN)/$(LIBPROG):
 		-$(RM) $@; $(SYMLINK) $(LINKVALUE) $@
--- a/usr/src/cmd/fs.d/ufs/ff/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/ufs/ff/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright (c) 1989,1996 by Sun Microsystems, Inc.
 # All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		ufs
 LIBPROG=	ff
@@ -41,6 +42,9 @@
 
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 $(LIBPROG):	$(OBJS)
 		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
 		$(POST_PROCESS)
--- a/usr/src/cmd/fs.d/ufs/fsck/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/ufs/fsck/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		ufs
 LIBPROG=	fsck
@@ -51,6 +52,9 @@
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 $(LIBPROG):	$(OBJS)
 		$(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(CTFMERGE_HOOK)
 		$(POST_PROCESS)
--- a/usr/src/cmd/fs.d/ufs/fsdb/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/ufs/fsdb/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright (c) 1989,2001 by Sun Microsystems, Inc.
 # All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		ufs
 LIBPROG=	fsdb
@@ -37,6 +38,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 SRCS=	$(LIBPROG).c
 
 lint:	lint_SRCS
--- a/usr/src/cmd/fs.d/ufs/fssnap/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/ufs/fssnap/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,8 +21,9 @@
 #
 #
 # Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms. 
+# Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		ufs
 LIBPROG=	fssnap
@@ -43,6 +44,10 @@
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-uninitialized
+
+# not linted
+SMATCH=off
+
 LDLIBS +=	-lkstat -ldevinfo
 
 # message catalog
--- a/usr/src/cmd/fs.d/ufs/labelit/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/ufs/labelit/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -20,12 +20,10 @@
 # CDDL HEADER END
 #
 #
-#ident	"%Z%%M%	%I%	%E% SMI"
-#
 # Copyright (c) 1989,1996,2001 by Sun Microsystems, Inc.
 # All rights reserved.
 #
-# cmd/fs.d/ufs/labelit/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		ufs
 LIBPROG=	labelit
@@ -35,6 +33,9 @@
 
 CPPFLAGS +=	-D_LARGEFILE64_SOURCE
 
+# not linted
+SMATCH=off
+
 lint :=		PROG=$(LIBPROG)
 
 lint:		lint_PROG
--- a/usr/src/cmd/fs.d/ufs/lockfs/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/ufs/lockfs/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -20,12 +20,10 @@
 # CDDL HEADER END
 #
 #
-#ident	"%Z%%M%	%I%	%E% SMI"
-#
 # Copyright (c) 1991,1996,2001 by Sun Microsystems, Inc.
 # All rights reserved.
 #
-# cmd/fs.d/ufs/lockfs/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		ufs
 LIBPROG=	lockfs
@@ -38,6 +36,8 @@
 
 CPPFLAGS +=	-D_LARGEFILE64_SOURCE
 
+SMOFF += all_func_returns
+
 lint:		lint_PROG
 
 $(ROOTUSRSBIN)/$(LIBPROG):
--- a/usr/src/cmd/fs.d/ufs/newfs/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/ufs/newfs/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		ufs
 LIBPROG=	newfs
@@ -38,6 +39,9 @@
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 OBJS=		$(LIBPROG).o $(FSLIB)
 SRCS=		$(LIBPROG).c $(FSLIBSRC)
 
--- a/usr/src/cmd/fs.d/ufs/quot/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/ufs/quot/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -20,12 +20,10 @@
 # CDDL HEADER END
 #
 #
-#ident	"%Z%%M%	%I%	%E% SMI"
-#
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/fs.d/ufs/quot/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		ufs
 LIBPROG=	quot
@@ -40,6 +38,9 @@
 CFLAGS	+=	$(CCVERBOSE)
 LDLIBS	+=	-ladm
 
+# not linted
+SMATCH=off
+
 lint		:=	PROG= $(LIBPROG)
 
 lint:		lint_PROG
--- a/usr/src/cmd/fs.d/ufs/quota/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/ufs/quota/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/fs.d/ufs/quota/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		ufs
 LIBPROG=	quota
@@ -43,6 +43,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 FILEMODE= 04555
 
 $(LIBPROG):	$(OBJS)
--- a/usr/src/cmd/fs.d/ufs/quotacheck/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/ufs/quotacheck/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		ufs
 LIBPROG=	quotacheck
@@ -42,6 +43,9 @@
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
 CERRWARN +=	-_gcc=-Wno-type-limits
 
+# not linted
+SMATCH=off
+
 lint:		lint_PROG
 
 $(FSOBJS): $(FSSRCS)
--- a/usr/src/cmd/fs.d/ufs/quotaon/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/ufs/quotaon/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Use is subject to license terms.
 # Copyright 2015 Nexenta Systems, Inc. All rights reserved.
 #
-# cmd/fs.d/ufs/quotaon/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		ufs
 LIBPROG=	quotaon
@@ -43,6 +43,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 lint:		lint_PROG
 
 $(ROOTLIBFSTYPE)/$(QUOTAOFF):	$(ROOTLIBFSTYPE)/$(LIBPROG) 
--- a/usr/src/cmd/fs.d/ufs/repquota/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/ufs/repquota/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright (c) 1989,1996 by Sun Microsystems, Inc.
 # All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		ufs
 LIBPROG=	repquota
@@ -38,6 +39,9 @@
 CERRWARN +=	-_gcc=-Wno-type-limits
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 lint:		lint_PROG
 
 $(ROOTUSRSBIN)/$(LIBPROG):
--- a/usr/src/cmd/fs.d/ufs/tunefs/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/ufs/tunefs/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright (c) 1989,1996, by Sun Microsystems, Inc.
 # All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		ufs
 LIBPROG=	tunefs
@@ -39,6 +40,9 @@
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 lint:		lint_PROG
 
 $(ROOTUSRSBIN)/$(LIBPROG):	FRC
--- a/usr/src/cmd/fs.d/ufs/volcopy/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fs.d/ufs/volcopy/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 1989,2003 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 FSTYPE=		ufs
 LIBPROG=	volcopy
@@ -34,6 +35,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 LDLIBS += 	-lmapmalloc
 
 # for messaging catalog
--- a/usr/src/cmd/fwflash/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/fwflash/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -21,8 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/fwflash/Makefile.com
-#
+# Copyright (c) 2018, Joyent, Inc.
 #
 # common rules for $SRC/cmd/fwflash
 
@@ -32,6 +31,9 @@
 CERRWARN +=		-_gcc=-Wno-uninitialized
 CERRWARN +=		-_gcc=-Wno-address
 
+# not linted
+SMATCH=off
+
 ROOTUSR=                $(ROOT)/usr
 ROOTUSRINCLD=		$(ROOTUSR)/include
 ROOTUSRINCLDFWFLASH=	$(ROOTUSRINCLD)/fwflash
--- a/usr/src/cmd/gencat/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/gencat/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1989 by Sun Microsystems, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= gencat
 
@@ -33,6 +34,9 @@
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 CERRWARN += -_gcc=-Wno-unused-value
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG) 
--- a/usr/src/cmd/grpck/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/grpck/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1990 by Sun Microsystems, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= grpck
 
@@ -29,6 +30,9 @@
 
 CERRWARN += -_gcc=-Wno-unused-variable
 
+# not linted
+SMATCH=off
+
 RELUSRSBIN=	../usr/sbin
 ROOTSYMLINK=	$(ROOTETC)/$(PROG)
 
--- a/usr/src/cmd/gss/gsscred/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/gss/gsscred/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 SBINPROG = gsscred
 
@@ -46,9 +47,12 @@
 
 COPTFLAG += $(XESS) $(INCDIRS) $(LIBPATH)
 
+# not linted
+SMATCH=off
+
 LDLIBS += -lgss
 
-$(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50 
+$(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50
 
 .KEEP_STATE:
 
--- a/usr/src/cmd/gss/gssd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/gss/gssd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 TESTPROG = gssdtest
 
@@ -37,7 +38,7 @@
 
 GD_OBJS	= gssd_svc.o
 GC_OBJS	= gssd_clnt.o
-G_OBJS	= gssd_xdr.o 
+G_OBJS	= gssd_xdr.o
 GSSDOBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(G_OBJS)
 GSSCOBJS = $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS)
 
@@ -68,13 +69,16 @@
 DIRS=	$(ROOTLIB)
 
 CPPFLAGS += -I$(SRC)/uts/common/gssapi/include
-COPTFLAG += $(XESS) #-I$(KINCDIR) 
+COPTFLAG += $(XESS) #-I$(KINCDIR)
 
 CERRWARN += -_gcc=-Wno-unused-variable
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 LDLIBS += -lgss -lnsl
 
 gssd :=	MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
--- a/usr/src/cmd/iconv/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/iconv/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -11,7 +11,7 @@
 
 #
 # Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
-# Copyright 2017 Joyent Inc.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 PROG=iconv
@@ -31,6 +31,9 @@
 
 CERRWARN +=	-_gcc=-Wno-unused-label
 
+# not linted
+SMATCH=off
+
 CLEANFILES	= $(OBJS) parser.tab.c parser.tab.h
 CLOBBERFILES	= $(PROG) $(POFILE)
 PIFILES		= $(OBJS:%.o=%.i)
--- a/usr/src/cmd/idmap/idmap/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/idmap/idmap/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 #
 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =		idmap
 CLIENTOBJS =	idmap.o idmap_engine.o namemaps.o
@@ -41,6 +42,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-address
 
+# not linted
+SMATCH=off
+
 POFILE = 	$(PROG)_all.po
 LDLIBS +=	-lidmap -ladutils -lsldap -lldap
 FILEMODE =	0555
--- a/usr/src/cmd/idmap/idmapd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/idmap/idmapd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -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.
 
 PROG =		idmapd
 MANIFEST =	idmap.xml
@@ -63,6 +64,9 @@
 CERRWARN +=	-_gcc=-Wno-switch
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 TEXT_DOMAIN =	SUNW_OST_OSLIB
 XGETTEXT =	$(GNUXGETTEXT)
 XGETFLAGS =	--foreign-user --strict -n -E --width=72 \
--- a/usr/src/cmd/init/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/init/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= init 
 ROOTFS_PROG= $(PROG)
@@ -38,6 +39,9 @@
 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
 CLOBBERFILES= $(STATIC)
 
+# needs work
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(ROOTFS_PROG)
--- a/usr/src/cmd/ipf/Makefile.ipf	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ipf/Makefile.ipf	Mon Dec 17 23:44:05 2018 +0000
@@ -22,8 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#cmd/ipf/Makefile.ipf
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 
 LIBIPF=		../../lib/$(MACH)/libipf.a
@@ -41,3 +40,7 @@
 CERRWARN	+= -_gcc=-Wno-parentheses
 CERRWARN	+= -_gcc=-Wno-unused-function
 CERRWARN	+= -_gcc=-Wno-empty-body
+
+# not linted
+SMATCH=off
+
--- a/usr/src/cmd/iscsiadm/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/iscsiadm/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG = iscsiadm
 OBJS = cmdparse.o sun_ima.o iscsiadm_main.o
@@ -43,6 +43,9 @@
 CERRWARN += -_gcc=-Wno-switch
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 FILEMODE= 0555
 
 .KEEP_STATE:
--- a/usr/src/cmd/isns/isnsadm/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/isns/isnsadm/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG = isnsadm
 SRCS = cmdparse.c isnsadm.c isnsadm_msg.c
@@ -40,6 +41,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/isns/isnsd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/isns/isnsd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -25,7 +25,7 @@
 
 #
 # Copyright (c) 2012 by Delphix. All rights reserved.
-# Copyright 2017 Joyent, Inc.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 PROG = isns
@@ -64,6 +64,9 @@
 CERRWARN += -_gcc=-Wno-uninitialized
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 
+# not linted
+SMATCH=off
+
 CLOBBERFILES += $(DTRACE_HEADER)
 
 obj.o := CERRWARN += -erroff=E_CONST_OBJ_SHOULD_HAVE_INITIZR
--- a/usr/src/cmd/keyserv/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/keyserv/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 SBINPROG = keyserv newkey
 BINPROG	= keylogout keylogin domainname chkey
@@ -74,6 +75,9 @@
 CERRWARN +=	-_gcc=-Wno-address
 CERRWARN +=	-_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 LDLIBS +=	-lnsl
 chkey :=	LDLIBS += -lsldap
 keyserv :=	LDLIBS += -lmp
--- a/usr/src/cmd/krb5/kadmin/cli/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/krb5/kadmin/cli/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -2,6 +2,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= kadmin kadmin.local
 SHFILES= k5srvutil
@@ -37,6 +38,8 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-unused-variable
 
+SMATCH=off
+
 COPTFLAG += $(XESS) #-I$(KINCDIR) 
 
 SHAREDLIBS = -lmech_krb5 -lss
--- a/usr/src/cmd/krb5/kadmin/dbutil/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/krb5/kadmin/dbutil/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -2,6 +2,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= kdb5_util
 
@@ -40,6 +41,9 @@
 CERRWARN += -_gcc=-Wno-unused-function
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 
+# not linted
+SMATCH=off
+
 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
 LDLIBS += -L $(ROOT_KLIBDIR) -L $(KRB5LIB) -lkadm5srv -lkdb \
 	-lmech_krb5 -lnsl
--- a/usr/src/cmd/krb5/kadmin/kclient/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/krb5/kadmin/kclient/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Makefile for Kerberos client-install utility.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		ksetpw \
 		kdyndns \
@@ -64,6 +65,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 ksetpw:=	LDFLAGS += $(KRUNPATH)
 kdyndns:=	LDFLAGS += -R/usr/lib/smbsrv
 ksmb:=		LDFLAGS += -R/usr/lib/smbsrv
--- a/usr/src/cmd/krb5/kadmin/kdcmgr/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/krb5/kadmin/kdcmgr/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=	kdcmgr
 KLPROG=	klookup
@@ -37,6 +38,9 @@
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 LDLIBS	+=	-lresolv -lnsl
 
 CLOBBERFILES +=	$(KLPROG)
--- a/usr/src/cmd/krb5/kadmin/kpasswd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/krb5/kadmin/kpasswd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -2,6 +2,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= kpasswd
 
@@ -35,6 +36,9 @@
 CERRWARN += -_gcc=-Wno-unused-variable
 CERRWARN += -_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
 LDLIBS += -L $(KRB5LIBDIR)
 LDLIBS += $(KMECHLIB) $(KCLNTLIB)
--- a/usr/src/cmd/krb5/kadmin/ktutil/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/krb5/kadmin/ktutil/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -2,6 +2,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= ktutil
 
@@ -28,6 +29,9 @@
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 CERRWARN += -_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
 LDLIBS += $(KMECHLIB) $(ROOT)$(KERBLIBDIR)/libss.so
 
--- a/usr/src/cmd/krb5/kadmin/server/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/krb5/kadmin/server/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -2,6 +2,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= kadmind
 MANIFEST=	kadmin.xml
@@ -47,6 +48,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
 LDLIBS += -lgss -L$(KRB5LIB) \
 	-lmech_krb5 -lkadm5srv -lkdb -lnsl -lresolv -lbsm -lpam -lsocket
--- a/usr/src/cmd/krb5/kdestroy/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/krb5/kdestroy/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -2,6 +2,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= kdestroy
 
@@ -15,6 +16,9 @@
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 CERRWARN += -_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 POFILE = kdestroy.po 
 POFILES = generic.po 
 
--- a/usr/src/cmd/krb5/kinit/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/krb5/kinit/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -2,6 +2,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= kinit
 
@@ -17,6 +18,9 @@
 CERRWARN += -_gcc=-Wno-unused-function
 CERRWARN += -_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 POFILE = kinit.po
 POFILES = generic.po
 
--- a/usr/src/cmd/krb5/klist/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/krb5/klist/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -2,7 +2,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= klist
 
@@ -28,6 +28,9 @@
 LDLIBS += $(KMECHLIB)
 CERRWARN += -_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 $(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50 
 
 .KEEP_STATE:
--- a/usr/src/cmd/krb5/kproplog/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/krb5/kproplog/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -2,6 +2,7 @@
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG		=	kproplog
 
@@ -37,6 +38,9 @@
 CERRWARN	+=	-_gcc=-Wno-unused-function
 CERRWARN	+=	-_gcc=-Wno-implicit-function-declaration
 
+# not linted
+SMATCH=off
+
 all:		$(PROG)
 
 $(PROG):	$(OBJS) $(DERIVED_OBJS)
--- a/usr/src/cmd/krb5/krb5kdc/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/krb5/krb5kdc/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -2,6 +2,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= krb5kdc
 MANIFEST=	krb5kdc.xml
@@ -56,6 +57,9 @@
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 CERRWARN += -_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
 LDLIBS += -L$(ROOT_KLIBDIR) -L$(KRB5LIB) \
 	  -lmech_krb5 -lkdb -lkadm5srv -lnsl -lsocket -lbsm -lc
--- a/usr/src/cmd/krb5/kwarn/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/krb5/kwarn/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 TESTPROG = kwarndtest 
 
@@ -56,6 +57,9 @@
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
 CERRWARN +=	-_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 CPPFLAGS += -I../../lib/gss_mechs/mech_krb5/include \
                  -I$(SRC)/lib/gss_mechs/mech_krb5 \
                  -I$(SRC)/lib/gss_mechs/mech_krb5/include \
--- a/usr/src/cmd/krb5/ldap_util/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/krb5/ldap_util/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= kdb5_ldap_util
 
@@ -65,6 +66,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-function
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
 
+# not linted
+SMATCH=off
+
 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
 LDLIBS += -L $(ROOT_KLIBDIR) -L $(KRB5LIB) -lkadm5srv -lkdb -lkdb_ldap \
 	-lmech_krb5
--- a/usr/src/cmd/krb5/slave/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/krb5/slave/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -2,6 +2,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG1=kprop
 PROG2=kpropd
@@ -63,6 +64,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-value
 CERRWARN +=	-_gcc=-Wno-address
 
+# not linted
+SMATCH=off
+
 LDFLAGS +=	$(KRUNPATH) $(KERBRUNPATH)
 LDLIBS +=	-lmech_krb5 -lsocket
 $(PROG1) :=	LDLIBS += -L$(KRB5LIB) -lkadm5srv
--- a/usr/src/cmd/ksh/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ksh/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -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
 
@@ -62,6 +63,9 @@
 pmain.o	:= CERRWARN += -_gcc=-Wno-implicit-function-declaration
 pmain.o	:= CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 %.o:	$(LIBSHELLSRC)/%.c
--- a/usr/src/cmd/ksh/builtins/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ksh/builtins/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,9 +23,9 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-
+# Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
 #
-# Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 PROG= alias
@@ -93,6 +93,9 @@
 FILEMODE= 555
 CERRWARN += -_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/last/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/last/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,8 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/last/Makefile
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= last
 UTMPS= wtmpx
@@ -33,6 +32,9 @@
 
 include ../Makefile.cmd
 
+# not linted
+SMATCH=off
+
 $(ROOTUTMPS):= FILEMODE= 644
 
 $(ROOTADM)/%: %
--- a/usr/src/cmd/ldap/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ldap/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -20,6 +20,7 @@
 #
 #
 # Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 # cmd/ldap/Makefile.com
 # Native LDAP II commands (makestyle clean).
@@ -89,6 +90,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 all:=           TARGET= all
 install:=       TARGET= install
 clean:=         TARGET= clean
--- a/usr/src/cmd/ldapcachemgr/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ldapcachemgr/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=	ldap_cachemgr
 
@@ -55,6 +56,9 @@
 CERRWARN +=	-_gcc=-Wno-switch
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 # Message files
 POFILE=		ldap_cachemgr.po
 POFILES=	${OBJS:%.o=%.po}
--- a/usr/src/cmd/listen/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/listen/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,8 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
+
 PROG= listen nlps_server
 
 DBGOBJ	= doprnt.o
@@ -63,6 +65,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 $(LIBSAFD)/% : %
 	$(INS.file)
 
--- a/usr/src/cmd/loadkeys/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/loadkeys/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= loadkeys dumpkeys
 sparc_SUBDIRS= type_4 type_6 type_101
@@ -42,6 +43,9 @@
 CERRWARN += -_gcc=-Wno-unused-label
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 CLOBBERFILES = $(PROG) loadkeys.c
 
 .KEEP_STATE:
--- a/usr/src/cmd/lockstat/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/lockstat/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= lockstat
 OBJS= lockstat.o sym.o
@@ -33,6 +34,9 @@
 CFLAGS += $(CCVERBOSE)
 CFLAGS64 += $(CCVERBOSE)
 CERRWARN += -_gcc=-Wno-uninitialized
+
+SMOFF += index_overflow
+
 LINTFLAGS += -xerroff=E_SEC_SPRINTF_UNBOUNDED_COPY
 LINTFLAGS64 += -xerroff=E_SEC_SPRINTF_UNBOUNDED_COPY
 
--- a/usr/src/cmd/lofiadm/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/lofiadm/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= lofiadm
 OBJS= main.o utils.o
@@ -30,7 +31,7 @@
 
 SRCS= $(OBJS:%.o=%.c)
 
-POFILES= $(OBJS:%.o=%.po) 
+POFILES= $(OBJS:%.o=%.po)
 
 include ../Makefile.cmd
 
@@ -40,6 +41,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
 
 .KEEP_STATE:
--- a/usr/src/cmd/look/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/look/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1989 by Sun Microsystems, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= look
 DATADIR= dict
@@ -37,6 +38,9 @@
 
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
 
+# not linted
+SMATCH=off
+
 FILEMODE=	755
 
 $(ROOTDATADIR)/$(DATA):= FILEMODE=444
--- a/usr/src/cmd/lp/Makefile.lp	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/lp/Makefile.lp	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 # cmd/lp/Makefile.lp
@@ -97,6 +98,9 @@
 CERRWARN +=	-_gcc=-Wno-extra
 CERRWARN +=	-_gcc=-Wno-address
 
+# not linted
+SMATCH=off
+
 all:=		TARGET= all
 install:=	TARGET= install
 clean:=		TARGET= clean
--- a/usr/src/cmd/lp/lib/filters/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/lp/lib/filters/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 1990-2003 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 LIBRARY	=	liblpflt.a
 
@@ -52,6 +53,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 POFILE =	lp_lib_filters.po
 
 .KEEP_STATE:
--- a/usr/src/cmd/lp/lib/oam/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/lp/lib/oam/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,10 +23,8 @@
 # Copyright 1990-2003 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# ident	"%Z%%M%	%I%	%E% SMI"
-#
-# cmd/lp/lib/oam/Makefile
-#
+# Copyright (c) 2018, Joyent, Inc.
+
 include         ../../Makefile.lp
 
 LIBRARY =		liblpoam.a
@@ -71,6 +69,9 @@
 
 CPPFLAGS =		-I$(LPINC) $(CPPFLAGS.master)
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all install :		$(TXTFILES) $(LIBS)
--- a/usr/src/cmd/luxadm/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/luxadm/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,11 +22,12 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG = luxadm
 
 COBJS = adm.o fchba.o lux_util.o fabric_conf.o
-OBJS_sparc= g_adm.o diag.o fcalupdate.o hotplug.o qlgcupdate.o setboot.o 
+OBJS_sparc= g_adm.o diag.o fcalupdate.o hotplug.o qlgcupdate.o setboot.o
 OBJS_i386 = x86_adm.o errormsgs.o
 OBJS = $(OBJS_$(MACH)) $(COBJS)
 
@@ -42,6 +43,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-label
 CERRWARN +=	-_gcc=-Wno-address
 
+# not linted
+SMATCH=off
+
 sparc_LDLIBS = -la5k -lg_fc -ldevid -lkstat -ldevinfo
 i386_LDLIBS =
 LDLIBS += $($(MACH)_LDLIBS)
--- a/usr/src/cmd/mail/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/mail/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,9 +22,10 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-
+# Copyright (c) 2018, Joyent, Inc.
+#
 
-BINPROG=	mail 
+BINPROG=	mail
 
 PROG= 	       $(BINPROG)
 
@@ -76,6 +77,9 @@
 CERRWARN +=	-_gcc=-Wno-clobbered
 CERRWARN +=	-_gcc=-Wno-extra
 
+# missing type declarations for old-style functions
+SMATCH =	off
+
 LDLIBS +=	-lmail -lsocket
 
 # mail defines its own delete() - reduce symbols to locals to remove name clash.
@@ -104,7 +108,7 @@
 
 .PARALLEL: $(MAILOBJS) $(OBJS)
 
-all:		$(PROG) 
+all:		$(PROG)
 
 mail: 		$(MAILOBJS)
 	$(LINK.c) -o $@ $(MAILOBJS) $(LDLIBS)
@@ -117,7 +121,7 @@
 $(ROOTBIN)/rmail:
 	$(RM) $@; $(SYMLINK) mail $@
 
-lint: 
+lint:
 	$(LINT.c) $(MAILSRC)
 
 clean:
--- a/usr/src/cmd/mailwrapper/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/mailwrapper/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -12,10 +12,11 @@
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Copyright 2014 Alexander Pyhalov
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 
-LIBPROG=	mailwrapper 
+LIBPROG=	mailwrapper
 
 PROG= 	       $(LIBPROG)
 
@@ -49,6 +50,8 @@
 
 LINTFLAGS	+= -erroff=E_FUNC_RET_ALWAYS_IGNOR2
 
+SMOFF += all_func_returns
+
 # conditional assignments
 #
 all:=		TARGET= all
@@ -65,7 +68,7 @@
 
 .PARALLEL: $(MWOBJS) $(OBJS)
 
-all:		$(PROG) 
+all:		$(PROG)
 
 mailwrapper:	$(MWOBJS)
 	$(LINK.c) -o $@ $(MWOBJS) $(LDLIBS)
@@ -75,7 +78,7 @@
 
 # ROOTSYMLINKS
 #
-$(ROOTBIN)/mailq: 
+$(ROOTBIN)/mailq:
 	$(RM) $@; $(SYMLINK) ../lib/mailwrapper $@
 
 $(ROOTLIB)/sendmail:
@@ -90,7 +93,7 @@
 $(ROOTETCMAIL)/%:  %
 	$(INS.file)
 
-lint: 
+lint:
 	$(LINT.c) $(SRCS)
 
 clean:
--- a/usr/src/cmd/mailx/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/mailx/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -68,6 +68,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-clobbered
+# not linted
+SMATCH=off
+
 LINTFLAGS=	-hb
 LDLIBS +=	-lmail -lcustr
 LDFLAGS +=	$(MAPFILE.NGB:%=-M%)
--- a/usr/src/cmd/mandoc/Makefile.common	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/mandoc/Makefile.common	Mon Dec 17 23:44:05 2018 +0000
@@ -79,6 +79,9 @@
 # XXX gcc 4.4.4 false positive
 roff.o :=	CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 CFLAGS +=	$(CC_VERBOSE)
 CSTD=		$(CSTD_GNU99)
 
--- a/usr/src/cmd/mdb/Makefile.mdb	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/mdb/Makefile.mdb	Mon Dec 17 23:44:05 2018 +0000
@@ -109,6 +109,8 @@
 CERRWARN += -_gcc=-Wno-unused-label
 CERRWARN += -_gcc=-Wno-unused-variable
 
+SMOFF += all_func_returns
+
 #
 # -erroff=E_INCONS_ARG_DECL2 works around a problem where lint gets confused
 # about how struct mdb_tgt_gregset is used in mdb_tgt_stack_f() and
--- a/usr/src/cmd/mdb/Makefile.module	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/mdb/Makefile.module	Mon Dec 17 23:44:05 2018 +0000
@@ -23,7 +23,7 @@
 # Use is subject to license terms.
 #
 # Copyright (c) 2013 by Delphix. All rights reserved.
-# Copyright 2015, Joyent, Inc.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 .KEEP_STATE:
@@ -123,6 +123,8 @@
 ASFLAGS			+= -P
 AS_CPPFLAGS		+= -D_ASM
 
+SMOFF += all_func_returns,index_overflow
+
 # Module type-specific compiler flags
 $(MODOBJS) :=			CFLAGS += $(C_BIGPICFLAGS) $(XREGSFLAG)
 $(MODOBJS) :=			CFLAGS64 += $(C_BIGPICFLAGS) $(XREGSFLAG)
--- a/usr/src/cmd/mdb/intel/amd64/ip/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/mdb/intel/amd64/ip/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 MODULE = ip.so
 MDBTGT = kvm
@@ -34,3 +35,6 @@
 include ../../../Makefile.module
 
 CPPFLAGS += -I$(SRC)/uts/common/inet
+
+# needs work
+SMOFF += shift_to_zero
--- a/usr/src/cmd/mdb/intel/ia32/libpython/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/mdb/intel/ia32/libpython/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -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
 
@@ -39,8 +40,17 @@
 
 %.o := CPPFLAGS += $(PYCPPFLAGS)
 %.ln := CPPFLAGS += $(PYLNFLAGS)
+
+#
+# Why these? Well, the pyconfig.h header hard-codes _FILE_OFFSET_BITS
+# to 64, regardless of what we have set here.  GCC quietens this complaint via
+# use of -isystem, but neither lint nor smatch can do that.
+#
 LINTFLAGS += -erroff=E_MACRO_REDEFINED
 
+# not linted
+SMATCH=off
+
 dmod/$(MODULE) := LDLIBS += -lproc
 
 %.o: $(MODSRCS_DIR)/%.c
--- a/usr/src/cmd/mkmsgs/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/mkmsgs/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= mkmsgs
 
@@ -30,9 +31,12 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 install: all $(ROOTPROG)
 
--- a/usr/src/cmd/modload/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/modload/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/modload/Makefile.com
+# Copyright (c) 2018, Joyent, Inc.
 #
 # makefile for loadable module utilities
 
@@ -61,6 +61,9 @@
 
 CERRWARN += -_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 # install specifics
 
 $(ROOTDRVPROG) := FILEMODE = 0555
--- a/usr/src/cmd/more/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/more/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= more
 DATA= more.help
@@ -41,9 +42,12 @@
 CERRWARN += -_gcc=-Wno-uninitialized
 CERRWARN += -_gcc=-Wno-clobbered
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
-all: $(PROG) $(DATA) 
+all: $(PROG) $(DATA)
 
 install: all $(ROOTPROG) $(ROOTLIBDATA)
 	$(RM) $(ROOTBIN)/page
--- a/usr/src/cmd/mpathadm/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/mpathadm/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/mpathadm/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 include ../Makefile.cmd
 
@@ -37,9 +37,12 @@
 
 LINTFLAGS += -xerroff=E_BAD_FORMAT_STR2
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 $(PROG): $(OBJS)
 	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
--- a/usr/src/cmd/ndmpd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ndmpd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -1,5 +1,6 @@
 #
 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 #
@@ -51,6 +52,9 @@
 CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DDEBUG
 CPPFLAGS += -I. -Iinclude
 
+# not linted
+SMATCH=off
+
 CSTD = $(CSTD_GNU99)
 
 # lint does not like unused _umem_*_init
--- a/usr/src/cmd/ndmpstat/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ndmpstat/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -2,6 +2,8 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
+#
 
 #
 # BSD 3 Clause License
@@ -47,6 +49,8 @@
 
 LDLIBS += -lndmp
 
+SMOFF += signed
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/news/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/news/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= news 
 
@@ -32,6 +33,9 @@
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 CERRWARN += -_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG) 
--- a/usr/src/cmd/nl/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/nl/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,8 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
+#
 # Message catalog requires no special processing because messages
 # only occur in ./nl.c, not in ../expr/compile.c.
 
@@ -40,6 +42,10 @@
 CFLAGS += $(CCVERBOSE)
 CERRWARN += -_gcc=-Wno-uninitialized
 CERRWARN += -_gcc=-Wno-unused-variable
+
+# not linted
+SMATCH=off
+
 $(XPG4):= CPPFLAGS += -DXPG4
 
 MAPFILE.INT =	../expr/mapfile-intf
--- a/usr/src/cmd/nlsadmin/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/nlsadmin/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= nlsadmin
 
@@ -31,6 +32,9 @@
 CERRWARN += -_gcc=-Wno-unused-variable
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG) 
--- a/usr/src/cmd/nscd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/nscd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -20,6 +20,7 @@
 #
 #
 # Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 # Makefile for name service cache daemon
 #
@@ -63,6 +64,9 @@
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-type-limits
 
+# not linted
+SMATCH=off
+
 # nscd interposes on many symbols, and must export others for its own dlsym()
 # use, and dlsym() calls from libc.  Itemizing the interfaces within a mapfile
 # is error-prone, so establish the whole object as an interposer.
--- a/usr/src/cmd/nvmeadm/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/nvmeadm/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -29,6 +29,9 @@
 LDLIBS +=	-ldevinfo
 CSTD=	$(CSTD_GNU99)
 
+# error: cannot size expression
+SMATCH=off
+
 all: $(PROG)
 
 $(PROG): $(OBJS)
--- a/usr/src/cmd/oamuser/group/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/oamuser/group/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,8 +23,7 @@
 #
 # Copyright (c) 2013 RackTop Systems.
 #
-# cmd/oamuser/group/Makefile
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 include ../../Makefile.cmd
 
@@ -54,6 +53,9 @@
 CPPFLAGS=	-I$(HERE) -I$(LOCAL) $(CPPFLAGS.master)
 FILEMODE= 	0555
 
+# not linted
+SMATCH=off
+
 $(GROUPADD) :=	OBJS = $(ADD_OBJ)
 $(GROUPADD) :=	LDLIBS += $(LIBUSRGRP) -lcmdutils
 
--- a/usr/src/cmd/oamuser/lib/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/oamuser/lib/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 LIBRARY= 	lib.a
 
@@ -66,6 +67,9 @@
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-type-limits
 CERRWARN +=	-_gcc=-Wno-unused-variable
+# not linted
+SMATCH=off
+
 ARFLAGS=	cr
 AROBJS=		`$(LORDER) $(OBJS) | $(TSORT)`
 LINTFLAGS=	-u
--- a/usr/src/cmd/oamuser/user/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/oamuser/user/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,8 +23,7 @@
 # Copyright (c) 2013 RackTop Systems.
 # Copyright (c) 2013 Gary Mills
 #
-# cmd/oamuser/user/Makefile
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 DEFAULTFILES= useradd.dfl
 
@@ -76,6 +75,9 @@
 CPPFLAGS=	-I$(HERE) -I$(LOCAL) $(CPPFLAGS.master)
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
 
+# not linted
+SMATCH=off
+
 $(INSSBINPROG)  := FILEMODE = 0555
 $(INSSYSADMPROG):= FILEMODE = 0500
 $(INSSKELFILE)  := FILEMODE = 0644
--- a/usr/src/cmd/oawk/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/oawk/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 include		../Makefile.cmd
 
@@ -69,6 +70,9 @@
 CERRWARN +=	-_gcc=-Wno-extra
 CERRWARN +=	-_gcc=-Wno-parentheses
 
+# missing type declarations
+SMATCH =	off
+
 .KEEP_STATE :
 
 all :		$(PROG) $(TXTS)
--- a/usr/src/cmd/passmgmt/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/passmgmt/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 #
 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 
 PROG= 		passmgmt
@@ -42,6 +43,9 @@
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 all: $(PROG) $(TXTS)
 
 XGETFLAGS= -a -x $(PROG).xcl 
--- a/usr/src/cmd/perl/Makefile.targ	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/perl/Makefile.targ	Mon Dec 17 23:44:05 2018 +0000
@@ -11,7 +11,7 @@
 #
 # Copyright (c) 2014 Racktop Systems.
 # Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved.
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 # Link against libc as perl solaris specs
 $(PERLEXT):= LDLIBS += -lc
@@ -26,6 +26,8 @@
 PCFLAGS= -DPERL_EUPXS_ALWAYS_EXPORT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
 	-DPERL_USE_SAFE_PUTENV -D_TS_ERRNO
 
+SMATCH=off
+
 $(MACH):
 	$(INS.dir)
 
--- a/usr/src/cmd/picl/plugins/lib/picld_pluginutil/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/picl/plugins/lib/picld_pluginutil/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 LIBRARY=	libpicld_pluginutil.a
 VERS=		.1
@@ -53,6 +54,9 @@
 CPPFLAGS +=	-I.. -I$(SRC)/lib/libpicl -I$(SRC)/lib/libpicltree
 CFLAGS +=	$(CCVERBOSE)
 CERRWARN +=	-_gcc=-Wno-uninitialized
+
+SMOFF += all_func_returns
+
 CPPFLAGS +=	-D_REENTRANT
 DYNFLAGS +=	$(ZNOLAZYLOAD)
 LDLIBS +=	-L$(SRC)/lib/libpicltree/$(MACH)
--- a/usr/src/cmd/pools/poolcfg/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/pools/poolcfg/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,9 +22,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#ident	"%Z%%M%	%I%	%E% SMI"
-#
-# cmd/pools/poolbind/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =		poolcfg
 OBJS =		poolcfg_lex.o poolcfg_grammar.o
@@ -49,6 +47,9 @@
 XGETFLAGS =	-a
 CLOBBERFILES +=	poolcfg_lex.c poolcfg_grammar.c poolcfg_grammar.h
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/pools/poold/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/pools/poold/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/pools/poold/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =		poold
 OBJS =		poold.o
@@ -87,6 +87,9 @@
 $(BLD_JAVA_8)LINTFLAGS64 += -erroff=E_NAME_USED_NOT_DEF2
 LINTLIBS +=	-L$(LIBPOOL_PATH) -lpool
 
+# not linted
+SMATCH=off
+
 CPPFLAGS +=	$(INCS)
 ROOTCMDDIR =	$(ROOT)/usr/lib/pool
 
--- a/usr/src/cmd/pools/poold/libjkstat/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/pools/poold/libjkstat/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -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 =	libjkstat.a
 VERS =		.1
@@ -42,6 +41,9 @@
 CFLAGS +=	$(CCVERBOSE)
 CPPFLAGS +=	-D_REENTRANT -D_FILE_OFFSET_BITS=64 $(INCS)
 
+# not linted
+SMATCH=off
+
 all: $(LIBS)
 
 lint: lintcheck
--- a/usr/src/cmd/pools/poold/libjlgrp/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/pools/poold/libjlgrp/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -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 =	libjlgrp.a
 VERS =		.1
@@ -42,6 +41,9 @@
 CFLAGS +=	$(CCVERBOSE)
 CPPFLAGS +=	-D_REENTRANT -D_FILE_OFFSET_BITS=64 $(INCS)
 
+# not linted
+SMATCH=off
+
 all: $(LIBS)
 
 lint: lintcheck
--- a/usr/src/cmd/pools/poold/libjpool/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/pools/poold/libjpool/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -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 =	libjpool.a
 VERS =		.1
@@ -42,6 +41,9 @@
 CFLAGS +=	$(CCVERBOSE)
 CPPFLAGS +=	-D_REENTRANT -D_FILE_OFFSET_BITS=64 $(INCS)
 
+# not linted
+SMATCH=off
+
 all: $(LIBS)
 
 lint: lintcheck
--- a/usr/src/cmd/pools/poold/libjsyslog/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/pools/poold/libjsyslog/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -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 =	libjsyslog.a
 VERS =		.1
@@ -42,6 +41,9 @@
 CFLAGS +=	$(CCVERBOSE)
 CPPFLAGS +=	-D_REENTRANT -D_FILE_OFFSET_BITS=64 $(INCS)
 
+# not linted
+SMATCH=off
+
 all: $(LIBS)
 
 lint: lintcheck
--- a/usr/src/cmd/power/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/power/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,8 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/power/Makefile
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 DAEMON_SRCS =	powerd.c sysstat.c
 DAEMON_OBJS =	$(DAEMON_SRCS:%.c=%.o)
@@ -75,14 +74,16 @@
 $(ROOTLIBPOWER) := FILEMODE= 755
 $(ROOTLIBPOWERDAEMON) := FILEMODE= 555
 
-ROOTETCFILES= $(ETCFILES:%=$(ROOTETC)/%) 
-$(ROOTETCFILES) := FILEMODE= 644 
+ROOTETCFILES= $(ETCFILES:%=$(ROOTETC)/%)
+$(ROOTETCFILES) := FILEMODE= 644
 
 #
 # lint pass one enforcement
 #
 CFLAGS += $(CCVERBOSE)
 
+SMOFF += signed
+
 .PARALLEL: $(OBJS)
 
 .KEEP_STATE:
--- a/usr/src/cmd/powertop/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/powertop/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG = powertop
 
@@ -43,6 +44,9 @@
 CFLAGS64	+= $(CCVERBOSE)
 CERRWARN	+= -_gcc=-Wno-parentheses
 CERRWARN	+= -_gcc=-Wno-uninitialized
+
+SMOFF += free
+
 LDLIBS		+= -lcurses -ldtrace -lkstat
 
 FILEMODE	= 0555
--- a/usr/src/cmd/pr/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/pr/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1989 by Sun Microsystems, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= pr
 XPG4PROG= pr
@@ -33,6 +34,8 @@
 
 CERRWARN += -_gcc=-Wno-parentheses
 
+SMOFF += indenting
+
 $(XPG4):= CPPFLAGS += -DXPG4
 $(POFILE) := XGETFLAGS += -a -x pr.xcl
 
--- a/usr/src/cmd/praudit/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/praudit/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -24,7 +24,7 @@
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 XLATEDIR = $(SRC)/lib/libbsm/common
 
@@ -45,6 +45,8 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-uninitialized
 
+SMOFF += signed
+
 LDLIBS += -lbsm -lnsl -lpam -ltsol
 
 .KEEP_STATE:
--- a/usr/src/cmd/prctl/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/prctl/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=	prctl
 
@@ -36,6 +37,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 LDLIBS	+= -lproc -lproject
 
 # Adding this flag to LINTFLAGS did not do anything.  I'm adding this flag
--- a/usr/src/cmd/print/bsd-sysv-commands/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/print/bsd-sysv-commands/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 include		../Makefile.sp
 
@@ -67,6 +67,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 all:	$(BINPROGS) $(SBINPROGS)
 
 #	each program needs common.o as well
--- a/usr/src/cmd/print/conv_fix/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/print/conv_fix/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,8 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/lp/client/conv_fix/Makefile
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 include 	../Makefile.sp
 
@@ -41,11 +40,14 @@
 
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all:		$(PROG)
 
-install:	all $(ROOTLIBPRINTPROG) 
+install:	all $(ROOTLIBPRINTPROG)
 
 $(ROOTLIBPRINT)/%: %
 	$(INS.file)
--- a/usr/src/cmd/print/lpset/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/print/lpset/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,8 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/lp/client/lpset/Makefile
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 include 	../Makefile.sp
 
@@ -39,13 +38,17 @@
 
 CPPFLAGS +=	-I$(NPRTINC)
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
+
+# not linted
+SMATCH=off
+
 LDLIBS +=	$(LIBNPRT) -lsecdb
 
 .KEEP_STATE:
 
 all:		$(PROG)
 
-install:	all $(ROOTBIN) $(ROOTBINPROG) 
+install:	all $(ROOTBIN) $(ROOTBINPROG)
 
 $(ROOTBIN):
 	$(INS.dir)
--- a/usr/src/cmd/print/printer-info/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/print/printer-info/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 include		../Makefile.sp
 
@@ -34,8 +35,6 @@
 ROOTPROG=	$(PROG:%=$(ROOTLIBLPBIN)/%)
 $(ROOTPROG)	:= FILEMODE=555
 
-CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
-
 .KEEP_STATE:
 
 all:		$(PROG)
@@ -46,13 +45,13 @@
 $(ROOTLIBLPBIN)/%:	%
 	$(INS.file)
 
-install:	all $(ROOTLIBLPBIN) $(ROOTPROG) 
+install:	all $(ROOTLIBLPBIN) $(ROOTPROG)
 
 $(PROGRAM):	$(OBJECTS)
 	$(CC) $(CFLAGS) -o $@ $(OBJECTS)
 
 clean:
-	$(RM) $(PROG) *.o 
+	$(RM) $(PROG) *.o
 
 cstyle:
 	cstyle $(SRCS)
--- a/usr/src/cmd/print/printer-info/printer-info.c	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/print/printer-info/printer-info.c	Mon Dec 17 23:44:05 2018 +0000
@@ -24,9 +24,12 @@
  * Use is subject to license terms.
  */
 
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
 #include <sys/ioctl.h>
--- a/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 # Makefile for Java Print Manager server
@@ -86,6 +87,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 LDLIBS +=	-lprint -lnsl -lsocket -lc
 
 CLEANFILES=	*.class $(LINTLIB) $(LINTOUT)
--- a/usr/src/cmd/prtvtoc/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/prtvtoc/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,10 +21,9 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/prtvtoc/Makefile
-#
+# Copyright (c) 2018, Joyent, Inc.
 
-PROG= prtvtoc 
+PROG= prtvtoc
 
 include ../Makefile.cmd
 
@@ -35,9 +34,12 @@
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 install: all $(ROOTUSRSBINPROG) $(ROOTSYMLINK)
 
--- a/usr/src/cmd/ps/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ps/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -22,8 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/ps/Makefile.com
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=	ps
 
@@ -36,6 +35,9 @@
 CFLAGS	+= $(CCVERBOSE)
 LDLIBS += -lproject
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 %.o:	../%.c
--- a/usr/src/cmd/ptools/Makefile.bld	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ptools/Makefile.bld	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG:sh = basename `cd ..; pwd`
 
@@ -56,11 +57,15 @@
 LDLIBS += $(LDLIBS_$(PROG))
 
 CERRWARN_plgrp	+= -_gcc=-Wno-parentheses
+CERRWARN_plgrp	+= -_smatch=off
+
+CERRWARN_pmadvise += -_smatch=off
 
 CERRWARN_ppriv	+= -_gcc=-Wno-parentheses
 CERRWARN_ppriv	+= -_gcc=-Wno-uninitialized
 
 CERRWARN_ptree	+= -_gcc=-Wno-parentheses
+CERRWARN_ptree	+= -_smatch=off
 
 CERRWARN_pstack	+= -_gcc=-Wno-uninitialized
 CERRWARN_pstack	+= -_gcc=-Wno-clobbered
@@ -68,6 +73,8 @@
 CERRWARN_pargs	+= -_gcc=-Wno-clobbered
 CERRWARN_pargs	+= -_gcc=-Wno-type-limits
 
+CERRWARN_pwait	+= -_smatch=off
+
 CERRWARN += $(CERRWARN_$(PROG))
 
 # pargs depends on ../../common/elfcap components
--- a/usr/src/cmd/pwconv/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/pwconv/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,8 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/pwconv/Makefile
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=           pwconv
 
@@ -32,9 +31,11 @@
 FILEMODE=       0555
 RELSBIN=        ../sbin
 
+SMOFF += indenting
+
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 install: all $(ROOTUSRSBINPROG) $(ROOTPROG)
 
@@ -44,5 +45,5 @@
 clean:
 
 lint:   lint_PROG
- 
+
 include ../Makefile.targ
--- a/usr/src/cmd/rcap/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/rcap/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 # Definitions for targets shared by some subdirs, which have
@@ -35,6 +36,8 @@
 CERRWARN += -_gcc=-Wno-uninitialized
 CERRWARN += -_gcc=-Wno-parentheses
 
+SMOFF += strcpy_overflow
+
 %.o: $(COMMON_DIR)/%.c
 	$(COMPILE.c) $<
 %.po: $(COMMON_DIR)/%.c
--- a/usr/src/cmd/rcm_daemon/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/rcm_daemon/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
 # Copyright 2016 Nexenta Systems, Inc.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 include ../../Makefile.cmd
@@ -124,6 +125,9 @@
 CERRWARN += -_gcc=-Wno-uninitialized
 CERRWARN += -_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 MAPFILES = ../common/mapfile-intf $(MAPFILE.NGB)
 rcm_daemon := LDFLAGS += $(MAPFILES:%=-M%)
 
--- a/usr/src/cmd/refer/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/refer/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 include		../Makefile.cmd
 
@@ -50,6 +51,9 @@
 CERRWARN += -_gcc=-Wno-unused-variable
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 CLOBBERFILES += $(PROG3)
 
 addbib.po :=	XGETFLAGS += -a -x addbib.xcl
--- a/usr/src/cmd/regcmp/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/regcmp/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= regcmp 
 
@@ -29,6 +30,8 @@
 
 CERRWARN += -_gcc=-Wno-parentheses
 
+SMOFF += all_func_returns
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/rmformat/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/rmformat/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= rmformat
 
@@ -36,6 +37,9 @@
 
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 LINTFLAGS += -u
 CPPFLAGS += -D_FILE_OFFSET_BITS=64
 
@@ -49,7 +53,7 @@
 	$(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
 	$(POST_PROCESS)
 
-install: all $(ROOTPROG) 
+install: all $(ROOTPROG)
 
 clean:
 	$(RM) $(OBJS)
--- a/usr/src/cmd/rmmount/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/rmmount/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =		rmmount
 LOCAL_OBJS =	rmmount.o
@@ -47,6 +48,9 @@
 CERRWARN += -_gcc=-Wno-unused-function
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/rmvolmgr/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/rmvolmgr/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =		rmvolmgr
 OBJS =		rmm_common.o rmvolmgr.o vold.o
@@ -48,6 +49,9 @@
 CERRWARN += 	-_gcc=-Wno-parentheses
 CERRWARN += 	-_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 ROOTCMDDIR =		$(ROOTLIB)
 ROOTMANIFESTDIR =	$(ROOTSVCSYSTEMFILESYSTEM)
 $(ROOTMANIFEST) :=	FILEMODE = 444
--- a/usr/src/cmd/rpcbind/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/rpcbind/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -24,6 +24,7 @@
 #
 # Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		rpcbind
 MANIFEST=	bind.xml
@@ -46,6 +47,9 @@
 $(RELEASE_BUILD)CPPFLAGS += -DNDEBUG
 LDLIBS += -lsocket -lnsl -lwrap -lscf -lumem
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG) $(SVCMETHOD)
--- a/usr/src/cmd/rpcsvc/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/rpcsvc/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,8 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#
-# cmd/rpcsvc/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 PROTOCOL_DIR= $(ROOT)/usr/include/rpcsvc
 
@@ -64,6 +63,10 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-extra
 CERRWARN += -_gcc=-Wno-unused-function
+
+# not linted
+SMATCH=off
+
 LDLIBS += -lnsl
 rusers :=	CFLAGS += $(CCVERBOSE)
 $(BINPROG) :=	LDLIBS += -lrpcsvc
--- a/usr/src/cmd/sa/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sa/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,8 +23,7 @@
 # Use is subject to license terms.
 # Copyright (c) 2013 Andrew Stormont.  All rights reserved.
 #
-# cmd/sa/Makefile
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 MANIFEST =	sar.xml
 SVCMETHOD =	svc-sar
@@ -36,6 +35,8 @@
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+SMOFF += all_func_returns
+
 GREP=		grep
 
 SADC= 		sadc
--- a/usr/src/cmd/saf/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/saf/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= sac sacadm pmadm
 
@@ -61,6 +62,9 @@
 CERRWARN += -_gcc=-Wno-unused-variable
 CERRWARN += -_gcc=-Wno-extra
 
+# too many untyped funcs
+SMATCH=off
+
 util1.o := CPPFLAGS += -DSAC
 util2.o := CPPFLAGS += -USAC
 
--- a/usr/src/cmd/sasinfo/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sasinfo/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 include ../Makefile.cmd
 
@@ -47,6 +47,8 @@
 
 CERRWARN += -_gcc=-Wno-unused-value
 
+SMOFF += indenting
+
 INCS += -I.
 INCS += -I$(SRC)/lib/smhba/common
 INCS += -I$(SRC)/lib/hbaapi/common
--- a/usr/src/cmd/savecore/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/savecore/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 #
 # Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= savecore
 SRCS= ../savecore.c ../../../uts/common/os/compress.c
@@ -34,6 +35,9 @@
 CFLAGS64 += $(CCVERBOSE)
 CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -DBZ_NO_STDIO -I$(SRC)/uts/common
 
+# not linted
+SMATCH=off
+
 #
 # savecore is compiled with bits from $(SRC)/common/bzip2 and some function
 # symbols there are defined as weak; if you leave them out of
--- a/usr/src/cmd/script/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/script/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= script
 
@@ -30,9 +31,11 @@
 
 CERRWARN += -_gcc=-Wno-unused-variable
 
+SMOFF += all_func_returns
+
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 install: all $(ROOTPROG)
 
--- a/usr/src/cmd/setfacl/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/setfacl/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1993 by Sun Microsystems, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= setfacl
 
@@ -31,11 +32,14 @@
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 LDLIBS += -lsec
 
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 install: all $(ROOTPROG)
 
--- a/usr/src/cmd/sgs/ar/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/ar/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -20,6 +20,7 @@
 #
 #
 # Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 PROG=		ar
@@ -42,6 +43,9 @@
 CSTD=	$(CSTD_GNU99)
 
 CERRWARN +=	-_gcc=-Wno-uninitialized
+
+SMOFF += signed
+
 LDLIBS +=	-lelf $(CONVLIBDIR) $(CONV_LIB) -lsendfile
 LINTFLAGS=	-x
 LINTFLAGS64=	-x
--- a/usr/src/cmd/sgs/crle/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/crle/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		crle
 
@@ -39,6 +40,9 @@
 MAPFILE=	$(MAPFILE.NGB)
 MAPOPT=		$(MAPFILE:%=-M%)
 
+# not linted
+SMATCH=off
+
 CPPFLAGS +=	-I$(SRC)/common/sgsrtcid -I$(SRCBASE)/uts/$(ARCH)/sys \
 		-D__EXTENSIONS__
 LLDFLAGS =	'-R$$ORIGIN/../lib'
--- a/usr/src/cmd/sgs/dump/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/dump/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		dump
 
@@ -43,6 +44,8 @@
 
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+SMOFF += indenting
+
 LDLIBS +=	$(CONVLIBDIR) $(CONV_LIB) $(ELFLIBDIR) -lelf
 LINTFLAGS +=	-x
 LINTSRCS =	$(SRCS)
--- a/usr/src/cmd/sgs/elfdump/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/elfdump/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 
 #
 # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 PROG=		elfdump
@@ -60,6 +61,9 @@
 
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 BLTDEFS =	msg.h
 BLTDATA =	msg.c
 BLTMESG =	$(SGSMSGDIR)/elfdump
--- a/usr/src/cmd/sgs/error/i386/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/error/i386/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -24,6 +24,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		error
 
@@ -43,6 +44,8 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-parentheses
 
+SMOFF += no_if_block,indenting
+
 CLEANFILES +=	$(LINTOUT)
 
 %.o:		../common/%.c
--- a/usr/src/cmd/sgs/gprof/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/gprof/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -22,8 +22,7 @@
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/sgs/gprof/Makefile.com
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		gprof
 
@@ -46,6 +45,10 @@
 LINTSRCS =	$(SRCS)
 LINTFLAGS +=	-x
 CERRWARN +=	-_gcc=-Wno-uninitialized
+
+# not linted
+SMATCH=off
+
 CLEANFILES +=	$(LINTOUTS)
 
 ROOTLIBBLURB=	$(BLURBS:%=$(ROOTSHLIBCCS)/%)
--- a/usr/src/cmd/sgs/ldd/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/ldd/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		ldd
 
@@ -48,6 +49,8 @@
 LINTFLAGS +=	-x
 LINTFLAGS64 +=	-x
 
+SMOFF += or_vs_and
+
 BLTDEFS=        msg.h
 BLTDATA=        msg.c
 BLTMESG=        $(SGSMSGDIR)/ldd
--- a/usr/src/cmd/sgs/ldprof/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/ldprof/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 
 #
 # Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 LIBRARY=	ldprof.a
@@ -47,6 +48,8 @@
 		$(CPPFLAGS.master) -I$(ELFCAP)
 CFLAGS +=	$(C_PICFLAGS)
 
+SMOFF += indenting
+
 lint :=		ZRECORD =
 LDLIBS +=	$(ZRECORD) -lmapmalloc -lc $(DLLIB)
 
--- a/usr/src/cmd/sgs/libconv/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/libconv/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -91,6 +91,9 @@
 CERRWARN	+= -_gcc=-Wno-type-limits
 CERRWARN	+= -_gcc=-Wno-switch
 
+# not linted
+SMATCH=off
+
 CTFCONVERT_O=
 
 README_REVISION=../../packages/common/readme_revision
--- a/usr/src/cmd/sgs/libelf/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/libelf/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 #
 # Copyright 2015 Gary Mills
 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 LIBRARY=	libelf.a
@@ -71,6 +72,8 @@
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+SMOFF += indenting
+
 BUILD.AR=	$(RM) $@ ; \
 		$(AR) q $@ `$(LORDER) $(OBJECTS:%=$(DIR)/%)| $(TSORT)`
 		$(POST_PROCESS_A)
--- a/usr/src/cmd/sgs/libld/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/libld/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 LIBRARY =	libld.a
 VERS =		.4
@@ -94,6 +95,8 @@
 CERRWARN += -_gcc=-Wno-char-subscripts
 CERRWARN += -_gcc=-Wno-type-limits
 
+SMOFF += no_if_block
+
 # Location of the shared relocation engines maintained under usr/src/uts.
 #
 KRTLD_I386 = $(SRCBASE)/uts/$(VAR_PLAT_i386)/krtld
--- a/usr/src/cmd/sgs/nm/amd64/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/nm/amd64/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		nm
 
@@ -43,6 +44,8 @@
 
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+SMOFF += precedence,indenting
+
 LDLIBS +=	$(CONVLIBDIR64) $(CONV_LIB) $(ELFLIBDIR) -lelf
 LINTFLAGS64 +=	-x $(LDLIBS) -m64
 LINTSRCS=	$(SRCS)
--- a/usr/src/cmd/sgs/nm/i386/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/nm/i386/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,8 +21,7 @@
 #
 # Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
 #
-# cmd/sgs/nm/i386/Makefile
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		nm
 XPG4PROG=	nm
@@ -47,6 +46,8 @@
 
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+SMOFF += precedence,indenting
+
 LDLIBS +=	$(CONVLIBDIR) $(CONV_LIB) $(ELFLIBDIR) -lelf
 LINTFLAGS +=	-x $(LDLIBS)
 LINTSRCS=	$(SRCS)
--- a/usr/src/cmd/sgs/prof/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/prof/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -22,8 +22,7 @@
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/sgs/prof/Makefile.com
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		prof
 
@@ -43,6 +42,10 @@
 CFLAGS +=	$(CCVERBOSE)
 CSTD=	$(CSTD_GNU99)
 CERRWARN +=	-_gcc=-Wno-uninitialized
+
+# not linted
+SMATCH=off
+
 LDLIBS +=	$(CONVLIBDIR) $(CONV_LIB) $(ELFLIBDIR) -lelf
 LINTSRCS =	$(SRCS)
 LINTFLAGS +=	-x
--- a/usr/src/cmd/sgs/pvs/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/pvs/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		pvs
 
@@ -48,6 +49,9 @@
 LINTFLAGS +=	-x
 LINTFLAGS64 +=	-x
 
+# not linted
+SMATCH=off
+
 BLTDEFS=	msg.h
 BLTDATA=	msg.c
 BLTMESG=	$(SGSMSGDIR)/pvs
--- a/usr/src/cmd/sgs/rtld/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/rtld/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 RTLD=		ld.so.1
 
@@ -89,6 +90,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-switch
 
+# not linted
+SMATCH=off
+
 # These definitions require that libc be built in the same workspace
 # as the run-time linker and before the run-time linker is built.
 # This is required for the system's self-consistency in any case.
@@ -100,7 +104,7 @@
 		$(CPICLIB) $(CLIB) \
 		$(LDDBGLIBDIR) $(LDDBG_LIB) \
 		$(RTLDLIB) -lrtld \
-		$(LDLIB) $(LD_LIB) 
+		$(LDLIB) $(LD_LIB)
 
 DYNFLAGS +=	-i -e _rt_boot $(VERSREF) $(ZNODLOPEN) \
 		$(ZINTERPOSE) -zdtrace=dtrace_data '-R$$ORIGIN'
--- a/usr/src/cmd/sgs/tools/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/tools/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -18,6 +18,7 @@
 #
 # CDDL HEADER END
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
@@ -66,3 +67,6 @@
 ROOTPROGS=	$(PROGS:%=$(ROOTDIR)/bin/%)
 
 FILEMODE=	0755
+
+# not linted
+SMATCH=off
--- a/usr/src/cmd/sgs/yacc/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sgs/yacc/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		yacc
 
@@ -74,6 +75,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 $(ROOTPROG):= FILEMODE = 0555
 
 ROOTYACCPAR=	$(YACCPAR:%=$(ROOTSHLIBCCS)/%)
--- a/usr/src/cmd/sh/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sh/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 #
 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =		sh
 USR_PROG =	$(PROG)
@@ -45,6 +46,10 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-extra
 CERRWARN += -_gcc=-Wno-unused-variable
+
+# unknown type for func
+SMATCH=off
+
 MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
 LDFLAGS += $(MAPFILES:%=-M%)
 LDLIBS += -lgen
--- a/usr/src/cmd/shcomp/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/shcomp/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -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
 
@@ -63,6 +64,8 @@
 
 CERRWARN +=	-_gcc=-Wno-parentheses
 
+SMOFF +=	all_func_returns
+
 ROOTCMDDIR=$(ROOT)/usr/bin
 
 PROG= shcomp
--- a/usr/src/cmd/smbsrv/smbadm/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/smbsrv/smbadm/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Use is subject to license terms.
 #
 # Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 PROG=	smbadm
@@ -38,6 +39,8 @@
 
 CERRWARN += -_gcc=-Wno-uninitialized
 
+SMOFF += free
+
 all:		$(PROG)
 
 clean:
--- a/usr/src/cmd/smserverd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/smserverd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =	rpc.smserverd
 OBJS =	smediad.o smediad_err.o myaudit.o smed_svc.o smed_xdr.o
@@ -47,6 +48,10 @@
 CFLAGS += $(CCVERBOSE)
 CERRWARN += -_gcc=-Wno-uninitialized
 CERRWARN += -_gcc=-Wno-unused-variable
+
+# not linted
+SMATCH=off
+
 LINTFLAGS += -u
 
 .KEEP_STATE:
--- a/usr/src/cmd/soelim/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/soelim/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1989 by Sun Microsystems, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 include		../Makefile.cmd
 
@@ -33,6 +34,9 @@
 
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
 
+# not linted
+SMATCH=off
+
 all :		$(PROG)
 
 $(PROG) :	soelim.o
--- a/usr/src/cmd/sort/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sort/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 # Debugging targets
@@ -88,6 +89,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 $(XPG4)	:=	CFLAGS += -DXPG4
 
 debug :=	SORT_DEBUG = -g -DDEBUG $(ILDOFF)
--- a/usr/src/cmd/sqlite/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sqlite/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		sqlite
 
@@ -40,6 +41,9 @@
 
 CERRWARN +=	-_gcc=-Wno-empty-body
 
+# not linted
+SMATCH=off
+
 LDLIBS +=	-lsqlite-sys
 
 .KEEP_STATE:
--- a/usr/src/cmd/ssh/etc/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ssh/etc/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 MANIFEST = ssh.xml
 SVCMETHOD = sshd
@@ -46,6 +47,8 @@
 
 $(POFILE):
 
+SMOFF += signed
+
 all lint clean clobber _msg:
 
 install: all $(DIRS) $(ETCSSHFILES) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
--- a/usr/src/cmd/stat/fsstat/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/stat/fsstat/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG = fsstat
 OBJS = fsstat.o
@@ -40,6 +41,8 @@
 
 lint := LINTFLAGS = -muxs -I$(STATCOMMONDIR)
 
+SMOFF += signed
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/stat/vmstat/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/stat/vmstat/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG = vmstat
 OBJS = vmstat.o
@@ -35,6 +36,9 @@
 CERRWARN += -_gcc=-Wno-switch
 CERRWARN += -_gcc=-Wno-uninitialized
 CERRWARN += -_gcc=-Wno-parentheses
+
+SMOFF += signed
+
 FILEMODE= 0555
 
 lint := LINTFLAGS = -muxs -I$(STATCOMMONDIR)
--- a/usr/src/cmd/streams/log/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/streams/log/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=	strace strerr strclean
 
@@ -29,11 +30,13 @@
 CFLAGS += $(CCVERBOSE)
 CERRWARN += -_gcc=-Wno-unused-variable
 
+SMOFF += all_func_returns
+
 FILEMODE= 0555
 
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 install: all $(ROOTUSRSBINPROG)
 	-$(RM) $(ROOTBIN)/strace
--- a/usr/src/cmd/sulogin/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sulogin/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =		sulogin
 ROOTFS_PROG =	$(PROG)
@@ -32,6 +33,9 @@
 
 FILEMODE =	0555
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all:		$(ROOTFS_PROG)
--- a/usr/src/cmd/sunpc/other/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sunpc/other/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 #
 # Copyright (c) 1989 by Sun Microsystems, Inc.
 #
-# cmd/sunpc/other/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= dos2unix unix2dos
 SRCS= ${PROG:%=%.c}
@@ -33,6 +33,9 @@
 CERRWARN += -_gcc=-Wno-uninitialized
 CERRWARN += -_gcc=-Wno-unused-variable
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/svc/startd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/svc/startd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
 # Copyright 2012 Milan Jurik. All rights reserved.
 # Copyright 2016 Toomas Soome <tsoome@me.com>
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 PROG = svc.startd
@@ -72,6 +73,9 @@
 CERRWARN += -_gcc=-Wno-switch
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# these look like real bugs here, but ...
+SMOFF += impossible_mask,signed_integer_overflow_check
+
 $(OBJS) := CPPFLAGS += -D_FILE_OFFSET_BITS=64 -D_REENTRANT
 
 proc.o := CPPFLAGS += -D_REENTRANT
--- a/usr/src/cmd/svc/svccfg/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/svc/svccfg/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,7 +21,7 @@
 
 #
 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
-# Copyright 2017 Joyent, Inc.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 MYPROG =	svccfg
@@ -81,6 +81,9 @@
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 LFLAGS = -t
 YFLAGS = -d
 
--- a/usr/src/cmd/svr4pkg/Makefile.svr4pkg	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/svr4pkg/Makefile.svr4pkg	Mon Dec 17 23:44:05 2018 +0000
@@ -24,6 +24,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 include $(SRC)/cmd/Makefile.cmd
 
@@ -38,6 +39,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-address
 
+# multiple issues in this old code
+SMATCH=off
+
 LIBINST =       $(SRC)/cmd/svr4pkg/libinst/libinst.a
 
 SRCS=           $(OBJS:.o=.c)
--- a/usr/src/cmd/svr4pkg/libinst/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/svr4pkg/libinst/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -24,6 +24,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= libinst.a
 
@@ -68,6 +69,9 @@
 CERRWARN += -_gcc=-Wno-clobbered
 CERRWARN += -_gcc=-Wno-unused-variable
 
+# too many issues
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/swap/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/swap/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/swap/Makefile.com
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=	swap
 OBJS=	$(PROG).o
@@ -35,6 +35,9 @@
 CFLAGS64 +=	$(CCVERBOSE)
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 FILEMODE=02555
 
 CLEANFILES += $(OBJS)
--- a/usr/src/cmd/sysdef/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/sysdef/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=	sysdef
 OBJS=	$(PROG).o sdevinfo.o
@@ -32,6 +33,9 @@
 LDLIBS	+= -ldevinfo -lelf
 CERRWARN += -_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 FILEMODE= 02555
 
 CLEANFILES += $(OBJS)
--- a/usr/src/cmd/syslogd/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/syslogd/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= 		syslogd
 ROTATESCRIPT=	newsyslog
@@ -35,6 +36,10 @@
 
 $(PROG) lint 	:= LDLIBS += -lscf -lnsl
 CERRWARN	+= -_gcc=-Wno-uninitialized
+
+# not linted
+SMATCH=off
+
 CPPFLAGS	+= -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
 CFLAGS		+= -DNDEBUG
 
--- a/usr/src/cmd/tabs/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/tabs/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= tabs
 
@@ -33,6 +34,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-address
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/tail/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/tail/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -11,6 +11,7 @@
 
 #
 # Copyright 2010 Chris Love.  All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 
@@ -29,6 +30,8 @@
 C99LMODE=	-Xc99=%all
 LINTFLAGS +=	-I. -erroff=E_CONSTANT_CONDITION
 
+SMOFF += leaks
+
 # install rules
 $(ROOTINC)/% : %
 	$(INS.file)
@@ -37,7 +40,7 @@
 
 .PARALLEL: $(OBJS)
 
-all:		$(PROG) 
+all:		$(PROG)
 
 $(PROG):	$(OBJS)
 	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
--- a/usr/src/cmd/tar/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/tar/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -20,6 +20,7 @@
 #
 #
 # Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 PROG= tar
@@ -39,6 +40,9 @@
 CFLAGS += $(CCVERBOSE)
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 CPPFLAGS += -DEUC
 
 ROOTSYMLINK=	$(ROOTPROG)
--- a/usr/src/cmd/tbl/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/tbl/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1989 by Sun Microsystems, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 include		../Makefile.cmd
 
@@ -41,6 +42,9 @@
 CERRWARN	+= -_gcc=-Wno-uninitialized
 CERRWARN	+= -_gcc=-Wno-char-subscripts
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE :
 
 all :		$(PROG)
--- a/usr/src/cmd/tcopy/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/tcopy/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1990 by Sun Microsystems, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =		tcopy
 
@@ -32,6 +33,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-extra
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE :
 
 all:		$(PROG) 
--- a/usr/src/cmd/tcpd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/tcpd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -4,6 +4,7 @@
 #
 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		safe_finger tcpd tcpdchk tcpdmatch try-from
 
@@ -29,6 +30,9 @@
 CERRWARN +=	-_gcc=-Wno-return-type
 CERRWARN +=	-_gcc=-Wno-clobbered
 
+# not linted
+SMATCH=off
+
 # Various components must export interfaces, but also contain name-space
 # clashes with system libraries.
 MAPFILE.INT.D=	$(MAPFILE.NGB) mapfile-intf-tcpdchk
--- a/usr/src/cmd/tnf/prex/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/tnf/prex/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -24,8 +24,7 @@
 # Copyright 1989,2003 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/tnf/prex/Makefile.com
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		prex
 
@@ -72,6 +71,9 @@
 CERRWARN +=	-_gcc=-Wno-parentheses
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 .PARALLEL: $(OBJS)
--- a/usr/src/cmd/tnf/tnfxtract/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/tnf/tnfxtract/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 1994, 2002 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		tnfxtract
 
@@ -38,6 +39,9 @@
 LDLIBS +=	-lkvm
 CERRWARN +=	-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/tput/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/tput/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= tput
 
@@ -35,6 +36,9 @@
 XGETFLAGS += -a -x tput.xcl
 LDLIBS +=  -lcurses
 
+# not linted
+SMATCH=off
+
 all: $(PROG)
 
 install: all $(ROOTPROG)
--- a/usr/src/cmd/truss/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/truss/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -23,8 +23,7 @@
 # Copyright (c) 2016 by Delphix. All rights reserved.
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
-#
-# cmd/truss/Makefile.com
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 PROG=	truss
@@ -42,6 +41,9 @@
 CERRWARN	+= -_gcc=-Wno-uninitialized
 CERRWARN	+= -_gcc=-Wno-switch
 
+# not linted
+SMATCH=off
+
 CSTD=	$(CSTD_GNU99)
 
 LDLIBS	+= -lproc -lrtld_db -lc_db -lnsl -lsocket -ltsol -lnvpair
--- a/usr/src/cmd/tsol/tnd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/tsol/tnd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= tnd
 OBJS= tnd.o
@@ -47,6 +48,8 @@
 CERRWARN += -_gcc=-Wno-unused-value
 CERRWARN += -_gcc=-Wno-parentheses
 
+SMOFF += no_if_block
+
 .KEEP_STATE:
 
 all:	$(PROG)
--- a/usr/src/cmd/ttymon/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ttymon/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= stty ttymon ttyadm sttydefs
 XPG4PROG= stty
@@ -78,6 +79,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-extra
 
+# not linted
+SMATCH=off
+
 #
 # Message catalog
 #
--- a/usr/src/cmd/units/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/units/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1989 by Sun Microsystems, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= units
 UNITTAB=unittab
@@ -31,6 +32,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 
+# not linted
+SMATCH=off
+
 LIBUNITTAB= $(UNITTAB:%=$(ROOTSHLIB)/%)
 $(LIBUNITTAB) :=	FILEMODE =	$(LIBFILEMODE)
 
--- a/usr/src/cmd/unlink/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/unlink/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= unlink
 
@@ -30,9 +31,12 @@
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 CERRWARN += -_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 install: all $(ROOTUSRSBINPROG)
 	-$(RM) $(ROOTETCPROG)
--- a/usr/src/cmd/utmpd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/utmpd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= utmpd
 DEFAULTFILES= utmpd.dfl
@@ -34,6 +35,8 @@
 
 FILEMODE = 555
 
+SMOFF += signed
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/vgrind/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/vgrind/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/vgrind/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 # These are the objects associated with the overall vgrind command.
@@ -66,6 +66,9 @@
 CERRWARN += -_gcc=-Wno-unused-variable
 CERRWARN += -_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 #
 # Message catalog
 #
--- a/usr/src/cmd/vi/misc/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/vi/misc/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 1989 by Sun Microsystems, Inc.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 CFLAGS += v
 
@@ -36,7 +37,7 @@
 POFILES= $(SRCS:%.c=%.po)
 
 include ../../Makefile.cmd
-$(XPG4) := CFLAGS += -DXPG4 
+$(XPG4) := CFLAGS += -DXPG4
 
 CERRWARN += -_gcc=-Wno-char-subscripts
 CERRWARN += -_gcc=-Wno-parentheses
@@ -44,6 +45,9 @@
 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 CERRWARN += -_gcc=-Wno-unused-variable
 
+# way too old
+SMATCH=off
+
 POFILE= misc.po
 
 CLOBBERFILES += $(OTHERPROGS)
--- a/usr/src/cmd/vi/port/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/vi/port/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 # cmd/vi/port/Makefile
 
@@ -61,6 +62,9 @@
 CERRWARN += -_gcc=-Wno-uninitialized
 CERRWARN += -_gcc=-Wno-address
 
+# way too old
+SMATCH=off
+
 #
 # For message catalogue files
 #
--- a/usr/src/cmd/volcheck/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/volcheck/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =		volcheck
 LOCAL_OBJS =	volcheck.o
@@ -47,6 +48,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/volrmmount/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/volrmmount/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =		volrmmount
 LOCAL_OBJS =	volrmmount.o
@@ -47,6 +48,9 @@
 CERRWARN +=	-_gcc=-Wno-uninitialized
 CERRWARN +=	-_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/vscan/vscand/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/vscan/vscand/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG = vscand
 SRCS =	vs_main.c	\
@@ -46,6 +47,9 @@
 
 CERRWARN += -_gcc=-Wno-switch
 
+# not linted
+SMATCH=off
+
 LINTFLAGS += -mu
 CSTD =       $(CSTD_GNU99)
 C99LMODE =      -Xc99=%all
--- a/usr/src/cmd/wall/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/wall/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,7 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# Copyright 2012 Joyent, Inc. All Rights Reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 PROG= wall
@@ -34,9 +34,11 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-uninitialized
 
+SMOFF += leaks
+
 .KEEP_STATE:
 
-all: $(PROG) 
+all: $(PROG)
 
 install: all $(ROOTUSRSBINPROG)
 	-$(RM) $(ROOTETCPROG)
--- a/usr/src/cmd/whodo/amd64/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/whodo/amd64/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=	whodo
 
@@ -35,6 +36,8 @@
 CFLAGS64	+= $(CCVERBOSE)
 CERRWARN	+= -_gcc=-Wno-parentheses
 
+SMOFF += strcpy_overflow
+
 FILEMODE= 04555
 
 .KEEP_STATE:
--- a/usr/src/cmd/write/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/write/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,7 +21,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# cmd/write/Makefile
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= write
 
@@ -38,6 +38,8 @@
 CFLAGS += $(CCVERBOSE)
 CERRWARN += -_gcc=-Wno-unused-variable
 
+SMOFF += all_func_returns
+
 all: $(PROG)
 
 install: all $(ROOTPROG)
--- a/usr/src/cmd/xargs/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/xargs/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= 			xargs
 # /usr/xpg6/bin/xargs is a symlink to /usr/bin/xargs
@@ -38,6 +39,9 @@
 
 CERRWARN += -_gcc=-Wno-parentheses
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/ypcmd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ypcmd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2015 Gary Mills
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 BINPROG = ypmatch ypwhich ypcat
@@ -153,6 +154,9 @@
 CERRWARN +=	-_gcc=-Wno-address
 CERRWARN +=	-_gcc=-Wno-unused-function
 
+# too many unknown types
+SMATCH =	off
+
 #conditional assignments
 ypalias.o :=	CPPFLAGS= -DMAIN $(CPPFLAGS.master)
 makedbm.o :=	CPPFLAGS= $(CPPFLAGS.master)
--- a/usr/src/cmd/ypcmd/mknetid/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ypcmd/mknetid/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 1994, 2002 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG = mknetid
 
@@ -37,6 +38,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-unused-function
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG) 
--- a/usr/src/cmd/ypcmd/revnetgroup/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ypcmd/revnetgroup/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -23,6 +23,7 @@
 # Copyright 1996, 2002 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG = revnetgroup
 
@@ -36,6 +37,9 @@
 CERRWARN += -_gcc=-Wno-parentheses
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
@@ -46,7 +50,7 @@
 
 install: all $(ROOTUSRSBINPROG)
 
-clean: 
+clean:
 	$(RM) $(OBJS)
 
 lint:
--- a/usr/src/cmd/ypcmd/yppasswd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ypcmd/yppasswd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 #
 # Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 NETYPPROG =	rpc.yppasswdd
 DEFAULTFILES =	yppasswdd.dfl
@@ -60,6 +61,9 @@
 CERRWARN +=		-_gcc=-Wno-parentheses
 CERRWARN +=		-_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 #
 # Objects shared between all the major components
 #
--- a/usr/src/cmd/ypcmd/ypupdated/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ypcmd/ypupdated/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 NETYPPROG =	rpc.ypupdated
 PROG =		$(NETYPPROG)
@@ -55,6 +56,9 @@
 CERRWARN +=		-_gcc=-Wno-implicit-function-declaration
 CERRWARN +=		-_gcc=-Wno-unused-variable
 
+# not linted
+SMATCH=off
+
 CLOBBERFILES += ypupdated_prot.h
 
 #conditional assignments
--- a/usr/src/cmd/zdb/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/zdb/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -23,7 +23,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 # Copyright (c) 2012 by Delphix. All rights reserved.
-# Copyright 2017 Joyent, Inc.
+# Copyright (c) 2018, Joyent, Inc.
 # Copyright 2017 RackTop Systems.
 #
 
@@ -54,6 +54,8 @@
 CERRWARN += -_gcc=-Wsign-compare
 CERRWARN += -_gcc=-Wmissing-field-initializers
 
+SMOFF += 64bit_shift,all_func_returns
+
 # lint complains about unused _umem_* functions
 LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
 LINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2
--- a/usr/src/cmd/zlogin/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/zlogin/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 #
 # Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG = zlogin
 
@@ -33,6 +34,9 @@
 
 CERRWARN += -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 all: $(PROG)
--- a/usr/src/cmd/zonecfg/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/zonecfg/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=	zonecfg
 OBJS=	zonecfg.o zonecfg_lex.o zonecfg_grammar.tab.o
@@ -46,6 +47,8 @@
 CERRWARN +=	-_gcc=-Wno-unused-variable
 CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
 
+SMOFF += all_func_returns
+
 CLOBBERFILES += $(PROG).ln
 
 .KEEP_STATE:
--- a/usr/src/cmd/zonestat/zonestat/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/zonestat/zonestat/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 #
 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG =		zonestat
 SRCS =		zonestat.c
@@ -33,6 +34,9 @@
 
 CERRWARN	+= -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 .PARALLEL:
--- a/usr/src/cmd/zonestat/zonestatd/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/zonestat/zonestatd/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -21,6 +21,7 @@
 #
 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 MANIFEST =	zonestat.xml
 SVCMETHOD =	svc-zonestat
@@ -42,6 +43,9 @@
 CERRWARN 	+= -_gcc=-Wno-unused-label
 CERRWARN 	+= -_gcc=-Wno-uninitialized
 
+# not linted
+SMATCH=off
+
 OBJS =		$(SRCS:%.c=%.o)
 
 .KEEP_STATE:
--- a/usr/src/cmd/zstreamdump/Makefile	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/zstreamdump/Makefile	Mon Dec 17 23:44:05 2018 +0000
@@ -22,6 +22,7 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG=		zstreamdump
 OBJS=		zstreamdump.o
@@ -47,6 +48,9 @@
 
 CERRWARN += -_gcc=-Wno-switch
 
+# not linted
+SMATCH=off
+
 .KEEP_STATE:
 
 .PARALLEL:
--- a/usr/src/cmd/ztest/Makefile.com	Mon Dec 17 21:44:38 2018 +0000
+++ b/usr/src/cmd/ztest/Makefile.com	Mon Dec 17 23:44:05 2018 +0000
@@ -22,7 +22,7 @@
 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
 # Copyright (c) 2012, 2016 by Delphix. All rights reserved.
 # Copyright 2017 RackTop Systems.
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 PROG= ztest
 OBJS= $(PROG).o
@@ -57,6 +57,9 @@
 
 CERRWARN += -_gcc=-Wno-switch
 
+# false positive
+SMOFF += signed
+
 .KEEP_STATE:
 
 all: $(PROG)