summaryrefslogtreecommitdiff
path: root/usr/src/uts/intel/cxgbe/t4nex
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2017-07-11 17:38:55 +0000
committerRobert Mustacchi <rm@joyent.com>2017-07-11 17:38:49 +0000
commitf5cbb2eb91c994ad03d3ff136afae15a8fe5991f (patch)
treed69625c2af8e7c6a88ccdffbae4afb6e90e92da8 /usr/src/uts/intel/cxgbe/t4nex
parentbf74c488e9db30727ab39d3ec804fa1ef8250e9e (diff)
downloadillumos-joyent-dev-t6.tar.gz
fix various lint issuesdev-t6
Diffstat (limited to 'usr/src/uts/intel/cxgbe/t4nex')
-rw-r--r--usr/src/uts/intel/cxgbe/t4nex/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/usr/src/uts/intel/cxgbe/t4nex/Makefile b/usr/src/uts/intel/cxgbe/t4nex/Makefile
index 4fa7beeba0..6ebef6a7ea 100644
--- a/usr/src/uts/intel/cxgbe/t4nex/Makefile
+++ b/usr/src/uts/intel/cxgbe/t4nex/Makefile
@@ -66,6 +66,32 @@ LINTFLAGS += -I$(UTSBASE)/common/io/cxgbe -I$(UTSBASE)/common/io/cxgbe/common \
LINTFLAGS += -Xc99=%all
#
+# A lot of these come from the fact that there are static inlines and
+# that this driver leverages various C99 and some GNU C extensions.
+#
+LINTTAGS += -erroff=E_STATIC_UNUSED
+LINTTAGS += -erroff=E_FUNC_ARG_UNUSED
+LINTTAGS += -erroff=E_ZERO_OR_NEGATIVE_SUBSCRIPT
+LINTTAGS += -erroff=E_ZERO_SIZED_STRUCT_UNION
+LINTTAGS += -erroff=E_ANONYMOUS_UNION_DECL
+LINTTAGS += -erroff=E_CONSTANT_CONDITION
+
+#
+# These have been manually verified at the moment. When updating this
+# driver, please manually check the following lint warnings. Note some
+# of these are due to limitations in Sun Studio.
+#
+LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
+LINTTAGS += -erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX
+LINTTAGS += -erroff=E_FUNC_NO_RET_VAL
+LINTTAGS += -erroff=E_NOP_IF_STMT
+LINTTAGS += -erroff=E_FUNC_SET_NOT_USED
+LINTTAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
+LINTTAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
+LINTTAGS += -erroff=E_CASE_FALLTHRU
+LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
+
+#
# Default build targets.
#
.KEEP_STATE: