summaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorRobert Reif2007-03-27 04:10:43 +0200
committerDavid S. Miller2007-03-27 06:49:13 +0200
commit74e61dee2a98b5e538ee1448ca803fc0ad8e307f (patch)
treee69b02cd0816147953555530f4c4684556d9e780 /arch/sparc
parent[DRM]: Delete sparc64 FFB driver code that never gets built. (diff)
downloadkernel-qcow2-linux-74e61dee2a98b5e538ee1448ca803fc0ad8e307f.tar.gz
kernel-qcow2-linux-74e61dee2a98b5e538ee1448ca803fc0ad8e307f.tar.xz
kernel-qcow2-linux-74e61dee2a98b5e538ee1448ca803fc0ad8e307f.zip
[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>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/lib/atomic32.c2
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)
spin_unlock_irqrestore(ATOMIC_HASH(v), flags);
return ret;
}
+EXPORT_SYMBOL(atomic_cmpxchg);
int atomic_add_unless(atomic_t *v, int a, int u)
{
@@ -65,6 +66,7 @@ int atomic_add_unless(atomic_t *v, int a, int u)
spin_unlock_irqrestore(ATOMIC_HASH(v), flags);
return ret != u;
}
+EXPORT_SYMBOL(atomic_add_unless);
/* Atomic operations are already serializing */
void atomic_set(atomic_t *v, int i)