diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2016-01-15 13:28:18 +0900 |
---|---|---|
committer | Yoshinori Sato <ysato@users.sourceforge.jp> | 2016-01-20 23:27:59 +0900 |
commit | db903b462b3e7a0cbd4bace485d0d4ba27344ec7 (patch) | |
tree | 2c80dd68affc94a6343ab696edaf3a968909ffb2 /arch | |
parent | 96ff2d7081cfc50e5493e9a5ac7c58bfa2ea41d3 (diff) | |
download | op-kernel-dev-db903b462b3e7a0cbd4bace485d0d4ba27344ec7.zip op-kernel-dev-db903b462b3e7a0cbd4bace485d0d4ba27344ec7.tar.gz |
h8300: Restraint of warning.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Diffstat (limited to 'arch')
-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 f0e14f3..2e221c5 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) static inline void ctrl_bclr(int b, void __iomem *addr) { if (__builtin_constant_p(b)) - __asm__("bclr %1,%0" : "+WU"(*addr): "i"(b)); + __asm__("bclr %1,%0" : "+WU"(*(u8 *)addr): "i"(b)); else - __asm__("bclr %w1,%0" : "+WU"(*addr): "r"(b)); + __asm__("bclr %w1,%0" : "+WU"(*(u8 *)addr): "r"(b)); } static inline void ctrl_bset(int b, void __iomem *addr) { if (__builtin_constant_p(b)) - __asm__("bset %1,%0" : "+WU"(*addr): "i"(b)); + __asm__("bset %1,%0" : "+WU"(*(u8 *)addr): "i"(b)); else - __asm__("bset %w1,%0" : "+WU"(*addr): "r"(b)); + __asm__("bset %w1,%0" : "+WU"(*(u8 *)addr): "r"(b)); } #include <asm-generic/io.h> |