[PATCH] powerpc: Fix warning related to do_dabr
Kumar Gala
galak at freescale.com
Thu Oct 27 00:55:41 EST 2005
do_dabr() is not relevant on 40x or Book-E processors so dont build it
Signed-off-by: Kumar K. Gala <kumar.gala at freescale.com>
---
commit 76b3884004db7ea66b3ef801dd0fa1e2337025a8
tree e60f8a2af4bc06303ca3a81d28831fb6ae0a0097
parent e19eaf379ab1a633eea2d5ff0e0d99ca834324f1
author Kumar K. Gala <kumar.gala at freescale.com> Wed, 26 Oct 2005 09:39:58 -0500
committer Kumar K. Gala <kumar.gala at freescale.com> Wed, 26 Oct 2005 09:39:58 -0500
arch/powerpc/mm/fault.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c
--- a/arch/powerpc/mm/fault.c
+++ b/arch/powerpc/mm/fault.c
@@ -80,6 +80,7 @@ static int store_updates_sp(struct pt_re
return 0;
}
+#if !(defined(CONFIG_4xx) || defined(CONFIG_BOOKE))
static void do_dabr(struct pt_regs *regs, unsigned long error_code)
{
siginfo_t info;
@@ -101,6 +102,7 @@ static void do_dabr(struct pt_regs *regs
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
More information about the Linuxppc-dev
mailing list