]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Fix unwinder warning in traps.c
authorAndi Kleen <ak@suse.de>
Tue, 26 Sep 2006 08:52:42 +0000 (10:52 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 26 Sep 2006 08:52:42 +0000 (10:52 +0200)
Fix

linux/arch/x86_64/kernel/traps.c: In function 'dump_trace':
linux/arch/x86_64/kernel/traps.c:275: warning: cast to pointer from integer of different size

with allnoconfig

Cc: jbeulich@novell.com
Signed-off-by: Andi Kleen <ak@suse.de>
include/asm-x86_64/unwind.h

index b8fa5cb7ff88e2f51efea28db8751bec6ecd989c..2e7ff10fd7751db2e967101c4b7749ad32b7f3a8 100644 (file)
@@ -99,8 +99,8 @@ static inline int arch_unw_user_mode(const struct unwind_frame_info *info)
 
 #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)
 {