]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sh: Shut up SH2-DSP compile warnings.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 14 May 2007 08:26:34 +0000 (17:26 +0900)
committerPaul Mundt <lethal@hera.kernel.org>
Fri, 8 Jun 2007 02:43:37 +0000 (02:43 +0000)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/process.c
arch/sh/kernel/traps.c

index aa9c8112140b12f5202cd9591dc80650901d84b1..9ae3da00eaae7ba49ea969859a5cc919b72a40fd 100644 (file)
@@ -406,8 +406,8 @@ asmlinkage int sys_fork(unsigned long r4, unsigned long r5,
                        unsigned long r6, unsigned long r7,
                        struct pt_regs __regs)
 {
-       struct pt_regs *regs = RELOC_HIDE(&__regs, 0);
 #ifdef CONFIG_MMU
+       struct pt_regs *regs = RELOC_HIDE(&__regs, 0);
        return do_fork(SIGCHLD, regs->regs[15], regs, 0, NULL, NULL);
 #else
        /* fork almost works, enough to trick you into looking elsewhere :-( */
index 299b8cf0f512ebf468a5c138b27a485da2fb9253..9c7fb922dfe0d62c9b0929121277181a8d218a28 100644 (file)
@@ -614,7 +614,7 @@ uspace_segv:
  */
 int is_dsp_inst(struct pt_regs *regs)
 {
-       unsigned short inst;
+       unsigned short inst = 0;
 
        /*
         * Safe guard if DSP mode is already enabled or we're lacking