Skip to content

Commit

Permalink
h8300: Restraint of warning.
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshinori Sato <[email protected]>
  • Loading branch information
ysat0 committed Jan 20, 2016
1 parent 697899f commit f1a47f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/h8300/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit f1a47f3

Please sign in to comment.