Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 959a85ad authored by David S. Miller's avatar David S. Miller
Browse files

[SPARC64]: Fix build with CONFIG_COMPAT disabled.



Based upon a report and preliminary patch from Jim Gifford.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c126cf80
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -164,6 +164,7 @@ void machine_restart(char * cmd)
	panic("Reboot failed!");
}

#ifdef CONFIG_COMPAT
static void show_regwindow32(struct pt_regs *regs)
{
	struct reg_window32 __user *rw;
@@ -189,6 +190,9 @@ static void show_regwindow32(struct pt_regs *regs)
	       r_w.ins[0], r_w.ins[1], r_w.ins[2], r_w.ins[3],
	       r_w.ins[4], r_w.ins[5], r_w.ins[6], r_w.ins[7]);
}
#else
#define show_regwindow32(regs)	do { } while (0)
#endif

static void show_regwindow(struct pt_regs *regs)
{