Commit f54f9f0e authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

bitopts: add a size sufix for ambiguous instructions

clang requires that.

In file included from arch/x86/cpu.c:9:
arch/x86/include/asm/bitops.h:24:15: error: ambiguous instructions
require an explicit suffix (could be 'btsw', 'btsl', or 'btsq')
        asm volatile("bts %1,%0" : ADDR : "Ir" (nr) : "memory");
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent f238d566
......@@ -21,12 +21,12 @@
static inline void set_bit(int nr, volatile unsigned long *addr)
{
asm volatile("bts %1,%0" : ADDR : "Ir" (nr) : "memory");
asm volatile("btsl %1,%0" : ADDR : "Ir" (nr) : "memory");
}
static inline void change_bit(int nr, volatile unsigned long *addr)
{
asm volatile("btc %1,%0" : ADDR : "Ir" (nr));
asm volatile("btcl %1,%0" : ADDR : "Ir" (nr));
}
static inline int test_bit(int nr, volatile const unsigned long *addr)
......@@ -43,7 +43,7 @@ static inline int test_bit(int nr, volatile const unsigned long *addr)
static inline void clear_bit(int nr, volatile unsigned long *addr)
{
asm volatile("btr %1,%0" : ADDR : "Ir" (nr));
asm volatile("btrl %1,%0" : ADDR : "Ir" (nr));
}
/**
......
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