summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2019-07-16 14:48:17 +0000
committerJohn Levon <john.levon@joyent.com>2019-07-22 11:58:49 +0000
commitf73c3136e0e7f7568e301024c923935141260dfd (patch)
treeb862605dcbe564ab45edd8922332560b0d271988
parentd6111a386987ca567f3fab55c18e51b642f0d80b (diff)
downloadillumos-joyent-OS-7790.tar.gz
few final smatch tweaksOS-7790
-rw-r--r--usr/src/boot/sys/boot/efi/libefi/i386/Makefile4
-rw-r--r--usr/src/boot/sys/boot/libstand/Makefile.com4
-rw-r--r--usr/src/lib/fm/topo/libtopo/common/topo_mod.c2
3 files changed, 9 insertions, 1 deletions
diff --git a/usr/src/boot/sys/boot/efi/libefi/i386/Makefile b/usr/src/boot/sys/boot/efi/libefi/i386/Makefile
index 3d1c95feed..cc749255bd 100644
--- a/usr/src/boot/sys/boot/efi/libefi/i386/Makefile
+++ b/usr/src/boot/sys/boot/efi/libefi/i386/Makefile
@@ -12,6 +12,7 @@
#
# Copyright 2016 Toomas Soome <tsoome@me.com>
# Copyright 2016 RackTop Systems.
+# Copyright 2019 Joyent, Inc.
#
MACHINE= $(MACH)
@@ -23,6 +24,9 @@ include ../Makefile.com
CFLAGS += -m32
+# false positive only with a 64-bit smatch
+SMOFF += uninitialized
+
CLEANFILES += machine x86
$(OBJS): machine x86
diff --git a/usr/src/boot/sys/boot/libstand/Makefile.com b/usr/src/boot/sys/boot/libstand/Makefile.com
index 135944335c..e41ee5cb3c 100644
--- a/usr/src/boot/sys/boot/libstand/Makefile.com
+++ b/usr/src/boot/sys/boot/libstand/Makefile.com
@@ -11,6 +11,7 @@
#
# Copyright 2016 Toomas Soome <tsoome@me.com>
+# Copyright 2019 Joyent, Inc.
#
include $(SRC)/Makefile.master
@@ -27,6 +28,9 @@ include $(ZFSSRC)/Makefile.inc
CPPFLAGS += -I$(SRC)/uts/common
+# 64-bit smatch false positive :/
+SMOFF += uninitialized
+
clean: clobber
clobber:
$(RM) $(CLEANFILES) $(OBJS) machine $(LIBRARY)
diff --git a/usr/src/lib/fm/topo/libtopo/common/topo_mod.c b/usr/src/lib/fm/topo/libtopo/common/topo_mod.c
index b8a1373d86..4b1cf13d34 100644
--- a/usr/src/lib/fm/topo/libtopo/common/topo_mod.c
+++ b/usr/src/lib/fm/topo/libtopo/common/topo_mod.c
@@ -989,7 +989,7 @@ topo_mod_create_ufm_slot(topo_mod_t *mod, tnode_t *ufmnode,
if (slotinfo == NULL || slotinfo->usi_version == NULL ||
slotinfo->usi_mode == 0) {
topo_mod_dprintf(mod, "invalid slot info");
- topo_mod_seterrno(mod, ETOPO_MOD_INVAL);
+ (void) topo_mod_seterrno(mod, ETOPO_MOD_INVAL);
return (NULL);
}
if ((auth = topo_mod_auth(mod, ufmnode)) == NULL) {