aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2013-02-21 12:25:41 -0500
committerMichael Ellerman <michael@ellerman.id.au>2013-04-17 21:53:04 -0400
commit576be13092ede98f3c0400ca7a6f6ac715a27a22 (patch)
tree577e38075596ae5271c72629aa00866c6110f2f3
parentad18a364f186e085ea3194c1900d970d0cee8fad (diff)
powerpc: Remove unused postfix parameter to DEFINE_BITOP()
None of the users of DEFINE_BITOP pass a postfix, and as far as I can tell none ever did, so drop it. Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
-rw-r--r--arch/powerpc/include/asm/bitops.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/powerpc/include/asm/bitops.h b/arch/powerpc/include/asm/bitops.h
index 08bd299c75b1..910194e9a1e2 100644
--- a/arch/powerpc/include/asm/bitops.h
+++ b/arch/powerpc/include/asm/bitops.h
@@ -53,7 +53,7 @@
53#define smp_mb__after_clear_bit() smp_mb() 53#define smp_mb__after_clear_bit() smp_mb()
54 54
55/* Macro for generating the ***_bits() functions */ 55/* Macro for generating the ***_bits() functions */
56#define DEFINE_BITOP(fn, op, prefix, postfix) \ 56#define DEFINE_BITOP(fn, op, prefix) \
57static __inline__ void fn(unsigned long mask, \ 57static __inline__ void fn(unsigned long mask, \
58 volatile unsigned long *_p) \ 58 volatile unsigned long *_p) \
59{ \ 59{ \
@@ -66,16 +66,15 @@ static __inline__ void fn(unsigned long mask, \
66 PPC405_ERR77(0,%3) \ 66 PPC405_ERR77(0,%3) \
67 PPC_STLCX "%0,0,%3\n" \ 67 PPC_STLCX "%0,0,%3\n" \
68 "bne- 1b\n" \ 68 "bne- 1b\n" \
69 postfix \
70 : "=&r" (old), "+m" (*p) \ 69 : "=&r" (old), "+m" (*p) \
71 : "r" (mask), "r" (p) \ 70 : "r" (mask), "r" (p) \
72 : "cc", "memory"); \ 71 : "cc", "memory"); \
73} 72}
74 73
75DEFINE_BITOP(set_bits, or, "", "") 74DEFINE_BITOP(set_bits, or, "")
76DEFINE_BITOP(clear_bits, andc, "", "") 75DEFINE_BITOP(clear_bits, andc, "")
77DEFINE_BITOP(clear_bits_unlock, andc, PPC_RELEASE_BARRIER, "") 76DEFINE_BITOP(clear_bits_unlock, andc, PPC_RELEASE_BARRIER)
78DEFINE_BITOP(change_bits, xor, "", "") 77DEFINE_BITOP(change_bits, xor, "")
79 78
80static __inline__ void set_bit(int nr, volatile unsigned long *addr) 79static __inline__ void set_bit(int nr, volatile unsigned long *addr)
81{ 80{