Skip to content

Commit

Permalink
[PATCH] x86_64: sparse warning cleanups
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Hemminger authored and Linus Torvalds committed Jan 12, 2006
1 parent cf05013 commit 77a7533
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/x86_64/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down
4 changes: 2 additions & 2 deletions include/asm-x86_64/vsyscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 77a7533

Please sign in to comment.