android_kernel_samsung_a7y1.../arch/x86
Matthias Kaehlcke f40a74934c x86/boot: Disable the address-of-packed-member compiler warning
commit 20c6c189045539d29f4854d92b7ea9c329e1edfc upstream.

The clang warning 'address-of-packed-member' is disabled for the general
kernel code, also disable it for the x86 boot code.

This suppresses a bunch of warnings like this when building with clang:

./arch/x86/include/asm/processor.h:535:30: warning: taking address of
  packed member 'sp0' of class or structure 'x86_hw_tss' may result in an
  unaligned pointer value [-Waddress-of-packed-member]
    return this_cpu_read_stable(cpu_tss.x86_tss.sp0);
                                ^~~~~~~~~~~~~~~~~~~
./arch/x86/include/asm/percpu.h:391:59: note: expanded from macro
  'this_cpu_read_stable'
    #define this_cpu_read_stable(var)       percpu_stable_op("mov", var)
                                                                    ^~~
./arch/x86/include/asm/percpu.h:228:16: note: expanded from macro
  'percpu_stable_op'
    : "p" (&(var)));
             ^~~

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Cc: Doug Anderson <dianders@chromium.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20170725215053.135586-1-mka@chromium.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 20:50:27 +02:00
..
boot x86/boot: Disable the address-of-packed-member compiler warning 2020-04-06 20:50:27 +02:00
configs
crypto crypto: x86/crct10dif-pcl - fix use via crypto_shash_digest() 2020-04-06 18:12:16 +02:00
entry x86/vdso: Remove direct HPET access through the vDSO 2020-04-06 20:50:21 +02:00
ia32 x86/ia32: Fix ia32_restore_sigcontext() AC leak 2020-04-06 18:19:56 +02:00
include x86/vdso: Remove direct HPET access through the vDSO 2020-04-06 20:50:21 +02:00
kernel x86/vdso: Remove direct HPET access through the vDSO 2020-04-06 20:50:21 +02:00
kvm x86/vdso: Remove direct HPET access through the vDSO 2020-04-06 20:50:21 +02:00
lguest
lib
math-emu x86: math-emu: Hide clang warnings for 16-bit overflow 2020-04-06 20:27:16 +02:00
mm x86/mm: Sync also unmappings in vmalloc_sync_all() 2020-04-06 20:38:19 +02:00
net
oprofile
pci x86/PCI: Fix PCI IRQ routing table memory leak 2020-04-06 19:02:09 +02:00
platform
power
purgatory
ras
realmode
tools
um um: Compile with modern headers 2020-04-06 19:17:39 +02:00
video
xen
Kbuild
Kconfig
Kconfig.cpu
Kconfig.debug
Makefile x86/build: Keep local relocations with ld.lld 2020-04-06 18:19:33 +02:00
Makefile_32.cpu
Makefile.um