diff options
| -rw-r--r-- | arch/s390/boot/ipl_parm.c | 2 | ||||
| -rw-r--r-- | arch/s390/include/asm/bitops.h | 12 | ||||
| -rw-r--r-- | arch/s390/include/asm/ebcdic.h | 2 | ||||
| -rw-r--r-- | arch/s390/include/asm/lowcore.h | 2 | ||||
| -rw-r--r-- | drivers/s390/char/sclp.h | 4 |
5 files changed, 11 insertions, 11 deletions
diff --git a/arch/s390/boot/ipl_parm.c b/arch/s390/boot/ipl_parm.c index b49bd97d33af..3c49bde8aa5e 100644 --- a/arch/s390/boot/ipl_parm.c +++ b/arch/s390/boot/ipl_parm.c | |||
| @@ -56,7 +56,7 @@ void store_ipl_parmblock(void) | |||
| 56 | ipl_block_valid = 1; | 56 | ipl_block_valid = 1; |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | static size_t scpdata_length(const char *buf, size_t count) | 59 | static size_t scpdata_length(const u8 *buf, size_t count) |
| 60 | { | 60 | { |
| 61 | while (count) { | 61 | while (count) { |
| 62 | if (buf[count - 1] != '\0' && buf[count - 1] != ' ') | 62 | if (buf[count - 1] != '\0' && buf[count - 1] != ' ') |
diff --git a/arch/s390/include/asm/bitops.h b/arch/s390/include/asm/bitops.h index d1f8a4d94cca..9900d655014c 100644 --- a/arch/s390/include/asm/bitops.h +++ b/arch/s390/include/asm/bitops.h | |||
| @@ -73,7 +73,7 @@ static inline void set_bit(unsigned long nr, volatile unsigned long *ptr) | |||
| 73 | } | 73 | } |
| 74 | #endif | 74 | #endif |
| 75 | mask = 1UL << (nr & (BITS_PER_LONG - 1)); | 75 | mask = 1UL << (nr & (BITS_PER_LONG - 1)); |
| 76 | __atomic64_or(mask, addr); | 76 | __atomic64_or(mask, (long *)addr); |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | static inline void clear_bit(unsigned long nr, volatile unsigned long *ptr) | 79 | static inline void clear_bit(unsigned long nr, volatile unsigned long *ptr) |
| @@ -94,7 +94,7 @@ static inline void clear_bit(unsigned long nr, volatile unsigned long *ptr) | |||
| 94 | } | 94 | } |
| 95 | #endif | 95 | #endif |
| 96 | mask = ~(1UL << (nr & (BITS_PER_LONG - 1))); | 96 | mask = ~(1UL << (nr & (BITS_PER_LONG - 1))); |
| 97 | __atomic64_and(mask, addr); | 97 | __atomic64_and(mask, (long *)addr); |
| 98 | } | 98 | } |
| 99 | 99 | ||
| 100 | static inline void change_bit(unsigned long nr, volatile unsigned long *ptr) | 100 | static inline void change_bit(unsigned long nr, volatile unsigned long *ptr) |
| @@ -115,7 +115,7 @@ static inline void change_bit(unsigned long nr, volatile unsigned long *ptr) | |||
| 115 | } | 115 | } |
| 116 | #endif | 116 | #endif |
| 117 | mask = 1UL << (nr & (BITS_PER_LONG - 1)); | 117 | mask = 1UL << (nr & (BITS_PER_LONG - 1)); |
| 118 | __atomic64_xor(mask, addr); | 118 | __atomic64_xor(mask, (long *)addr); |
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | static inline int | 121 | static inline int |
| @@ -125,7 +125,7 @@ test_and_set_bit(unsigned long nr, volatile unsigned long *ptr) | |||
| 125 | unsigned long old, mask; | 125 | unsigned long old, mask; |
| 126 | 126 | ||
| 127 | mask = 1UL << (nr & (BITS_PER_LONG - 1)); | 127 | mask = 1UL << (nr & (BITS_PER_LONG - 1)); |
| 128 | old = __atomic64_or_barrier(mask, addr); | 128 | old = __atomic64_or_barrier(mask, (long *)addr); |
| 129 | return (old & mask) != 0; | 129 | return (old & mask) != 0; |
| 130 | } | 130 | } |
| 131 | 131 | ||
| @@ -136,7 +136,7 @@ test_and_clear_bit(unsigned long nr, volatile unsigned long *ptr) | |||
| 136 | unsigned long old, mask; | 136 | unsigned long old, mask; |
| 137 | 137 | ||
| 138 | mask = ~(1UL << (nr & (BITS_PER_LONG - 1))); | 138 | mask = ~(1UL << (nr & (BITS_PER_LONG - 1))); |
| 139 | old = __atomic64_and_barrier(mask, addr); | 139 | old = __atomic64_and_barrier(mask, (long *)addr); |
| 140 | return (old & ~mask) != 0; | 140 | return (old & ~mask) != 0; |
| 141 | } | 141 | } |
| 142 | 142 | ||
| @@ -147,7 +147,7 @@ test_and_change_bit(unsigned long nr, volatile unsigned long *ptr) | |||
| 147 | unsigned long old, mask; | 147 | unsigned long old, mask; |
| 148 | 148 | ||
| 149 | mask = 1UL << (nr & (BITS_PER_LONG - 1)); | 149 | mask = 1UL << (nr & (BITS_PER_LONG - 1)); |
| 150 | old = __atomic64_xor_barrier(mask, addr); | 150 | old = __atomic64_xor_barrier(mask, (long *)addr); |
| 151 | return (old & mask) != 0; | 151 | return (old & mask) != 0; |
| 152 | } | 152 | } |
| 153 | 153 | ||
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 */ | |||
| 20 | extern __u8 _ebc_toupper[256]; /* EBCDIC -> uppercase */ | 20 | extern __u8 _ebc_toupper[256]; /* EBCDIC -> uppercase */ |
| 21 | 21 | ||
| 22 | static inline void | 22 | static inline void |
| 23 | codepage_convert(const __u8 *codepage, volatile __u8 * addr, unsigned long nr) | 23 | codepage_convert(const __u8 *codepage, volatile char *addr, unsigned long nr) |
| 24 | { | 24 | { |
| 25 | if (nr-- <= 0) | 25 | if (nr-- <= 0) |
| 26 | return; | 26 | return; |
diff --git a/arch/s390/include/asm/lowcore.h b/arch/s390/include/asm/lowcore.h index 5b9f10b1e55d..237ee0c4169f 100644 --- a/arch/s390/include/asm/lowcore.h +++ b/arch/s390/include/asm/lowcore.h | |||
| @@ -129,7 +129,7 @@ struct lowcore { | |||
| 129 | /* SMP info area */ | 129 | /* SMP info area */ |
| 130 | __u32 cpu_nr; /* 0x03a0 */ | 130 | __u32 cpu_nr; /* 0x03a0 */ |
| 131 | __u32 softirq_pending; /* 0x03a4 */ | 131 | __u32 softirq_pending; /* 0x03a4 */ |
| 132 | __u32 preempt_count; /* 0x03a8 */ | 132 | __s32 preempt_count; /* 0x03a8 */ |
| 133 | __u32 spinlock_lockval; /* 0x03ac */ | 133 | __u32 spinlock_lockval; /* 0x03ac */ |
| 134 | __u32 spinlock_index; /* 0x03b0 */ | 134 | __u32 spinlock_index; /* 0x03b0 */ |
| 135 | __u32 fpu_flags; /* 0x03b4 */ | 135 | __u32 fpu_flags; /* 0x03b4 */ |
diff --git a/drivers/s390/char/sclp.h b/drivers/s390/char/sclp.h index 28b433960831..196333013e54 100644 --- a/drivers/s390/char/sclp.h +++ b/drivers/s390/char/sclp.h | |||
| @@ -367,14 +367,14 @@ sclp_ascebc(unsigned char ch) | |||
| 367 | 367 | ||
| 368 | /* translate string from EBCDIC to ASCII */ | 368 | /* translate string from EBCDIC to ASCII */ |
| 369 | static inline void | 369 | static inline void |
| 370 | sclp_ebcasc_str(unsigned char *str, int nr) | 370 | sclp_ebcasc_str(char *str, int nr) |
| 371 | { | 371 | { |
| 372 | (MACHINE_IS_VM) ? EBCASC(str, nr) : EBCASC_500(str, nr); | 372 | (MACHINE_IS_VM) ? EBCASC(str, nr) : EBCASC_500(str, nr); |
| 373 | } | 373 | } |
| 374 | 374 | ||
| 375 | /* translate string from ASCII to EBCDIC */ | 375 | /* translate string from ASCII to EBCDIC */ |
| 376 | static inline void | 376 | static inline void |
| 377 | sclp_ascebc_str(unsigned char *str, int nr) | 377 | sclp_ascebc_str(char *str, int nr) |
| 378 | { | 378 | { |
| 379 | (MACHINE_IS_VM) ? ASCEBC(str, nr) : ASCEBC_500(str, nr); | 379 | (MACHINE_IS_VM) ? ASCEBC(str, nr) : ASCEBC_500(str, nr); |
| 380 | } | 380 | } |
