[PATCH] x86_64: sparse warning cleanups

Fix some trivial sparse warnings in x86_64 code.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Stephen Hemminger and committed by Linus Torvalds 77a75333 cf050132

+3 -3
+1 -1
arch/x86_64/kernel/traps.c
··· 345 346 if (user_mode(regs)) 347 return; 348 - if (__copy_from_user(&f, (struct bug_frame *) regs->rip, 349 sizeof(struct bug_frame))) 350 return; 351 if (f.filename >= 0 ||
··· 345 346 if (user_mode(regs)) 347 return; 348 + if (__copy_from_user(&f, (const void __user *) regs->rip, 349 sizeof(struct bug_frame))) 350 return; 351 if (f.filename >= 0 ||
+2 -2
include/asm-x86_64/vsyscall.h
··· 36 int mode; 37 }; 38 39 - #define hpet_readl(a) readl((void *)fix_to_virt(FIX_HPET_BASE) + a) 40 - #define hpet_writel(d,a) writel(d, (void *)fix_to_virt(FIX_HPET_BASE) + a) 41 42 /* vsyscall space (readonly) */ 43 extern struct vxtime_data __vxtime;
··· 36 int mode; 37 }; 38 39 + #define hpet_readl(a) readl((const void __iomem *)fix_to_virt(FIX_HPET_BASE) + a) 40 + #define hpet_writel(d,a) writel(d, (void __iomem *)fix_to_virt(FIX_HPET_BASE) + a) 41 42 /* vsyscall space (readonly) */ 43 extern struct vxtime_data __vxtime;