projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82d6897
)
[S390] Fix gcc warning about unused return values.
author
Heiko Carstens
<
[email protected]
>
Mon, 17 Jul 2006 14:09:18 +0000
(16:09 +0200)
committer
Martin Schwidefsky
<
[email protected]
>
Mon, 17 Jul 2006 14:09:18 +0000
(16:09 +0200)
Signed-off-by: Heiko Carstens <
[email protected]
>
Signed-off-by: Martin Schwidefsky <
[email protected]
>
include/asm-s390/system.h
patch
|
blob
|
history
diff --git
a/include/asm-s390/system.h
b/include/asm-s390/system.h
index 36a3a85d611ab1d3b876f86940f0129a10c35931..16040048cd1b3498ba48761adb7daa11cddb6d76 100644
(file)
--- a/
include/asm-s390/system.h
+++ b/
include/asm-s390/system.h
@@
-128,8
+128,13
@@
extern void account_system_vtime(struct task_struct *);
#define nop() __asm__ __volatile__ ("nop")
-#define xchg(ptr,x) \
- ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(void *)(ptr),sizeof(*(ptr))))
+#define xchg(ptr,x) \
+({ \
+ __typeof__(*(ptr)) __ret; \
+ __ret = (__typeof__(*(ptr))) \
+ __xchg((unsigned long)(x), (void *)(ptr),sizeof(*(ptr))); \
+ __ret; \
+})
static inline unsigned long __xchg(unsigned long x, void * ptr, int size)
{