aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
authorBen Hutchings <[email protected]>2015-10-01 00:40:43 +0000
committerIngo Molnar <[email protected]>2015-10-02 07:43:21 +0000
commitf4b4aae1828855db761bf998ce37d3062b1d6446 (patch)
treee2bf23ffeb061a9949415114a7538c00f4f7605a /lib/string.c
parentx86/mm: Set NX on gap between __ex_table and rodata (diff)
downloadkernel-f4b4aae1828855db761bf998ce37d3062b1d6446.tar.gz
kernel-f4b4aae1828855db761bf998ce37d3062b1d6446.zip
x86/headers/uapi: Fix __BITS_PER_LONG value for x32 builds
On x32, gcc predefines __x86_64__ but long is only 32-bit. Use __ILP32__ to distinguish x32. Fixes this compiler error in perf: tools/include/asm-generic/bitops/__ffs.h: In function '__ffs': tools/include/asm-generic/bitops/__ffs.h:19:8: error: right shift count >= width of type [-Werror=shift-count-overflow] word >>= 32; ^ This isn't sufficient to build perf for x32, though. Signed-off-by: Ben Hutchings <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions