2005-03-17 14:56:11

by Martin Schwidefsky

[permalink] [raw]
Subject: [patch 2/8] s390: define atomic_sub_return.

[patch 2/8] s390: define atomic_sub_return.

From: Martin Schwidefsky <[email protected]>

Add missing atomic_sub_return for skb_release_data.

Signed-off-by: Martin Schwidefsky <[email protected]>

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");