summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2018-09-17 17:16:21 +0930
committerMichael Ellerman <mpe@ellerman.id.au>2018-10-13 22:21:25 +1100
commitaea447141c7e7824b81b49acd1bc785506fba46e (patch)
tree9ef2ecda4abfba42068e3cbda1bf6e388795c32f /usr
parent014704e6f54189a203cc14c7c0bb411b940241bc (diff)
downloadtalos-obmc-linux-aea447141c7e7824b81b49acd1bc785506fba46e.tar.gz
talos-obmc-linux-aea447141c7e7824b81b49acd1bc785506fba46e.zip
powerpc: Disable -Wbuiltin-requires-header when setjmp is used
The powerpc kernel uses setjmp which causes a warning when building with clang: In file included from arch/powerpc/xmon/xmon.c:51: ./arch/powerpc/include/asm/setjmp.h:15:13: error: declaration of built-in function 'setjmp' requires inclusion of the header <setjmp.h> [-Werror,-Wbuiltin-requires-header] extern long setjmp(long *); ^ ./arch/powerpc/include/asm/setjmp.h:16:13: error: declaration of built-in function 'longjmp' requires inclusion of the header <setjmp.h> [-Werror,-Wbuiltin-requires-header] extern void longjmp(long *, long); ^ This *is* the header and we're not using the built-in setjump but rather the one in arch/powerpc/kernel/misc.S. As the compiler warning does not make sense, it for the files where setjmp is used. Signed-off-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> [mpe: Move subdir-ccflags in xmon/Makefile to not clobber -Werror] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud