]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] powerpc: Fix warning related to do_dabr
authorKumar Gala <galak@freescale.com>
Wed, 26 Oct 2005 14:55:41 +0000 (09:55 -0500)
committerPaul Mackerras <paulus@samba.org>
Thu, 27 Oct 2005 10:51:19 +0000 (20:51 +1000)
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>
arch/powerpc/mm/fault.c

index 3df641fa789dfac37bff816321a2f58def81ac24..841d8b6323a8da26699086273bb4560514bc85f8 100644 (file)
@@ -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;
@@ -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