diff options
author | Matthias Kaehlcke <[email protected]> | 2017-07-25 14:50:53 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-07-28 08:39:08 +0200 |
commit | 20c6c189045539d29f4854d92b7ea9c329e1edfc (patch) | |
tree | d18ca4fe4d06006495b047f1d763bc4fe943bdf0 /arch/sparc/lib/cmpdi2.c | |
parent | 4ecf7191fdcc5686c1eb2b06d7f93ce29d636cf0 (diff) |
x86/boot: Disable the address-of-packed-member compiler warning
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 <[email protected]>
Cc: Doug Anderson <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'arch/sparc/lib/cmpdi2.c')
0 files changed, 0 insertions, 0 deletions