summaryrefslogtreecommitdiff
path: root/usr/src/cmd/fm
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2019-01-15 13:04:31 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2019-01-15 13:04:31 +0000
commit7a34fde236609b18147eb73e6a163e19162d96e2 (patch)
tree11d647767f5036bbcccee110ad13891ed603a972 /usr/src/cmd/fm
parent0de99a4637b946f1cd1c7d9fb5949112e1afb82f (diff)
parentc653bb4713ca694c2d16b04b65d5b76c0bb46bd4 (diff)
downloadillumos-joyent-7a34fde236609b18147eb73e6a163e19162d96e2.tar.gz
[illumos-gate merge]
commit c653bb4713ca694c2d16b04b65d5b76c0bb46bd4 10197 build smatch in parallel commit 15c07adc1c7b828006b5e3c4d528b92229d6bd23 10081 smatch indenting fixes for usr/src/uts commit 5661bb7641e85c46713da7a3002b29ecd2c3daf0 10080 smatch Makefile changes for usr/src/cmd commit 05ede3db5e3b7d540afbccdc872c735770e82ef3 10079 smatch Makefile changes for usr/src/lib commit cadd68ea0014761eda6a293664086dfa80686d85 10078 smatch fixes for UCB commit 1ea94c756c0bc9170021d7b570944a24f224c03f 10202 loader: use screen-#rows to find bottom left co-ordinates commit 08487eea68a2fa501b5042131c6db068089f82e1 10173 loader: support newer ZFS versions Conflicts: usr/src/lib/libdladm/Makefile.com usr/src/lib/fm/topo/modules/i86pc/chip/Makefile
Diffstat (limited to 'usr/src/cmd/fm')
-rw-r--r--usr/src/cmd/fm/eversholt/Makefile.esc.com4
-rw-r--r--usr/src/cmd/fm/fmd/Makefile.fmd4
-rw-r--r--usr/src/cmd/fm/fmstat/Makefile.com3
-rw-r--r--usr/src/cmd/fm/fmtopo/Makefile.com5
-rw-r--r--usr/src/cmd/fm/modules/common/disk-monitor/Makefile4
-rw-r--r--usr/src/cmd/fm/modules/common/eversholt/Makefile4
-rw-r--r--usr/src/cmd/fm/modules/common/fabric-xlate/Makefile4
-rw-r--r--usr/src/cmd/fm/modules/common/ip-transport/Makefile4
-rw-r--r--usr/src/cmd/fm/modules/common/ses-log-transport/Makefile5
9 files changed, 34 insertions, 3 deletions
diff --git a/usr/src/cmd/fm/eversholt/Makefile.esc.com b/usr/src/cmd/fm/eversholt/Makefile.esc.com
index d8dbaf289c..97d684c164 100644
--- a/usr/src/cmd/fm/eversholt/Makefile.esc.com
+++ b/usr/src/cmd/fm/eversholt/Makefile.esc.com
@@ -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-unused-label
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-switch
+SMOFF += all_func_returns
+
CTFCONVO = $(CTFCONVERT_O)
CTFMRG = $(CTFMERGE) -L VERSION -o $@ $(OBJS)
diff --git a/usr/src/cmd/fm/fmd/Makefile.fmd b/usr/src/cmd/fm/fmd/Makefile.fmd
index 3634df1269..1a23743d95 100644
--- a/usr/src/cmd/fm/fmd/Makefile.fmd
+++ b/usr/src/cmd/fm/fmd/Makefile.fmd
@@ -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-uninitialized
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
diff --git a/usr/src/cmd/fm/fmstat/Makefile.com b/usr/src/cmd/fm/fmstat/Makefile.com
index 0c743f8108..97ab83a828 100644
--- a/usr/src/cmd/fm/fmstat/Makefile.com
+++ b/usr/src/cmd/fm/fmstat/Makefile.com
@@ -22,6 +22,7 @@
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+# Copyright (c) 2018, Joyent, Inc.
.KEEP_STATE:
.SUFFIXES:
@@ -47,6 +48,8 @@ LDLIBS += -L$(ROOT)/usr/lib/fm -lfmd_adm
LDFLAGS += -R/usr/lib/fm
LINTFLAGS += -mnu
+SMOFF += signed
+
.NO_PARALLEL:
.PARALLEL: $(OBJS) $(LINTFILES)
diff --git a/usr/src/cmd/fm/fmtopo/Makefile.com b/usr/src/cmd/fm/fmtopo/Makefile.com
index 7b09bbbd87..d692d463aa 100644
--- a/usr/src/cmd/fm/fmtopo/Makefile.com
+++ b/usr/src/cmd/fm/fmtopo/Makefile.com
@@ -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 @@ LDLIBS += -L$(ROOT)/usr/lib/fm -ltopo -lnvpair
LDFLAGS += -R/usr/lib/fm
LINTFLAGS += -mnu
+# not linted
+SMATCH=off
+
.NO_PARALLEL:
.PARALLEL: $(OBJS) $(LINTFILES)
diff --git a/usr/src/cmd/fm/modules/common/disk-monitor/Makefile b/usr/src/cmd/fm/modules/common/disk-monitor/Makefile
index 4ee7343d45..3acbf7c3df 100644
--- a/usr/src/cmd/fm/modules/common/disk-monitor/Makefile
+++ b/usr/src/cmd/fm/modules/common/disk-monitor/Makefile
@@ -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 @@ CFLAGS += -I. -I$(SRC)/lib/fm/topo/modules/common/disk
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
diff --git a/usr/src/cmd/fm/modules/common/eversholt/Makefile b/usr/src/cmd/fm/modules/common/eversholt/Makefile
index c71726062e..0ca385c960 100644
--- a/usr/src/cmd/fm/modules/common/eversholt/Makefile
+++ b/usr/src/cmd/fm/modules/common/eversholt/Makefile
@@ -25,6 +25,7 @@
#
# eft.so (the eversholt DE)
#
+# Copyright (c) 2018, Joyent, Inc.
.KEEP_STATE:
@@ -49,6 +50,9 @@ CERRWARN += -_gcc=-Wno-switch
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
diff --git a/usr/src/cmd/fm/modules/common/fabric-xlate/Makefile b/usr/src/cmd/fm/modules/common/fabric-xlate/Makefile
index ef2fd7530d..ce58c99d73 100644
--- a/usr/src/cmd/fm/modules/common/fabric-xlate/Makefile
+++ b/usr/src/cmd/fm/modules/common/fabric-xlate/Makefile
@@ -22,6 +22,7 @@
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+# Copyright (c) 2018, Joyent, Inc.
MODULE = fabric-xlate
CLASS = common
@@ -41,3 +42,6 @@ LDLIBS += -luutil -lxml2 -L$(ROOTLIB)/fm -ltopo
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-uninitialized
+
+# not linted
+SMATCH=off
diff --git a/usr/src/cmd/fm/modules/common/ip-transport/Makefile b/usr/src/cmd/fm/modules/common/ip-transport/Makefile
index 84f01180ab..bafe1caba3 100644
--- a/usr/src/cmd/fm/modules/common/ip-transport/Makefile
+++ b/usr/src/cmd/fm/modules/common/ip-transport/Makefile
@@ -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 @@ include ../../Makefile.plugin
LDLIBS += -lsocket -lnsl
CERRWARN += -_gcc=-Wno-uninitialized
+
+# not linted
+SMATCH=off
diff --git a/usr/src/cmd/fm/modules/common/ses-log-transport/Makefile b/usr/src/cmd/fm/modules/common/ses-log-transport/Makefile
index eac67a77f9..0188e38a35 100644
--- a/usr/src/cmd/fm/modules/common/ses-log-transport/Makefile
+++ b/usr/src/cmd/fm/modules/common/ses-log-transport/Makefile
@@ -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 @@ CFLAGS += $(INCS)
LINTFLAGS += $(INCS)
LDLIBS += -L$(ROOTLIB)/fm -ltopo -lseslog
LDFLAGS += -R/usr/lib/fm
+
+# not linted
+SMATCH=off