Skip to content

Commit

Permalink
[PATCH] powerpc: Fix warning related to do_dabr
Browse files Browse the repository at this point in the history
do_dabr() is not relevant on 40x or Book-E processors so dont build it

Signed-off-by: Kumar K. Gala <kumar.gala@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Kumar Gala authored and Paul Mackerras committed Oct 27, 2005
1 parent 328985b commit cffb09c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ static int store_updates_sp(struct pt_regs *regs)
return 0;
}

#if !(defined(CONFIG_4xx) || defined(CONFIG_BOOKE))
static void do_dabr(struct pt_regs *regs, unsigned long error_code)
{
siginfo_t info;
Expand All @@ -101,6 +102,7 @@ static void do_dabr(struct pt_regs *regs, unsigned long error_code)
info.si_addr = (void __user *)regs->nip;
force_sig_info(SIGTRAP, &info, current);
}
#endif /* !(CONFIG_4xx || CONFIG_BOOKE)*/

/*
* For 600- and 800-family processors, the error_code parameter is DSISR
Expand Down

0 comments on commit cffb09c

Please sign in to comment.