]> 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)
commit6a7028c6a7643cba08797745d4e552000b6fc9b1
treece2b1fa8bb634c537db0e501df1811a3ee5bd320
parentdfff44f4d7e21a3054409639feba1c13ce64c365
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