Skip to content

Commit

Permalink
[S390] Fix gcc warning about unused return values.
Browse files Browse the repository at this point in the history
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Jul 17, 2006
1 parent 82d6897 commit 5a651c9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions include/asm-s390/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 5a651c9

Please sign in to comment.