On March 16, 2017 5:15:16 PM PDT, Michael Davidson <m...@google.com> wrote:
>Suppress clang warnings about potential unaliged accesses
>to members in packed structs. This gets rid of almost 10,000
>warnings about accesses to the ring 0 stack pointer in the TSS.
>Signed-off-by: Michael Davidson <m...@google.com>
> arch/x86/Makefile | 5 +++++
> 1 file changed, 5 insertions(+)
>diff --git a/arch/x86/Makefile b/arch/x86/Makefile
>index 894a8d18bf97..7f21703c475d 100644
>@@ -128,6 +128,11 @@ endif
> KBUILD_CFLAGS += $(call cc-option,-maccumulate-outgoing-args)
>+# Suppress clang warnings about potential unaligned accesses.
>+KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
> ifdef CONFIG_X86_X32
> x32_ld_ok := $(call try-run,\
> /bin/echo -e '1: .quad 1b' | \
Why conditional on clang?
Sent from my Android device with K-9 Mail. Please excuse my brevity.