lkml.org 
[lkml]   [2005]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 2/8] s390: define atomic_sub_return.
[patch 2/8] s390: define atomic_sub_return.

From: Martin Schwidefsky <schwidefsky@de.ibm.com>

Add missing atomic_sub_return for skb_release_data.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:11    [W:0.024 / U:1.760 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site