summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/ebcdic.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-04-15 10:35:54 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2019-05-03 17:17:58 +0200
commit4ae987894c06056e29264e5a1051e459a4454a61 (patch)
treece2b1fa8bb634c537db0e501df1811a3ee5bd320 /arch/s390/include/asm/ebcdic.h
parents390: drop CONFIG_VIRT_TO_BUS (diff)
downloadlinux-4ae987894c06056e29264e5a1051e459a4454a61.tar.xz
linux-4ae987894c06056e29264e5a1051e459a4454a61.zip
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>
Diffstat (limited to 'arch/s390/include/asm/ebcdic.h')
-rw-r--r--arch/s390/include/asm/ebcdic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/include/asm/ebcdic.h b/arch/s390/include/asm/ebcdic.h
index 29441beb92e6..efb50fc6866c 100644
--- a/arch/s390/include/asm/ebcdic.h
+++ b/arch/s390/include/asm/ebcdic.h
@@ -20,7 +20,7 @@ extern __u8 _ebc_tolower[256]; /* EBCDIC -> lowercase */
extern __u8 _ebc_toupper[256]; /* EBCDIC -> uppercase */
static inline void
-codepage_convert(const __u8 *codepage, volatile __u8 * addr, unsigned long nr)
+codepage_convert(const __u8 *codepage, volatile char *addr, unsigned long nr)
{
if (nr-- <= 0)
return;