From: "Jan Beulich" arch/x86_64/kernel/traps.c: In function 'show_trace': arch/x86_64/kernel/traps.c:287: warning: cast to pointer from integer of different size > >That's > > stack = (unsigned long *)UNW_SP(&info); > >which expands to > > stack = (unsigned long *)((void)(&info), 0); > >because CONFIG_UNWIND_INFO=n. > Simple to fix I guess, although I think the compiler could do better here (after all, they must already be special casing (void *)0 in order for the conventional definition of NULL to not trigger the warning. Signed-off-by: Jan Beulich Cc: Andi Kleen Signed-off-by: Andrew Morton --- include/asm-i386/unwind.h | 4 ++-- include/asm-x86_64/unwind.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff -puN include/asm-i386/unwind.h~unwinder-warning-fixes include/asm-i386/unwind.h --- a/include/asm-i386/unwind.h~unwinder-warning-fixes +++ a/include/asm-i386/unwind.h @@ -87,8 +87,8 @@ static inline int arch_unw_user_mode(con #else -#define UNW_PC(frame) ((void)(frame), 0) -#define UNW_SP(frame) ((void)(frame), 0) +#define UNW_PC(frame) ((void)(frame), 0UL) +#define UNW_SP(frame) ((void)(frame), 0UL) static inline int arch_unw_user_mode(const void *info) { diff -puN include/asm-x86_64/unwind.h~unwinder-warning-fixes include/asm-x86_64/unwind.h --- a/include/asm-x86_64/unwind.h~unwinder-warning-fixes +++ a/include/asm-x86_64/unwind.h @@ -94,8 +94,8 @@ static inline int arch_unw_user_mode(con #else -#define UNW_PC(frame) ((void)(frame), 0) -#define UNW_SP(frame) ((void)(frame), 0) +#define UNW_PC(frame) ((void)(frame), 0UL) +#define UNW_SP(frame) ((void)(frame), 0UL) static inline int arch_unw_user_mode(const void *info) { _