summaryrefslogtreecommitdiff
path: root/usr/src/lib/fm
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2018-12-17 21:44:38 +0000
committerRobert Mustacchi <rm@joyent.com>2019-01-14 18:34:56 +0000
commit05ede3db5e3b7d540afbccdc872c735770e82ef3 (patch)
tree48e8ef98653eb259c6a4ed19a6fafa66f2a209f5 /usr/src/lib/fm
parentcadd68ea0014761eda6a293664086dfa80686d85 (diff)
downloadillumos-joyent-05ede3db5e3b7d540afbccdc872c735770e82ef3.tar.gz
10079 smatch Makefile changes for usr/src/lib
Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/lib/fm')
-rw-r--r--usr/src/lib/fm/libdiskstatus/Makefile.com5
-rw-r--r--usr/src/lib/fm/libfmd_msg/Makefile.com4
-rw-r--r--usr/src/lib/fm/libseslog/Makefile.com6
-rw-r--r--usr/src/lib/fm/topo/libtopo/Makefile.com3
-rw-r--r--usr/src/lib/fm/topo/modules/i86pc/chip/Makefile4
5 files changed, 20 insertions, 2 deletions
diff --git a/usr/src/lib/fm/libdiskstatus/Makefile.com b/usr/src/lib/fm/libdiskstatus/Makefile.com
index ee2fa3725a..c22e5808eb 100644
--- a/usr/src/lib/fm/libdiskstatus/Makefile.com
+++ b/usr/src/lib/fm/libdiskstatus/Makefile.com
@@ -22,7 +22,7 @@
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2018, Joyent, Inc.
LIBRARY= libdiskstatus.a
VERS= .1
@@ -44,6 +44,9 @@ INCS += -I$(SRCDIR)
LDLIBS += -lc -lnvpair
CPPFLAGS += $(INCS)
+# not linted
+SMATCH=off
+
$(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC)
.KEEP_STATE:
diff --git a/usr/src/lib/fm/libfmd_msg/Makefile.com b/usr/src/lib/fm/libfmd_msg/Makefile.com
index a2a731da0e..31c9047656 100644
--- a/usr/src/lib/fm/libfmd_msg/Makefile.com
+++ b/usr/src/lib/fm/libfmd_msg/Makefile.com
@@ -22,6 +22,7 @@
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+# Copyright (c) 2018, Joyent, Inc.
LIBRARY = libfmd_msg.a
VERS = .1
@@ -42,6 +43,9 @@ CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-uninitialized
+
+SMOFF += all_func_returns
+
LDLIBS += -lnvpair -lc
LINTFLAGS = -msux
diff --git a/usr/src/lib/fm/libseslog/Makefile.com b/usr/src/lib/fm/libseslog/Makefile.com
index 980580b25a..81beeab149 100644
--- a/usr/src/lib/fm/libseslog/Makefile.com
+++ b/usr/src/lib/fm/libseslog/Makefile.com
@@ -21,12 +21,13 @@
#
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
+# Copyright (c) 2018, Joyent, Inc.
LIBRARY= libseslog.a
VERS= .1
-OBJECTS= libseslog.o
+OBJECTS= libseslog.o
include ../../../Makefile.lib
include ../../Makefile.lib
@@ -39,6 +40,9 @@ INCS += -I$(SRCDIR)
LDLIBS += -lc -lnvpair
CPPFLAGS += $(INCS)
+# not linted
+SMATCH=off
+
$(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC)
.KEEP_STATE:
diff --git a/usr/src/lib/fm/topo/libtopo/Makefile.com b/usr/src/lib/fm/topo/libtopo/Makefile.com
index 21ae880d59..1ab6819b98 100644
--- a/usr/src/lib/fm/topo/libtopo/Makefile.com
+++ b/usr/src/lib/fm/topo/libtopo/Makefile.com
@@ -83,6 +83,9 @@ CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-parentheses
+# not linted
+SMATCH=off
+
LINTFLAGS = -msux
LINTFLAGS64 = -msux -m64
diff --git a/usr/src/lib/fm/topo/modules/i86pc/chip/Makefile b/usr/src/lib/fm/topo/modules/i86pc/chip/Makefile
index ff2d070398..bbe1aa06d6 100644
--- a/usr/src/lib/fm/topo/modules/i86pc/chip/Makefile
+++ b/usr/src/lib/fm/topo/modules/i86pc/chip/Makefile
@@ -22,6 +22,7 @@
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+# Copyright (c) 2018, Joyent, Inc.
MODULE = chip
ARCH = i86pc
@@ -31,3 +32,6 @@ chip_serial.c chip_smbios.c
include ../../Makefile.plugin
LDLIBS += -lipmi -lfmd_agent -lumem -lsmbios
+
+# not linted
+SMATCH=off