On Thu, Dec 13, 2012 at 10:23:10AM -0800, Joe Perches wrote: > m->ip is a u64 so, when compiling x86-32, there's a new warning > "cast to pointer from integer of different size". This isn't new > different behavior, just a new warning. The previous print_symbol > took a ulong and the u64 was silently truncated. > > CC arch/x86/kernel/cpu/mcheck/mce.o > arch/x86/kernel/cpu/mcheck/mce.c: In function ‘print_mce’: > arch/x86/kernel/cpu/mcheck/mce.c:246:4: warning: cast to pointer from integer > of different size [-Wint-to-pointer-cast] > > If appropriate, the code could be changed to > > (void *)(unsigned long)m->ip
Can we explicitly cast it to what it is so that we can be explicit as to what we're casting it? IOW: (void *)(__u64)m->ip; Does that even work on 32bit? Also, does the compiler bitch about this useless cast when building with W=123? Thanks. -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. -- ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel