h8300: Restraint of warning.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
This commit is contained in:
parent
96ff2d7081
commit
db903b462b
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue