Commit db903b46 authored by Yoshinori Sato's avatar Yoshinori Sato

h8300: Restraint of warning.

Signed-off-by: default avatarYoshinori Sato <ysato@users.sourceforge.jp>
parent 96ff2d70
...@@ -44,17 +44,17 @@ static inline void __raw_writel(u32 b, const volatile void __iomem *addr) ...@@ -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) static inline void ctrl_bclr(int b, void __iomem *addr)
{ {
if (__builtin_constant_p(b)) if (__builtin_constant_p(b))
__asm__("bclr %1,%0" : "+WU"(*addr): "i"(b)); __asm__("bclr %1,%0" : "+WU"(*(u8 *)addr): "i"(b));
else 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) static inline void ctrl_bset(int b, void __iomem *addr)
{ {
if (__builtin_constant_p(b)) if (__builtin_constant_p(b))
__asm__("bset %1,%0" : "+WU"(*addr): "i"(b)); __asm__("bset %1,%0" : "+WU"(*(u8 *)addr): "i"(b));
else else
__asm__("bset %w1,%0" : "+WU"(*addr): "r"(b)); __asm__("bset %w1,%0" : "+WU"(*(u8 *)addr): "r"(b));
} }
#include <asm-generic/io.h> #include <asm-generic/io.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment