summaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2011-02-07 12:25:37 +0100
committerMichal Simek <monstr@monstr.eu>2011-03-09 08:09:59 +0100
commit2cfedb97d6b3001d58c785839a8bc402374fe9f8 (patch)
tree0d62df4732812f7e2b1b0881c7f05dee316e8ccc /arch/microblaze
parent5213a9c3b663dd946d7c8bdfc9180983bd03a2a1 (diff)
downloadlinux-stable-2cfedb97d6b3001d58c785839a8bc402374fe9f8.tar.gz
linux-stable-2cfedb97d6b3001d58c785839a8bc402374fe9f8.tar.bz2
linux-stable-2cfedb97d6b3001d58c785839a8bc402374fe9f8.zip
microblaze: Fix sparse warnings - signal.c
Warning log: CHECK arch/microblaze/kernel/signal.c arch/microblaze/kernel/signal.c:200:9: warning: Using plain integer as NULL pointer arch/microblaze/kernel/signal.c:201:9: warning: incorrect type in initializer (different address spaces) arch/microblaze/kernel/signal.c:201:9: expected void [noderef] *volatile __gu_val<asn:1> arch/microblaze/kernel/signal.c:201:9: got void *<noident> Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/kernel/signal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/microblaze/kernel/signal.c b/arch/microblaze/kernel/signal.c
index 580d052ae814..599671168980 100644
--- a/arch/microblaze/kernel/signal.c
+++ b/arch/microblaze/kernel/signal.c
@@ -197,8 +197,8 @@ static void setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
/* Create the ucontext. */
err |= __put_user(0, &frame->uc.uc_flags);
- err |= __put_user(0, &frame->uc.uc_link);
- err |= __put_user((void *)current->sas_ss_sp,
+ err |= __put_user(NULL, &frame->uc.uc_link);
+ err |= __put_user((void __user *)current->sas_ss_sp,
&frame->uc.uc_stack.ss_sp);
err |= __put_user(sas_ss_flags(regs->r1),
&frame->uc.uc_stack.ss_flags);