summaryrefslogtreecommitdiff
path: root/usr/src/cmd/fs.d
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2018-12-17 23:44:05 +0000
committerRobert Mustacchi <rm@joyent.com>2019-01-14 19:06:48 +0000
commit5661bb7641e85c46713da7a3002b29ecd2c3daf0 (patch)
treee0d0a4ec2e103c5c62feb664509414cd03f9f24e /usr/src/cmd/fs.d
parent05ede3db5e3b7d540afbccdc872c735770e82ef3 (diff)
downloadillumos-joyent-5661bb7641e85c46713da7a3002b29ecd2c3daf0.tar.gz
10080 smatch Makefile changes for usr/src/cmd
Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/cmd/fs.d')
-rw-r--r--usr/src/cmd/fs.d/Makefile4
-rw-r--r--usr/src/cmd/fs.d/autofs/Makefile4
-rw-r--r--usr/src/cmd/fs.d/hsfs/labelit/Makefile4
-rw-r--r--usr/src/cmd/fs.d/hsfs/mount/Makefile4
-rw-r--r--usr/src/cmd/fs.d/nfs/clear_locks/Makefile8
-rw-r--r--usr/src/cmd/fs.d/nfs/dfmounts/Makefile4
-rw-r--r--usr/src/cmd/fs.d/nfs/dfshares/Makefile5
-rw-r--r--usr/src/cmd/fs.d/nfs/lockd/Makefile5
-rw-r--r--usr/src/cmd/fs.d/nfs/mount/Makefile5
-rw-r--r--usr/src/cmd/fs.d/nfs/mountd/Makefile4
-rw-r--r--usr/src/cmd/fs.d/nfs/nfs4cbd/Makefile4
-rw-r--r--usr/src/cmd/fs.d/nfs/nfsd/Makefile5
-rw-r--r--usr/src/cmd/fs.d/nfs/nfslog/Makefile5
-rw-r--r--usr/src/cmd/fs.d/nfs/nfsmapid/Makefile5
-rw-r--r--usr/src/cmd/fs.d/nfs/nfsref/Makefile5
-rw-r--r--usr/src/cmd/fs.d/nfs/nfsstat/Makefile6
-rw-r--r--usr/src/cmd/fs.d/nfs/rp_basic/Makefile.com4
-rw-r--r--usr/src/cmd/fs.d/nfs/rquotad/Makefile4
-rw-r--r--usr/src/cmd/fs.d/nfs/showmount/Makefile4
-rw-r--r--usr/src/cmd/fs.d/nfs/statd/Makefile4
-rw-r--r--usr/src/cmd/fs.d/nfs/tests/Makefile5
-rw-r--r--usr/src/cmd/fs.d/smbclnt/smbiod-svc/Makefile8
-rw-r--r--usr/src/cmd/fs.d/smbclnt/smbiod/Makefile6
-rw-r--r--usr/src/cmd/fs.d/smbclnt/smbutil/Makefile4
-rw-r--r--usr/src/cmd/fs.d/udfs/fsck/Makefile4
-rw-r--r--usr/src/cmd/fs.d/udfs/fsdb/Makefile5
-rw-r--r--usr/src/cmd/fs.d/udfs/mkfs/Makefile4
-rw-r--r--usr/src/cmd/fs.d/ufs/df/Makefile4
-rw-r--r--usr/src/cmd/fs.d/ufs/edquota/Makefile4
-rw-r--r--usr/src/cmd/fs.d/ufs/ff/Makefile4
-rw-r--r--usr/src/cmd/fs.d/ufs/fsck/Makefile4
-rw-r--r--usr/src/cmd/fs.d/ufs/fsdb/Makefile4
-rw-r--r--usr/src/cmd/fs.d/ufs/fssnap/Makefile7
-rw-r--r--usr/src/cmd/fs.d/ufs/labelit/Makefile7
-rw-r--r--usr/src/cmd/fs.d/ufs/lockfs/Makefile6
-rw-r--r--usr/src/cmd/fs.d/ufs/newfs/Makefile4
-rw-r--r--usr/src/cmd/fs.d/ufs/quot/Makefile7
-rw-r--r--usr/src/cmd/fs.d/ufs/quota/Makefile5
-rw-r--r--usr/src/cmd/fs.d/ufs/quotacheck/Makefile4
-rw-r--r--usr/src/cmd/fs.d/ufs/quotaon/Makefile5
-rw-r--r--usr/src/cmd/fs.d/ufs/repquota/Makefile4
-rw-r--r--usr/src/cmd/fs.d/ufs/tunefs/Makefile4
-rw-r--r--usr/src/cmd/fs.d/ufs/volcopy/Makefile4
43 files changed, 179 insertions, 27 deletions
diff --git a/usr/src/cmd/fs.d/Makefile b/usr/src/cmd/fs.d/Makefile
index 2f5bd31ec7..91f994ebb0 100644
--- a/usr/src/cmd/fs.d/Makefile
+++ b/usr/src/cmd/fs.d/Makefile
@@ -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-unused-variable
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-unused-function
+# not linted
+SMATCH=off
+
$(DFPROG) := LDLIBS += -lcmdutils
$(SPPROG) := LDLIBS += -lkstat
diff --git a/usr/src/cmd/fs.d/autofs/Makefile b/usr/src/cmd/fs.d/autofs/Makefile
index 5fd524a0f8..c91673ad42 100644
--- a/usr/src/cmd/fs.d/autofs/Makefile
+++ b/usr/src/cmd/fs.d/autofs/Makefile
@@ -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-uninitialized
CERRWARN += -_gcc=-Wno-unused-label
CERRWARN += -_gcc=-Wno-unused-function
+# not linted
+SMATCH=off
+
OBJS= $(AUTOOBJS) $(MOUNTOBJS) $(TYPEOBJS) \
$(SHAREOBJS) $(UNSHAREOBJS)
diff --git a/usr/src/cmd/fs.d/hsfs/labelit/Makefile b/usr/src/cmd/fs.d/hsfs/labelit/Makefile
index fdf2c43912..4c96122b88 100644
--- a/usr/src/cmd/fs.d/hsfs/labelit/Makefile
+++ b/usr/src/cmd/fs.d/hsfs/labelit/Makefile
@@ -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-switch
CERRWARN += -_gcc=-Wno-implicit-function-declaration
CERRWARN += -_gcc=-Wno-unused-variable
+# not linted
+SMATCH=off
+
lint := PROG = $(LIBPROG)
lint: lint_PROG
diff --git a/usr/src/cmd/fs.d/hsfs/mount/Makefile b/usr/src/cmd/fs.d/hsfs/mount/Makefile
index 9afcfc72f1..307f3dfa61 100644
--- a/usr/src/cmd/fs.d/hsfs/mount/Makefile
+++ b/usr/src/cmd/fs.d/hsfs/mount/Makefile
@@ -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
include ../../Makefile.mount.targ
CERRWARN += -_gcc=-Wno-unused-variable
+
+# not linted
+SMATCH=off
diff --git a/usr/src/cmd/fs.d/nfs/clear_locks/Makefile b/usr/src/cmd/fs.d/nfs/clear_locks/Makefile
index 0d08fe841c..804e784d08 100644
--- a/usr/src/cmd/fs.d/nfs/clear_locks/Makefile
+++ b/usr/src/cmd/fs.d/nfs/clear_locks/Makefile
@@ -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 @@ $(POFILE): clear_locks.c
CFLAGS += $(CCVERBOSE)
+# not linted
+SMATCH=off
+
.KEEP_STATE:
-all: $(PROG)
+all: $(PROG)
install: all $(ROOTUSRSBINPROG)
diff --git a/usr/src/cmd/fs.d/nfs/dfmounts/Makefile b/usr/src/cmd/fs.d/nfs/dfmounts/Makefile
index bd6ae76dd7..35b51671b0 100644
--- a/usr/src/cmd/fs.d/nfs/dfmounts/Makefile
+++ b/usr/src/cmd/fs.d/nfs/dfmounts/Makefile
@@ -22,6 +22,7 @@
#
# Copyright (c) 1989 by Sun Microsystems, Inc.
#
+# Copyright (c) 2018, Joyent, Inc.
FSTYPE= nfs
LIBPROG= dfmounts
@@ -43,6 +44,9 @@ LDLIBS += -lrpcsvc -lnsl
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)
diff --git a/usr/src/cmd/fs.d/nfs/dfshares/Makefile b/usr/src/cmd/fs.d/nfs/dfshares/Makefile
index ffda5d11cb..b86545d9e5 100644
--- a/usr/src/cmd/fs.d/nfs/dfshares/Makefile
+++ b/usr/src/cmd/fs.d/nfs/dfshares/Makefile
@@ -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-unused-variable
CERRWARN += -_gcc=-Wno-implicit-function-declaration
CERRWARN += -_gcc=-Wno-parentheses
+# not linted
+SMATCH=off
+
+
$(LIBPROG): $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
diff --git a/usr/src/cmd/fs.d/nfs/lockd/Makefile b/usr/src/cmd/fs.d/nfs/lockd/Makefile
index 19c459d9f5..e013de8aaa 100644
--- a/usr/src/cmd/fs.d/nfs/lockd/Makefile
+++ b/usr/src/cmd/fs.d/nfs/lockd/Makefile
@@ -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-switch
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-uninitialized
+# not linted
+SMATCH=off
+
+
$(TYPEPROG): $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
diff --git a/usr/src/cmd/fs.d/nfs/mount/Makefile b/usr/src/cmd/fs.d/nfs/mount/Makefile
index 05cdc4f6da..f20280b634 100644
--- a/usr/src/cmd/fs.d/nfs/mount/Makefile
+++ b/usr/src/cmd/fs.d/nfs/mount/Makefile
@@ -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-uninitialized
CERRWARN += -_gcc=-Wno-address
CERRWARN += -_gcc=-Wno-unused-function
+# unknown type for func
+SMATCH=off
+
#
# Message catalog
#
diff --git a/usr/src/cmd/fs.d/nfs/mountd/Makefile b/usr/src/cmd/fs.d/nfs/mountd/Makefile
index eca0a82911..36d3d4bca4 100644
--- a/usr/src/cmd/fs.d/nfs/mountd/Makefile
+++ b/usr/src/cmd/fs.d/nfs/mountd/Makefile
@@ -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 @@ CPPFLAGS += -D_REENTRANT -I../lib
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)
diff --git a/usr/src/cmd/fs.d/nfs/nfs4cbd/Makefile b/usr/src/cmd/fs.d/nfs/nfs4cbd/Makefile
index 4c6f4dca16..9743af5165 100644
--- a/usr/src/cmd/fs.d/nfs/nfs4cbd/Makefile
+++ b/usr/src/cmd/fs.d/nfs/nfs4cbd/Makefile
@@ -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-unused-variable
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-extra
+# not linted
+SMATCH=off
+
.KEEP_STATE:
all: $(TYPEPROG)
diff --git a/usr/src/cmd/fs.d/nfs/nfsd/Makefile b/usr/src/cmd/fs.d/nfs/nfsd/Makefile
index 90a77dcbef..384d6a0c66 100644
--- a/usr/src/cmd/fs.d/nfs/nfsd/Makefile
+++ b/usr/src/cmd/fs.d/nfs/nfsd/Makefile
@@ -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-unused-variable
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-extra
+# not linted
+SMATCH=off
+
$(TYPEPROG): $(OBJS)
$(CC) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
$(POST_PROCESS)
diff --git a/usr/src/cmd/fs.d/nfs/nfslog/Makefile b/usr/src/cmd/fs.d/nfs/nfslog/Makefile
index 243574f744..7b2763a8d2 100644
--- a/usr/src/cmd/fs.d/nfs/nfslog/Makefile
+++ b/usr/src/cmd/fs.d/nfs/nfslog/Makefile
@@ -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-parentheses
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-type-limits
+
+# not linted
+SMATCH=off
+
CPPFLAGS += -D_FILE_OFFSET_BITS=64
#
diff --git a/usr/src/cmd/fs.d/nfs/nfsmapid/Makefile b/usr/src/cmd/fs.d/nfs/nfsmapid/Makefile
index 6afd2bb495..5f0af9ef89 100644
--- a/usr/src/cmd/fs.d/nfs/nfsmapid/Makefile
+++ b/usr/src/cmd/fs.d/nfs/nfsmapid/Makefile
@@ -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-unused-variable
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized
+# not linted
+SMATCH=off
+
all: $(TYPEPROG) $(TESTPROG)
$(TYPEPROG): $(OBJS) $(DSRC)
diff --git a/usr/src/cmd/fs.d/nfs/nfsref/Makefile b/usr/src/cmd/fs.d/nfs/nfsref/Makefile
index 9f5b8e73a3..749789dc68 100644
--- a/usr/src/cmd/fs.d/nfs/nfsref/Makefile
+++ b/usr/src/cmd/fs.d/nfs/nfsref/Makefile
@@ -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 @@ SRCS= nfsref.c
CERRWARN += -_gcc=-Wno-unused-variable
+# not linted
+SMATCH=off
+
LDLIBS += -lreparse -lnvpair -lnsl -lumem
$(PROG): $(OBJS)
diff --git a/usr/src/cmd/fs.d/nfs/nfsstat/Makefile b/usr/src/cmd/fs.d/nfs/nfsstat/Makefile
index 1fe48838f6..1b8dc8c9e6 100644
--- a/usr/src/cmd/fs.d/nfs/nfsstat/Makefile
+++ b/usr/src/cmd/fs.d/nfs/nfsstat/Makefile
@@ -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 @@ OBJS += $(STAT_COMMON_OBJS)
CPPFLAGS += -I$(STATCOMMONDIR)
CERRWARN += -_gcc=-Wno-parentheses
+
+# not linted
+SMATCH=off
+
LDLIBS += -lkstat -lnsl
$(PROG): $(OBJS)
diff --git a/usr/src/cmd/fs.d/nfs/rp_basic/Makefile.com b/usr/src/cmd/fs.d/nfs/rp_basic/Makefile.com
index 85567a3537..282067be42 100644
--- a/usr/src/cmd/fs.d/nfs/rp_basic/Makefile.com
+++ b/usr/src/cmd/fs.d/nfs/rp_basic/Makefile.com
@@ -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 @@ LDLIBS += -lc -lnsl
CFLAGS += $(CCVERBOSE)
CPPFLAGS += -D_REENTRANT -I$(SRC)/cmd/fs.d/nfs/lib
+# not linted
+SMATCH=off
+
.KEEP_STATE:
all: $(LIBS)
diff --git a/usr/src/cmd/fs.d/nfs/rquotad/Makefile b/usr/src/cmd/fs.d/nfs/rquotad/Makefile
index e75afe3a9b..8a450f5c35 100644
--- a/usr/src/cmd/fs.d/nfs/rquotad/Makefile
+++ b/usr/src/cmd/fs.d/nfs/rquotad/Makefile
@@ -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-implicit-function-declaration
CERRWARN += -_gcc=-Wno-unused-variable
LDLIBS += -lnsl
+# unknown type for func
+SMATCH=off
+
$(TYPEPROG): $(OBJS)
$(LINK.c) -o $@ $(LDLIBS) $(OBJS)
$(POST_PROCESS)
diff --git a/usr/src/cmd/fs.d/nfs/showmount/Makefile b/usr/src/cmd/fs.d/nfs/showmount/Makefile
index 7974fd5cdc..527c776481 100644
--- a/usr/src/cmd/fs.d/nfs/showmount/Makefile
+++ b/usr/src/cmd/fs.d/nfs/showmount/Makefile
@@ -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-parentheses
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-uninitialized
+# not linted
+SMATCH=off
+
$(LIBPROG): $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
diff --git a/usr/src/cmd/fs.d/nfs/statd/Makefile b/usr/src/cmd/fs.d/nfs/statd/Makefile
index ad7559a035..c64bbb71ca 100644
--- a/usr/src/cmd/fs.d/nfs/statd/Makefile
+++ b/usr/src/cmd/fs.d/nfs/statd/Makefile
@@ -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-switch
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
diff --git a/usr/src/cmd/fs.d/nfs/tests/Makefile b/usr/src/cmd/fs.d/nfs/tests/Makefile
index 1229b37f3e..329c9ca0b6 100644
--- a/usr/src/cmd/fs.d/nfs/tests/Makefile
+++ b/usr/src/cmd/fs.d/nfs/tests/Makefile
@@ -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 @@ SRCS= $(LIBPROG).c
CFLAGS += $(CCVERBOSE)
+# not linted
+SMATCH=off
+
LDLIBS += -lnsl -lsocket
# message catalog
diff --git a/usr/src/cmd/fs.d/smbclnt/smbiod-svc/Makefile b/usr/src/cmd/fs.d/smbclnt/smbiod-svc/Makefile
index a5dbf68bd9..90a7778386 100644
--- a/usr/src/cmd/fs.d/smbclnt/smbiod-svc/Makefile
+++ b/usr/src/cmd/fs.d/smbclnt/smbiod-svc/Makefile
@@ -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 @@ CSTD= $(CSTD_GNU99)
CPPFLAGS += -I$(SRC)/lib/libsmbfs \
-I$(SRC)/uts/common/smbclnt -I$(SRC)/uts/common
+# not linted
+SMATCH=off
+
# Debugging
${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
diff --git a/usr/src/cmd/fs.d/smbclnt/smbiod/Makefile b/usr/src/cmd/fs.d/smbclnt/smbiod/Makefile
index 7acbf30f86..0b1f468a2b 100644
--- a/usr/src/cmd/fs.d/smbclnt/smbiod/Makefile
+++ b/usr/src/cmd/fs.d/smbclnt/smbiod/Makefile
@@ -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 @@ POFILE= $(TYPEPROG).po
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
diff --git a/usr/src/cmd/fs.d/smbclnt/smbutil/Makefile b/usr/src/cmd/fs.d/smbclnt/smbutil/Makefile
index f15dcc8f67..5794a07956 100644
--- a/usr/src/cmd/fs.d/smbclnt/smbutil/Makefile
+++ b/usr/src/cmd/fs.d/smbclnt/smbutil/Makefile
@@ -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 @@ LDLIBS += -lmlrpc -lsmbfs -lnsl
CPPFLAGS += -I$(SRC)/lib/libsmbfs \
-I$(SRC)/uts/common/smbclnt -I$(SRC)/uts/common
+# not linted
+SMATCH=off
+
# Debugging
${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
diff --git a/usr/src/cmd/fs.d/udfs/fsck/Makefile b/usr/src/cmd/fs.d/udfs/fsck/Makefile
index f3870fba38..a5c12a6baa 100644
--- a/usr/src/cmd/fs.d/udfs/fsck/Makefile
+++ b/usr/src/cmd/fs.d/udfs/fsck/Makefile
@@ -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 @@ UDFSOBJS= udfslib.o
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-parentheses
+# not linted
+SMATCH=off
+
OBJS= $(FSCKOBJS) $(UDFSOBJS)
SRCS= $(FSCKSRCS) $(UDFSSRCS) ../mkfs/udfslib.c
diff --git a/usr/src/cmd/fs.d/udfs/fsdb/Makefile b/usr/src/cmd/fs.d/udfs/fsdb/Makefile
index 3c8ea7cc87..5c17537f20 100644
--- a/usr/src/cmd/fs.d/udfs/fsdb/Makefile
+++ b/usr/src/cmd/fs.d/udfs/fsdb/Makefile
@@ -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-uninitialized
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)
diff --git a/usr/src/cmd/fs.d/udfs/mkfs/Makefile b/usr/src/cmd/fs.d/udfs/mkfs/Makefile
index e235f01963..078f90c5fb 100644
--- a/usr/src/cmd/fs.d/udfs/mkfs/Makefile
+++ b/usr/src/cmd/fs.d/udfs/mkfs/Makefile
@@ -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 @@ UDFSOBJS=
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized
+# not linted
+SMATCH=off
+
OBJS= $(MKFSOBJS) $(UDFSOBJS)
SRCS= $(OBJS:%.o=%.c)
diff --git a/usr/src/cmd/fs.d/ufs/df/Makefile b/usr/src/cmd/fs.d/ufs/df/Makefile
index fc76d7ca8e..a59dd5de7d 100644
--- a/usr/src/cmd/fs.d/ufs/df/Makefile
+++ b/usr/src/cmd/fs.d/ufs/df/Makefile
@@ -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-parentheses
CERRWARN += -_gcc=-Wno-unused-label
CERRWARN += -_gcc=-Wno-unused-function
+# not linted
+SMATCH=off
+
# for messaging catalogue file
#
POFILE= df.po
diff --git a/usr/src/cmd/fs.d/ufs/edquota/Makefile b/usr/src/cmd/fs.d/ufs/edquota/Makefile
index 1f29704147..a33c171584 100644
--- a/usr/src/cmd/fs.d/ufs/edquota/Makefile
+++ b/usr/src/cmd/fs.d/ufs/edquota/Makefile
@@ -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 @@ CPPFLAGS += -D_LARGEFILE64_SOURCE
CERRWARN += -_gcc=-Wno-parentheses
lint: lint_PROG
+# not linted
+SMATCH=off
+
$(ROOTUSRSBIN)/$(LIBPROG):
-$(RM) $@; $(SYMLINK) $(LINKVALUE) $@
diff --git a/usr/src/cmd/fs.d/ufs/ff/Makefile b/usr/src/cmd/fs.d/ufs/ff/Makefile
index 09c79c2688..a36af880e0 100644
--- a/usr/src/cmd/fs.d/ufs/ff/Makefile
+++ b/usr/src/cmd/fs.d/ufs/ff/Makefile
@@ -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 @@ CPPFLAGS += -D_LARGEFILE64_SOURCE
CERRWARN += -_gcc=-Wno-uninitialized
+# not linted
+SMATCH=off
+
$(LIBPROG): $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
diff --git a/usr/src/cmd/fs.d/ufs/fsck/Makefile b/usr/src/cmd/fs.d/ufs/fsck/Makefile
index 9562fdedb2..cc3bd8dd12 100644
--- a/usr/src/cmd/fs.d/ufs/fsck/Makefile
+++ b/usr/src/cmd/fs.d/ufs/fsck/Makefile
@@ -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-parentheses
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)
diff --git a/usr/src/cmd/fs.d/ufs/fsdb/Makefile b/usr/src/cmd/fs.d/ufs/fsdb/Makefile
index 05dfa205dd..64527b4e5f 100644
--- a/usr/src/cmd/fs.d/ufs/fsdb/Makefile
+++ b/usr/src/cmd/fs.d/ufs/fsdb/Makefile
@@ -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-parentheses
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-uninitialized
+# not linted
+SMATCH=off
+
SRCS= $(LIBPROG).c
lint: lint_SRCS
diff --git a/usr/src/cmd/fs.d/ufs/fssnap/Makefile b/usr/src/cmd/fs.d/ufs/fssnap/Makefile
index 155ad227e8..c1dfb654c2 100644
--- a/usr/src/cmd/fs.d/ufs/fssnap/Makefile
+++ b/usr/src/cmd/fs.d/ufs/fssnap/Makefile
@@ -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-type-limits
CERRWARN += -_gcc=-Wno-implicit-function-declaration
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-uninitialized
+
+# not linted
+SMATCH=off
+
LDLIBS += -lkstat -ldevinfo
# message catalog
diff --git a/usr/src/cmd/fs.d/ufs/labelit/Makefile b/usr/src/cmd/fs.d/ufs/labelit/Makefile
index 346d76baaf..d4747a5016 100644
--- a/usr/src/cmd/fs.d/ufs/labelit/Makefile
+++ b/usr/src/cmd/fs.d/ufs/labelit/Makefile
@@ -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 @@ include ../../Makefile.fstype
CPPFLAGS += -D_LARGEFILE64_SOURCE
+# not linted
+SMATCH=off
+
lint := PROG=$(LIBPROG)
lint: lint_PROG
diff --git a/usr/src/cmd/fs.d/ufs/lockfs/Makefile b/usr/src/cmd/fs.d/ufs/lockfs/Makefile
index 0429ee74ce..9e1bdc9af5 100644
--- a/usr/src/cmd/fs.d/ufs/lockfs/Makefile
+++ b/usr/src/cmd/fs.d/ufs/lockfs/Makefile
@@ -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 @@ include ../../Makefile.fstype
CPPFLAGS += -D_LARGEFILE64_SOURCE
+SMOFF += all_func_returns
+
lint: lint_PROG
$(ROOTUSRSBIN)/$(LIBPROG):
diff --git a/usr/src/cmd/fs.d/ufs/newfs/Makefile b/usr/src/cmd/fs.d/ufs/newfs/Makefile
index e740669879..82e10b3aaf 100644
--- a/usr/src/cmd/fs.d/ufs/newfs/Makefile
+++ b/usr/src/cmd/fs.d/ufs/newfs/Makefile
@@ -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 @@ LDLIBS += -ladm -lefi
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized
+# not linted
+SMATCH=off
+
OBJS= $(LIBPROG).o $(FSLIB)
SRCS= $(LIBPROG).c $(FSLIBSRC)
diff --git a/usr/src/cmd/fs.d/ufs/quot/Makefile b/usr/src/cmd/fs.d/ufs/quot/Makefile
index d155cc0b8e..45ffe6b56c 100644
--- a/usr/src/cmd/fs.d/ufs/quot/Makefile
+++ b/usr/src/cmd/fs.d/ufs/quot/Makefile
@@ -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 @@ CPPFLAGS += -D_LARGEFILE64_SOURCE
CFLAGS += $(CCVERBOSE)
LDLIBS += -ladm
+# not linted
+SMATCH=off
+
lint := PROG= $(LIBPROG)
lint: lint_PROG
diff --git a/usr/src/cmd/fs.d/ufs/quota/Makefile b/usr/src/cmd/fs.d/ufs/quota/Makefile
index 3c2b6bc313..b737d263a7 100644
--- a/usr/src/cmd/fs.d/ufs/quota/Makefile
+++ b/usr/src/cmd/fs.d/ufs/quota/Makefile
@@ -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-implicit-function-declaration
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-parentheses
+# not linted
+SMATCH=off
+
FILEMODE= 04555
$(LIBPROG): $(OBJS)
diff --git a/usr/src/cmd/fs.d/ufs/quotacheck/Makefile b/usr/src/cmd/fs.d/ufs/quotacheck/Makefile
index cb302325e4..35efa4536f 100644
--- a/usr/src/cmd/fs.d/ufs/quotacheck/Makefile
+++ b/usr/src/cmd/fs.d/ufs/quotacheck/Makefile
@@ -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 @@ SRCS= $(OBJS:.o=.c)
CERRWARN += -_gcc=-Wno-implicit-function-declaration
CERRWARN += -_gcc=-Wno-type-limits
+# not linted
+SMATCH=off
+
lint: lint_PROG
$(FSOBJS): $(FSSRCS)
diff --git a/usr/src/cmd/fs.d/ufs/quotaon/Makefile b/usr/src/cmd/fs.d/ufs/quotaon/Makefile
index 40949dd5d9..d558ce9149 100644
--- a/usr/src/cmd/fs.d/ufs/quotaon/Makefile
+++ b/usr/src/cmd/fs.d/ufs/quotaon/Makefile
@@ -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 @@ CPPFLAGS += -D_LARGEFILE64_SOURCE
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-unused-function
+# not linted
+SMATCH=off
+
lint: lint_PROG
$(ROOTLIBFSTYPE)/$(QUOTAOFF): $(ROOTLIBFSTYPE)/$(LIBPROG)
diff --git a/usr/src/cmd/fs.d/ufs/repquota/Makefile b/usr/src/cmd/fs.d/ufs/repquota/Makefile
index 600ca6b373..4bb399e549 100644
--- a/usr/src/cmd/fs.d/ufs/repquota/Makefile
+++ b/usr/src/cmd/fs.d/ufs/repquota/Makefile
@@ -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 @@ CPPFLAGS += -D_LARGEFILE64_SOURCE
CERRWARN += -_gcc=-Wno-type-limits
CERRWARN += -_gcc=-Wno-uninitialized
+# not linted
+SMATCH=off
+
lint: lint_PROG
$(ROOTUSRSBIN)/$(LIBPROG):
diff --git a/usr/src/cmd/fs.d/ufs/tunefs/Makefile b/usr/src/cmd/fs.d/ufs/tunefs/Makefile
index 858ea7c3d3..ba6df6c8f5 100644
--- a/usr/src/cmd/fs.d/ufs/tunefs/Makefile
+++ b/usr/src/cmd/fs.d/ufs/tunefs/Makefile
@@ -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 @@ CPPFLAGS += -D_LARGEFILE64_SOURCE
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized
+# not linted
+SMATCH=off
+
lint: lint_PROG
$(ROOTUSRSBIN)/$(LIBPROG): FRC
diff --git a/usr/src/cmd/fs.d/ufs/volcopy/Makefile b/usr/src/cmd/fs.d/ufs/volcopy/Makefile
index 9da5b17da5..9e767c6561 100644
--- a/usr/src/cmd/fs.d/ufs/volcopy/Makefile
+++ b/usr/src/cmd/fs.d/ufs/volcopy/Makefile
@@ -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-implicit-function-declaration
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-uninitialized
+# not linted
+SMATCH=off
+
LDLIBS += -lmapmalloc
# for messaging catalog