[patch 2/8] s390: define atomic_sub_return.

From: Martin Schwidefsky
Date: Thu Mar 17 2005 - 09:57:30 EST


[patch 2/8] s390: define atomic_sub_return.

From: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>

Add missing atomic_sub_return for skb_release_data.

Signed-off-by: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>

diffstat:
include/asm-s390/atomic.h | 4 ++++
1 files changed, 4 insertions(+)

diff -urN linux-2.6/include/asm-s390/atomic.h linux-2.6-patched/include/asm-s390/atomic.h
--- linux-2.6/include/asm-s390/atomic.h 2005-03-02 08:37:48.000000000 +0100
+++ linux-2.6-patched/include/asm-s390/atomic.h 2005-03-17 15:35:58.000000000 +0100
@@ -61,6 +61,10 @@
{
__CS_LOOP(v, i, "sr");
}
+static __inline__ int atomic_sub_return(int i, atomic_t * v)
+{
+ return __CS_LOOP(v, i, "sr");
+}
static __inline__ void atomic_inc(volatile atomic_t * v)
{
__CS_LOOP(v, 1, "ar");
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/