diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2016-01-14 23:28:18 -0500 |
---|---|---|
committer | Yoshinori Sato <ysato@users.sourceforge.jp> | 2016-01-20 09:27:59 -0500 |
commit | db903b462b3e7a0cbd4bace485d0d4ba27344ec7 (patch) | |
tree | 2c80dd68affc94a6343ab696edaf3a968909ffb2 /arch/h8300/include | |
parent | 96ff2d7081cfc50e5493e9a5ac7c58bfa2ea41d3 (diff) |
h8300: Restraint of warning.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Diffstat (limited to 'arch/h8300/include')
-rw-r--r-- | arch/h8300/include/asm/io.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/h8300/include/asm/io.h b/arch/h8300/include/asm/io.h index f0e14f3a800d..2e221c5f0203 100644 --- a/arch/h8300/include/asm/io.h +++ b/arch/h8300/include/asm/io.h | |||
@@ -44,17 +44,17 @@ static inline void __raw_writel(u32 b, const volatile void __iomem *addr) | |||
44 | static inline void ctrl_bclr(int b, void __iomem *addr) | 44 | static inline void ctrl_bclr(int b, void __iomem *addr) |
45 | { | 45 | { |
46 | if (__builtin_constant_p(b)) | 46 | if (__builtin_constant_p(b)) |
47 | __asm__("bclr %1,%0" : "+WU"(*addr): "i"(b)); | 47 | __asm__("bclr %1,%0" : "+WU"(*(u8 *)addr): "i"(b)); |
48 | else | 48 | else |
49 | __asm__("bclr %w1,%0" : "+WU"(*addr): "r"(b)); | 49 | __asm__("bclr %w1,%0" : "+WU"(*(u8 *)addr): "r"(b)); |
50 | } | 50 | } |
51 | 51 | ||
52 | static inline void ctrl_bset(int b, void __iomem *addr) | 52 | static inline void ctrl_bset(int b, void __iomem *addr) |
53 | { | 53 | { |
54 | if (__builtin_constant_p(b)) | 54 | if (__builtin_constant_p(b)) |
55 | __asm__("bset %1,%0" : "+WU"(*addr): "i"(b)); | 55 | __asm__("bset %1,%0" : "+WU"(*(u8 *)addr): "i"(b)); |
56 | else | 56 | else |
57 | __asm__("bset %w1,%0" : "+WU"(*addr): "r"(b)); | 57 | __asm__("bset %w1,%0" : "+WU"(*(u8 *)addr): "r"(b)); |
58 | } | 58 | } |
59 | 59 | ||
60 | #include <asm-generic/io.h> | 60 | #include <asm-generic/io.h> |