diff options
-rw-r--r-- | arch/x86_64/kernel/traps.c | 2 | ||||
-rw-r--r-- | include/asm-x86_64/vsyscall.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c index 08325b1f871d..fcee07db3b68 100644 --- a/arch/x86_64/kernel/traps.c +++ b/arch/x86_64/kernel/traps.c | |||
@@ -345,7 +345,7 @@ void handle_BUG(struct pt_regs *regs) | |||
345 | 345 | ||
346 | if (user_mode(regs)) | 346 | if (user_mode(regs)) |
347 | return; | 347 | return; |
348 | if (__copy_from_user(&f, (struct bug_frame *) regs->rip, | 348 | if (__copy_from_user(&f, (const void __user *) regs->rip, |
349 | sizeof(struct bug_frame))) | 349 | sizeof(struct bug_frame))) |
350 | return; | 350 | return; |
351 | if (f.filename >= 0 || | 351 | if (f.filename >= 0 || |
diff --git a/include/asm-x86_64/vsyscall.h b/include/asm-x86_64/vsyscall.h index 438a3f52f839..a85e16f56d73 100644 --- a/include/asm-x86_64/vsyscall.h +++ b/include/asm-x86_64/vsyscall.h | |||
@@ -36,8 +36,8 @@ struct vxtime_data { | |||
36 | int mode; | 36 | int mode; |
37 | }; | 37 | }; |
38 | 38 | ||
39 | #define hpet_readl(a) readl((void *)fix_to_virt(FIX_HPET_BASE) + a) | 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 *)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 | 41 | ||
42 | /* vsyscall space (readonly) */ | 42 | /* vsyscall space (readonly) */ |
43 | extern struct vxtime_data __vxtime; | 43 | extern struct vxtime_data __vxtime; |