Module: xenomai-2.5 Branch: master Commit: 7d91753afec8c5bf2fcc3422c18f248baab268d6 URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=7d91753afec8c5bf2fcc3422c18f248baab268d6
Author: Jan Kiszka <[email protected]> Date: Fri Apr 29 14:12:13 2011 +0200 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. Signed-off-by: Jan Kiszka <[email protected]> --- include/asm-x86/syscall.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/asm-x86/syscall.h b/include/asm-x86/syscall.h index 06195c9..b02c01d 100644 --- a/include/asm-x86/syscall.h +++ b/include/asm-x86/syscall.h @@ -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...) \ _______________________________________________ Xenomai-git mailing list [email protected] https://mail.gna.org/listinfo/xenomai-git
