提交 77a75333 编写于 作者: S Stephen Hemminger 提交者: Linus Torvalds

[PATCH] x86_64: sparse warning cleanups

Fix some trivial sparse warnings in x86_64 code.
Signed-off-by: NStephen Hemminger <shemminger@osdl.org>
Signed-off-by: NAndi Kleen <ak@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 cf050132
......@@ -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 ||
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册