summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/traps.c
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2011-10-30 15:17:15 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2011-10-30 15:16:46 +0100
commit3c52e49d7c81434e3d2ccb520b3a654c2cc7d03d (patch)
treefee9f3d92204f6081e39481df5bb2dc4b038d9ea /arch/s390/kernel/traps.c
parent5b479a79bff752c6719463f093bdd191f4b837db (diff)
downloadtalos-obmc-linux-3c52e49d7c81434e3d2ccb520b3a654c2cc7d03d.tar.gz
talos-obmc-linux-3c52e49d7c81434e3d2ccb520b3a654c2cc7d03d.zip
[S390] sparse: fix sparse warnings with __user pointers
Use __force to quiet sparse warnings about user address space. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/traps.c')
-rw-r--r--arch/s390/kernel/traps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/kernel/traps.c b/arch/s390/kernel/traps.c
index 79eee3f27afb..a9807dd86276 100644
--- a/arch/s390/kernel/traps.c
+++ b/arch/s390/kernel/traps.c
@@ -334,7 +334,8 @@ void __kprobes do_per_trap(struct pt_regs *regs)
info.si_signo = SIGTRAP;
info.si_errno = 0;
info.si_code = TRAP_HWBKPT;
- info.si_addr = (void *) current->thread.per_event.address;
+ info.si_addr =
+ (void __force __user *) current->thread.per_event.address;
force_sig_info(SIGTRAP, &info, current);
}
OpenPOWER on IntegriCloud