[PATCH] x86_64: sparse warning cleanups
authorStephen Hemminger <shemminger@osdl.org>
Wed, 11 Jan 2006 21:46:30 +0000 (22:46 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 12 Jan 2006 03:05:02 +0000 (19:05 -0800)
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>
arch/x86_64/kernel/traps.c
include/asm-x86_64/vsyscall.h

index 08325b1f871d429aad7c791886a818e12071ddff..fcee07db3b6836908e11700ef6ff96202aff2314 100644 (file)
@@ -345,7 +345,7 @@ void handle_BUG(struct pt_regs *regs)
 
        if (user_mode(regs))
                return; 
-       if (__copy_from_user(&f, (struct bug_frame *) regs->rip, 
+       if (__copy_from_user(&f, (const void __user *) regs->rip,
                             sizeof(struct bug_frame)))
                return; 
        if (f.filename >= 0 ||
index 438a3f52f839fa8161fc5c1ac8f2ec7b8f00ec89..a85e16f56d73672dce8de3c61a4ee7de68028c15 100644 (file)
@@ -36,8 +36,8 @@ struct vxtime_data {
        int mode;
 };
 
-#define hpet_readl(a)           readl((void *)fix_to_virt(FIX_HPET_BASE) + a)
-#define hpet_writel(d,a)        writel(d, (void *)fix_to_virt(FIX_HPET_BASE) + a)
+#define hpet_readl(a)           readl((const void __iomem *)fix_to_virt(FIX_HPET_BASE) + a)
+#define hpet_writel(d,a)        writel(d, (void __iomem *)fix_to_virt(FIX_HPET_BASE) + a)
 
 /* vsyscall space (readonly) */
 extern struct vxtime_data __vxtime;