diff options
author | Robert Reif <reif@earthlink.net> | 2007-03-26 22:10:43 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-03-27 00:49:13 -0400 |
commit | 74e61dee2a98b5e538ee1448ca803fc0ad8e307f (patch) | |
tree | e69b02cd0816147953555530f4c4684556d9e780 | |
parent | b82f87f6d40f944a591d8d36c0fed2d4374efcb7 (diff) |
[SPARC32]: Fix SMP build regression
commit b19cbe2a1695c09c74f83646c4b82b51123b3690 [BRIDGE]: Fix fdb RCU
race
breaks sparc SMP build because atomic_add_unless is not exported.
This patch exports atomic_add_unless and atomic_cmpxchg.
Signed-off-by: Robert Reif <reif@earthlink.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/sparc/lib/atomic32.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/lib/atomic32.c b/arch/sparc/lib/atomic32.c index 53ddcd9d1e60..559335f4917d 100644 --- a/arch/sparc/lib/atomic32.c +++ b/arch/sparc/lib/atomic32.c | |||
@@ -52,6 +52,7 @@ int atomic_cmpxchg(atomic_t *v, int old, int new) | |||
52 | spin_unlock_irqrestore(ATOMIC_HASH(v), flags); | 52 | spin_unlock_irqrestore(ATOMIC_HASH(v), flags); |
53 | return ret; | 53 | return ret; |
54 | } | 54 | } |
55 | EXPORT_SYMBOL(atomic_cmpxchg); | ||
55 | 56 | ||
56 | int atomic_add_unless(atomic_t *v, int a, int u) | 57 | int atomic_add_unless(atomic_t *v, int a, int u) |
57 | { | 58 | { |
@@ -65,6 +66,7 @@ int atomic_add_unless(atomic_t *v, int a, int u) | |||
65 | spin_unlock_irqrestore(ATOMIC_HASH(v), flags); | 66 | spin_unlock_irqrestore(ATOMIC_HASH(v), flags); |
66 | return ret != u; | 67 | return ret != u; |
67 | } | 68 | } |
69 | EXPORT_SYMBOL(atomic_add_unless); | ||
68 | 70 | ||
69 | /* Atomic operations are already serializing */ | 71 | /* Atomic operations are already serializing */ |
70 | void atomic_set(atomic_t *v, int i) | 72 | void atomic_set(atomic_t *v, int i) |