Skip to content

Commit bfb3898

Browse files
Matthias Kaehlckemasahir0y
authored andcommitted
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>
1 parent f8224f7 commit bfb3898

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,)
698698
KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable)
699699
KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier)
700700
KBUILD_CFLAGS += $(call cc-disable-warning, gnu)
701+
KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
701702
# Quiet clang warning: comparison of unsigned expression < 0 is always false
702703
KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare)
703704
# CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the

0 commit comments

Comments
 (0)