]> git.baikalelectronics.ru Git - kernel.git/commit
s390: fix clang -Wpointer-sign warnigns in boot code
authorArnd Bergmann <arnd@arndb.de>
Mon, 15 Apr 2019 08:35:54 +0000 (10:35 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 3 May 2019 15:17:58 +0000 (17:17 +0200)
commit628c009cb81d220f6d204550079f19edd34442cf
treece2b1fa8bb634c537db0e501df1811a3ee5bd320
parentcc45e5bd5ecefcaae45ab1fdecd8c163f7fb25cb
s390: fix clang -Wpointer-sign warnigns in boot code

The arch/s390/boot directory is built with its own set of compiler
options that does not include -Wno-pointer-sign like the rest of
the kernel does, this causes a lot of harmless but correct warnings
when building with clang.

For the atomics, we can add type casts to avoid the warnings, for
everything else the easiest way is to slightly adapt the types
to be more consistent.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/boot/ipl_parm.c
arch/s390/include/asm/bitops.h
arch/s390/include/asm/ebcdic.h
arch/s390/include/asm/lowcore.h
drivers/s390/char/sclp.h