All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix sparc32 SMP build regression
@ 2007-03-27  2:03 Robert Reif
  2007-03-27  2:11 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Reif @ 2007-03-27  2:03 UTC (permalink / raw)
  To: sparclinux

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.

Compile tested only.

Signed-off-by: Robert Reif <reif@earthlink.net>

diff --git a/arch/sparc/lib/atomic32.c b/arch/sparc/lib/atomic32.c
index 53ddcd9..559335f 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,
 	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
 	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)




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-27  2:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-27  2:03 [PATCH] fix sparc32 SMP build regression Robert Reif
2007-03-27  2:11 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.