summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4v
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2019-08-07 12:09:20 -0700
committerJohn Levon <john.levon@joyent.com>2019-08-16 01:57:38 -0700
commitd3b5f56344d8bfcdd6cfb82446af0e5e55ad9ebe (patch)
tree8e10c8af012b9fd1ff07c66edc3bfcf328897cf1 /usr/src/uts/sun4v
parentc4ccc1f9004b70b07e4cdb57641c38ab607306c9 (diff)
downloadillumos-joyent-d3b5f56344d8bfcdd6cfb82446af0e5e55ad9ebe.tar.gz
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized Reviewed by: Peter Tribble <peter.tribble@gmail.com> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/uts/sun4v')
-rw-r--r--usr/src/uts/sun4v/bge/Makefile2
-rw-r--r--usr/src/uts/sun4v/bootdev/Makefile2
-rw-r--r--usr/src/uts/sun4v/dr_io/Makefile2
-rw-r--r--usr/src/uts/sun4v/ds/Makefile2
-rw-r--r--usr/src/uts/sun4v/ds_pri/Makefile2
-rw-r--r--usr/src/uts/sun4v/ebus/Makefile2
-rw-r--r--usr/src/uts/sun4v/genunix/Makefile2
-rw-r--r--usr/src/uts/sun4v/ldc/Makefile2
-rw-r--r--usr/src/uts/sun4v/n2rng/Makefile2
-rw-r--r--usr/src/uts/sun4v/niumx/Makefile2
-rw-r--r--usr/src/uts/sun4v/nxge/Makefile2
-rw-r--r--usr/src/uts/sun4v/ontario/tsalarm/Makefile2
-rw-r--r--usr/src/uts/sun4v/pcie/Makefile2
-rw-r--r--usr/src/uts/sun4v/platsvc/Makefile2
-rw-r--r--usr/src/uts/sun4v/px/Makefile2
-rw-r--r--usr/src/uts/sun4v/rootnex/Makefile2
-rw-r--r--usr/src/uts/sun4v/su/Makefile2
-rw-r--r--usr/src/uts/sun4v/unix/Makefile2
-rw-r--r--usr/src/uts/sun4v/vcc/Makefile2
-rw-r--r--usr/src/uts/sun4v/vdc/Makefile2
-rw-r--r--usr/src/uts/sun4v/vds/Makefile2
-rw-r--r--usr/src/uts/sun4v/vis/Makefile2
-rw-r--r--usr/src/uts/sun4v/vnet/Makefile2
-rw-r--r--usr/src/uts/sun4v/vsw/Makefile2
24 files changed, 24 insertions, 24 deletions
diff --git a/usr/src/uts/sun4v/bge/Makefile b/usr/src/uts/sun4v/bge/Makefile
index a062204337..6a99f9e374 100644
--- a/usr/src/uts/sun4v/bge/Makefile
+++ b/usr/src/uts/sun4v/bge/Makefile
@@ -76,7 +76,7 @@ LDFLAGS += -dy -N misc/mac -N drv/ip
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-unused-variable
diff --git a/usr/src/uts/sun4v/bootdev/Makefile b/usr/src/uts/sun4v/bootdev/Makefile
index 684f732418..4b393be29b 100644
--- a/usr/src/uts/sun4v/bootdev/Makefile
+++ b/usr/src/uts/sun4v/bootdev/Makefile
@@ -66,7 +66,7 @@ CFLAGS += $(CCVERBOSE)
#
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
#
# Default build targets.
diff --git a/usr/src/uts/sun4v/dr_io/Makefile b/usr/src/uts/sun4v/dr_io/Makefile
index 1de9932500..64346521b0 100644
--- a/usr/src/uts/sun4v/dr_io/Makefile
+++ b/usr/src/uts/sun4v/dr_io/Makefile
@@ -55,7 +55,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
CFLAGS += $(CCVERBOSE)
CERRWARN += -_gcc=-Wno-parentheses
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
#
# Turn on doubleword alignment for 64 bit registers
diff --git a/usr/src/uts/sun4v/ds/Makefile b/usr/src/uts/sun4v/ds/Makefile
index 64e873f53a..ed43f2f58e 100644
--- a/usr/src/uts/sun4v/ds/Makefile
+++ b/usr/src/uts/sun4v/ds/Makefile
@@ -77,7 +77,7 @@ LDFLAGS += -dy -Nmisc/ldc
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
#
# Default build targets.
diff --git a/usr/src/uts/sun4v/ds_pri/Makefile b/usr/src/uts/sun4v/ds_pri/Makefile
index d67e8da7d0..4fd9d986af 100644
--- a/usr/src/uts/sun4v/ds_pri/Makefile
+++ b/usr/src/uts/sun4v/ds_pri/Makefile
@@ -67,7 +67,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
#
# Module Dependencies
diff --git a/usr/src/uts/sun4v/ebus/Makefile b/usr/src/uts/sun4v/ebus/Makefile
index 6ad462ca17..a278c5ed3d 100644
--- a/usr/src/uts/sun4v/ebus/Makefile
+++ b/usr/src/uts/sun4v/ebus/Makefile
@@ -76,7 +76,7 @@ CFLAGS += -dalign
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
CERRWARN += -_gcc=-Wno-switch
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
#
# Default build targets.
diff --git a/usr/src/uts/sun4v/genunix/Makefile b/usr/src/uts/sun4v/genunix/Makefile
index 3efad8b2e4..37beecd4ee 100644
--- a/usr/src/uts/sun4v/genunix/Makefile
+++ b/usr/src/uts/sun4v/genunix/Makefile
@@ -125,7 +125,7 @@ CERRWARN += -_gcc=-Wno-unused-function
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-type-limits
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
CERRWARN += -_gcc=-Wno-clobbered
CERRWARN += -_gcc=-Wno-empty-body
diff --git a/usr/src/uts/sun4v/ldc/Makefile b/usr/src/uts/sun4v/ldc/Makefile
index 0175bd7b56..f1c044bb36 100644
--- a/usr/src/uts/sun4v/ldc/Makefile
+++ b/usr/src/uts/sun4v/ldc/Makefile
@@ -78,7 +78,7 @@ LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
CERRWARN += -_gcc=-Wno-parentheses
#
diff --git a/usr/src/uts/sun4v/n2rng/Makefile b/usr/src/uts/sun4v/n2rng/Makefile
index b88975168f..ba94b5bdfb 100644
--- a/usr/src/uts/sun4v/n2rng/Makefile
+++ b/usr/src/uts/sun4v/n2rng/Makefile
@@ -68,7 +68,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
CFLAGS += $(CCVERBOSE) -DN2 -I$(COM_DIR)
LINTFLAGS += -DN2 -I$(COM_DIR)
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
#
# module dependencies
diff --git a/usr/src/uts/sun4v/niumx/Makefile b/usr/src/uts/sun4v/niumx/Makefile
index 756934f278..5ebcf02762 100644
--- a/usr/src/uts/sun4v/niumx/Makefile
+++ b/usr/src/uts/sun4v/niumx/Makefile
@@ -64,7 +64,7 @@ INC_PATH += -I$(UTSBASE)/sun4v/io/niumx
#
CFLAGS += $(CCVERBOSE)
CERRWARN += -_gcc=-Wno-parentheses
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
#
# Turn on doubleword alignment for 64 bit registers
diff --git a/usr/src/uts/sun4v/nxge/Makefile b/usr/src/uts/sun4v/nxge/Makefile
index 6d29a43007..78c316d0be 100644
--- a/usr/src/uts/sun4v/nxge/Makefile
+++ b/usr/src/uts/sun4v/nxge/Makefile
@@ -115,7 +115,7 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
CERRWARN += -_gcc=-Wno-unused-label
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-switch
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
CERRWARN += -_gcc=-Wno-type-limits
#
diff --git a/usr/src/uts/sun4v/ontario/tsalarm/Makefile b/usr/src/uts/sun4v/ontario/tsalarm/Makefile
index 7e8111d281..8f0a8a0718 100644
--- a/usr/src/uts/sun4v/ontario/tsalarm/Makefile
+++ b/usr/src/uts/sun4v/ontario/tsalarm/Makefile
@@ -86,7 +86,7 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
CERRWARN += -_gcc=-Wno-parentheses
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
#
# Default build targets.
diff --git a/usr/src/uts/sun4v/pcie/Makefile b/usr/src/uts/sun4v/pcie/Makefile
index 56b54dc602..12cf0358a9 100644
--- a/usr/src/uts/sun4v/pcie/Makefile
+++ b/usr/src/uts/sun4v/pcie/Makefile
@@ -63,7 +63,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
LDFLAGS += -dy -Nmisc/busra
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
CERRWARN += -_gcc=-Wno-unused-value
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-type-limits
diff --git a/usr/src/uts/sun4v/platsvc/Makefile b/usr/src/uts/sun4v/platsvc/Makefile
index b66ad32420..0c56b38552 100644
--- a/usr/src/uts/sun4v/platsvc/Makefile
+++ b/usr/src/uts/sun4v/platsvc/Makefile
@@ -56,7 +56,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
#
# Turn on doubleword alignment for 64 bit registers
diff --git a/usr/src/uts/sun4v/px/Makefile b/usr/src/uts/sun4v/px/Makefile
index 839ed8709e..d3b224707a 100644
--- a/usr/src/uts/sun4v/px/Makefile
+++ b/usr/src/uts/sun4v/px/Makefile
@@ -88,7 +88,7 @@ LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-type-limits
CERRWARN += -_gcc=-Wno-clobbered
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
CERRWARN += -_gcc=-Wno-unused-function
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-unused-label
diff --git a/usr/src/uts/sun4v/rootnex/Makefile b/usr/src/uts/sun4v/rootnex/Makefile
index bf26875fc0..004b5140c2 100644
--- a/usr/src/uts/sun4v/rootnex/Makefile
+++ b/usr/src/uts/sun4v/rootnex/Makefile
@@ -70,7 +70,7 @@ CFLAGS += $(CCVERBOSE)
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-parentheses
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
#
# For now, disable these lint checks; maintainers should endeavor
diff --git a/usr/src/uts/sun4v/su/Makefile b/usr/src/uts/sun4v/su/Makefile
index 52719a7dab..5b2296ce5f 100644
--- a/usr/src/uts/sun4v/su/Makefile
+++ b/usr/src/uts/sun4v/su/Makefile
@@ -70,7 +70,7 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
CERRWARN += -_gcc=-Wno-parentheses
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
#
# Default build targets.
diff --git a/usr/src/uts/sun4v/unix/Makefile b/usr/src/uts/sun4v/unix/Makefile
index 216a236f0f..084cad3622 100644
--- a/usr/src/uts/sun4v/unix/Makefile
+++ b/usr/src/uts/sun4v/unix/Makefile
@@ -120,7 +120,7 @@ LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
CERRWARN += -_gcc=-Wno-parentheses
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
CERRWARN += -_gcc=-Wno-char-subscripts
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-unused-function
diff --git a/usr/src/uts/sun4v/vcc/Makefile b/usr/src/uts/sun4v/vcc/Makefile
index 8100d00ebf..3a333ba3c8 100644
--- a/usr/src/uts/sun4v/vcc/Makefile
+++ b/usr/src/uts/sun4v/vcc/Makefile
@@ -70,7 +70,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
CERRWARN += -_gcc=-Wno-type-limits
CERRWARN += -_gcc=-Wno-unused-function
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
#
# compiler failes with not reached statements
diff --git a/usr/src/uts/sun4v/vdc/Makefile b/usr/src/uts/sun4v/vdc/Makefile
index da180435e0..9877103746 100644
--- a/usr/src/uts/sun4v/vdc/Makefile
+++ b/usr/src/uts/sun4v/vdc/Makefile
@@ -66,7 +66,7 @@ CFLAGS += $(CCVERBOSE)
CFLAGS += -D_EXTVTOC
CERRWARN += -_gcc=-Wno-parentheses
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
LDFLAGS += -dy -Nmisc/ldc -Nmisc/platsvc -Nmisc/scsi
diff --git a/usr/src/uts/sun4v/vds/Makefile b/usr/src/uts/sun4v/vds/Makefile
index 80e5028a06..664b987d0f 100644
--- a/usr/src/uts/sun4v/vds/Makefile
+++ b/usr/src/uts/sun4v/vds/Makefile
@@ -65,7 +65,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
CFLAGS += $(CCVERBOSE)
CFLAGS += -D_EXTVTOC
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
#
# module dependencies
diff --git a/usr/src/uts/sun4v/vis/Makefile b/usr/src/uts/sun4v/vis/Makefile
index f7f1f09cb7..522d46d84a 100644
--- a/usr/src/uts/sun4v/vis/Makefile
+++ b/usr/src/uts/sun4v/vis/Makefile
@@ -61,7 +61,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
.KEEP_STATE:
diff --git a/usr/src/uts/sun4v/vnet/Makefile b/usr/src/uts/sun4v/vnet/Makefile
index a24d4790b6..858c2c58da 100644
--- a/usr/src/uts/sun4v/vnet/Makefile
+++ b/usr/src/uts/sun4v/vnet/Makefile
@@ -92,7 +92,7 @@ CERRWARN += -_gcc=-Wno-unused-label
CERRWARN += -_gcc=-Wno-unused-function
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-parentheses
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
#
# Default build targets.
diff --git a/usr/src/uts/sun4v/vsw/Makefile b/usr/src/uts/sun4v/vsw/Makefile
index bbc07208ef..e7d0a439e7 100644
--- a/usr/src/uts/sun4v/vsw/Makefile
+++ b/usr/src/uts/sun4v/vsw/Makefile
@@ -88,7 +88,7 @@ LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
CERRWARN += -_gcc=-Wno-type-limits
CERRWARN += -_gcc=-Wno-clobbered
CERRWARN += -_gcc=-Wno-unused-variable
-CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += $(CNOWARN_UNINIT)
CERRWARN += -_gcc=-Wno-unused-function
CERRWARN += -_gcc=-Wno-unused-label