Skip to content

Commit

Permalink
[SPARC64]: Fix build with CONFIG_COMPAT disabled.
Browse files Browse the repository at this point in the history
Based upon a report and preliminary patch from Jim Gifford.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jan 18, 2006
1 parent c126cf8 commit 959a85a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/sparc64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
{
Expand Down

0 comments on commit 959a85a

Please sign in to comment.