Skip to content

Commit 882c12c

Browse files
pmundtPaul Mundt
authored andcommitted
sh: Shut up SH2-DSP compile warnings.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent 9655ad0 commit 882c12c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/sh/kernel/process.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@ asmlinkage int sys_fork(unsigned long r4, unsigned long r5,
406406
unsigned long r6, unsigned long r7,
407407
struct pt_regs __regs)
408408
{
409-
struct pt_regs *regs = RELOC_HIDE(&__regs, 0);
410409
#ifdef CONFIG_MMU
410+
struct pt_regs *regs = RELOC_HIDE(&__regs, 0);
411411
return do_fork(SIGCHLD, regs->regs[15], regs, 0, NULL, NULL);
412412
#else
413413
/* fork almost works, enough to trick you into looking elsewhere :-( */

‎arch/sh/kernel/traps.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ asmlinkage void do_address_error(struct pt_regs *regs,
614614
*/
615615
int is_dsp_inst(struct pt_regs *regs)
616616
{
617-
unsigned short inst;
617+
unsigned short inst = 0;
618618

619619
/*
620620
* Safe guard if DSP mode is already enabled or we're lacking

0 commit comments

Comments
 (0)