aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asm-x86/bitops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-x86/bitops.h b/include/asm-x86/bitops.h
index 6c5054819719..96b1829cea15 100644
--- a/include/asm-x86/bitops.h
+++ b/include/asm-x86/bitops.h
@@ -58,7 +58,7 @@ static inline void set_bit(unsigned int nr, volatile unsigned long *addr)
58 if (IS_IMMEDIATE(nr)) { 58 if (IS_IMMEDIATE(nr)) {
59 asm volatile(LOCK_PREFIX "orb %1,%0" 59 asm volatile(LOCK_PREFIX "orb %1,%0"
60 : CONST_MASK_ADDR(nr, addr) 60 : CONST_MASK_ADDR(nr, addr)
61 : "i" (CONST_MASK(nr)) 61 : "iq" ((u8)CONST_MASK(nr))
62 : "memory"); 62 : "memory");
63 } else { 63 } else {
64 asm volatile(LOCK_PREFIX "bts %1,%0" 64 asm volatile(LOCK_PREFIX "bts %1,%0"
@@ -95,7 +95,7 @@ static inline void clear_bit(int nr, volatile unsigned long *addr)
95 if (IS_IMMEDIATE(nr)) { 95 if (IS_IMMEDIATE(nr)) {
96 asm volatile(LOCK_PREFIX "andb %1,%0" 96 asm volatile(LOCK_PREFIX "andb %1,%0"
97 : CONST_MASK_ADDR(nr, addr) 97 : CONST_MASK_ADDR(nr, addr)
98 : "i" (~CONST_MASK(nr))); 98 : "iq" ((u8)~CONST_MASK(nr)));
99 } else { 99 } else {
100 asm volatile(LOCK_PREFIX "btr %1,%0" 100 asm volatile(LOCK_PREFIX "btr %1,%0"
101 : BITOP_ADDR(addr) 101 : BITOP_ADDR(addr)