powerpc: get rid of addr_probe()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 13 Jul 2017 13:09:46 +0000 (15:09 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 23 Jul 2017 02:22:48 +0000 (22:22 -0400)
This function has never been used, at least since the beginning
of the git repository

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
arch/powerpc/cpu/mpc83xx/traps.c
arch/powerpc/cpu/mpc85xx/traps.c
arch/powerpc/cpu/mpc86xx/traps.c
arch/powerpc/cpu/mpc8xx/traps.c

index 3dd6900c86839ec672d4236842869046369ba58f..f238d0b91c1dc33e2070115176200272c845c49d 100644 (file)
@@ -215,30 +215,3 @@ void DebugException(struct pt_regs *regs)
        do_bedbug_breakpoint( regs );
 #endif
 }
-
-/* Probe an address by reading.  If not present, return -1, otherwise
- * return 0.
- */
-int addr_probe(uint *addr)
-{
-#if 0
-       int     retval;
-
-       __asm__ __volatile__(                   \
-               "1:     lwz %0,0(%1)\n"         \
-               "       eieio\n"                \
-               "       li %0,0\n"              \
-               "2:\n"                          \
-               ".section .fixup,\"ax\"\n"      \
-               "3:     li %0,-1\n"             \
-               "       b 2b\n"                 \
-               ".section __ex_table,\"a\"\n"   \
-               "       .align 2\n"             \
-               "       .long 1b,3b\n"          \
-               ".text"                         \
-               : "=r" (retval) : "r"(addr));
-
-       return (retval);
-#endif
-       return 0;
-}
index 24adbc3078f5d2b77926fa2f759051475d9e538d..9d3556e50c58a024752005ab54a3b40bba9f8f55 100644 (file)
@@ -286,11 +286,3 @@ void DebugException(struct pt_regs *regs)
        do_bedbug_breakpoint( regs );
 #endif
 }
-
-/* Probe an address by reading.         If not present, return -1, otherwise
- * return 0.
- */
-int addr_probe(uint *addr)
-{
-       return 0;
-}
index 92fb537453b5f6412c259acb033e018b69b78512..da74146844f4380f37cb4f0c5d97114537081704 100644 (file)
@@ -195,13 +195,3 @@ void UnknownException(struct pt_regs *regs)
               regs->nip, regs->msr, regs->trap);
        _exception(0, regs);
 }
-
-/*
- * Probe an address by reading.
- * If not present, return -1,
- * otherwise return 0.
- */
-int addr_probe(uint *addr)
-{
-       return 0;
-}
index 8b8d617eeda883064462851c7e9918133cfda745..ebf4e412c9a46fd8c3cb92b71b7009b57c2e0ea9 100644 (file)
@@ -155,11 +155,3 @@ void DebugException(struct pt_regs *regs)
        printf("Debugger trap at @ %lx\n", regs->nip);
        show_regs(regs);
 }
-
-/* Probe an address by reading.  If not present, return -1, otherwise
- * return 0.
- */
-int addr_probe(uint *addr)
-{
-       return 0;
-}