summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2006-01-11 22:46:30 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-11 19:05:02 -0800
commit77a75333a3d16b830ccf47cf51d944655b015363 (patch)
tree7c911f2763b640a14bfcefd5c3832ccdd93f69e5 /arch
parentcf0501328674849f8becf6de16620067a0c2f1b5 (diff)
downloadop-kernel-dev-77a75333a3d16b830ccf47cf51d944655b015363.zip
op-kernel-dev-77a75333a3d16b830ccf47cf51d944655b015363.tar.gz
[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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86_64/kernel/traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c
index 08325b1..fcee07d 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)
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 ||
OpenPOWER on IntegriCloud