diff options
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r-- | arch/sh/kernel/process.c | 2 | ||||
-rw-r--r-- | arch/sh/kernel/traps.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/process.c b/arch/sh/kernel/process.c index aa9c8112140b..9ae3da00eaae 100644 --- a/arch/sh/kernel/process.c +++ b/arch/sh/kernel/process.c | |||
@@ -406,8 +406,8 @@ asmlinkage int sys_fork(unsigned long r4, unsigned long r5, | |||
406 | unsigned long r6, unsigned long r7, | 406 | unsigned long r6, unsigned long r7, |
407 | struct pt_regs __regs) | 407 | struct pt_regs __regs) |
408 | { | 408 | { |
409 | struct pt_regs *regs = RELOC_HIDE(&__regs, 0); | ||
410 | #ifdef CONFIG_MMU | 409 | #ifdef CONFIG_MMU |
410 | struct pt_regs *regs = RELOC_HIDE(&__regs, 0); | ||
411 | return do_fork(SIGCHLD, regs->regs[15], regs, 0, NULL, NULL); | 411 | return do_fork(SIGCHLD, regs->regs[15], regs, 0, NULL, NULL); |
412 | #else | 412 | #else |
413 | /* fork almost works, enough to trick you into looking elsewhere :-( */ | 413 | /* fork almost works, enough to trick you into looking elsewhere :-( */ |
diff --git a/arch/sh/kernel/traps.c b/arch/sh/kernel/traps.c index 299b8cf0f512..9c7fb922dfe0 100644 --- a/arch/sh/kernel/traps.c +++ b/arch/sh/kernel/traps.c | |||
@@ -614,7 +614,7 @@ uspace_segv: | |||
614 | */ | 614 | */ |
615 | int is_dsp_inst(struct pt_regs *regs) | 615 | int is_dsp_inst(struct pt_regs *regs) |
616 | { | 616 | { |
617 | unsigned short inst; | 617 | unsigned short inst = 0; |
618 | 618 | ||
619 | /* | 619 | /* |
620 | * Safe guard if DSP mode is already enabled or we're lacking | 620 | * Safe guard if DSP mode is already enabled or we're lacking |