Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a651c93 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky
Browse files

[S390] Fix gcc warning about unused return values.

parent 82d6897f
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -129,7 +129,12 @@ 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))))
({									  \
	__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)
{