android_kernel_samsung_a7y1.../arch/x86/boot
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
..
compressed x86/boot: Disable the address-of-packed-member compiler warning 2020-04-06 20:50:27 +02:00
tools A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
a20.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
apm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bioscall.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bitops.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
boot.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cmdline.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
code16gcc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
copy.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpucheck.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpuflags.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpuflags.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ctype.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
early_serial_console.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
edd.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
header.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
install.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
main.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile x86/build: Specify elf_i386 linker emulation explicitly for i386 objects 2020-04-06 14:56:37 +02:00
memory.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mkcpustr.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mtools.conf.in A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pmjump.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
printf.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
regs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
setup.ld A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
string.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
string.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tty.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
version.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vesa.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
video-bios.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
video-mode.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
video-vesa.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
video-vga.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
video.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
video.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30