Skip to contentSkip to conversation

x86: Fix return type of DO_SYSCALL_INNER macro

GIT PULL Jan Kiszka 1 participant 1 message Apr 29, 2011

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

The following changes since commit 985cf80d202f97e32ae45957f2bfca764e3eb243:

nios2: fix pipeline patch for 2.6.35-mmu -- take #2 (2011-04-29 11:34:11 +0200)

are available in the git repository at:
git://git.xenomai.org/xenomai-jki.git for-upstream

Jan Kiszka (1):
x86: Fix return type of DO_SYSCALL_INNER macro

 include/asm-x86/syscall.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

---

x86: Fix return type of DO_SYSCALL_INNER macro

gcc will complain about 'conversion to ‘int’ from ‘long int’ may alter its value' with -Wconversion as DO_SYSCALL treats the return value of DO_SYSCALL_INNER as int. Align DO_SYSCALL_INNER to its user.

---
 include/asm-x86/syscall.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/asm-x86/syscall.h +1 -1
index 06195c9..b02c01d 100644
@@ -386,7 +386,7 @@ static inline void __xn_get_ebp(void **dest)
 		: "=a" (__resultvar)		\
 		: "0" (name) ASM_ARGS_##nr	\
 		: "memory", "cc", "r11", "cx");	\
-	(long) __resultvar;			\
+	(int) __resultvar;			\
 })
 
 #define DO_SYSCALL(name, nr, args...)					\
Signature · 1 line
1.7.1