summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2017-04-21 14:39:30 -0700
committerGreg Hackmann <ghackmann@google.com>2017-10-09 14:00:13 -0700
commitea2f9b02ed2fb2a0ab3d0f3d427db27ef550dab2 (patch)
tree7211ae3aacaf9ae041993a89a7abd8c63a38979e
parent6613aeae39d692d5a1f0432b76184b7ef84b4072 (diff)
UPSTREAM: kbuild: clang: Disable 'address-of-packed-member' warning
clang generates plenty of these warnings in different parts of the code, to an extent that the warnings are little more than noise. Disable the 'address-of-packed-member' warning. Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> (cherry picked from commit bfb38988c51e440fd7062ddf3157f7d8b1dd5d70) Signed-off-by: Greg Hackmann <ghackmann@google.com> Change-Id: I35ecf1b35a908d41ee791a8a651e3cfb4edd081b
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9f32fb972fb6..c8d44abe2df2 100644
--- a/Makefile
+++ b/Makefile
@@ -707,6 +707,7 @@ KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,)
KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable)
KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier)
KBUILD_CFLAGS += $(call cc-disable-warning, gnu)
+KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
# Quiet clang warning: comparison of unsigned expression < 0 is always false
KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare)
# CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the