From: David Daney It is not used anywhere in tree. Signed-off-by: David Daney Signed-off-by: Andrew Morton --- arch/mips/kernel/traps.c | 6 ------ include/asm-mips/traps.h | 1 - 2 files changed, 7 deletions(-) diff -puN arch/mips/kernel/traps.c~mips-remove-board_watchpoint_handler arch/mips/kernel/traps.c --- a/arch/mips/kernel/traps.c~mips-remove-board_watchpoint_handler +++ a/arch/mips/kernel/traps.c @@ -71,7 +71,6 @@ extern asmlinkage void handle_reserved(v extern int fpu_emulator_cop1Handler(struct pt_regs *xcp, struct mips_fpu_struct *ctx, int has_fpu); -void (*board_watchpoint_handler)(struct pt_regs *regs); void (*board_be_init)(void); int (*board_be_handler)(struct pt_regs *regs, int is_fixup); void (*board_nmi_handler_setup)(void); @@ -890,11 +889,6 @@ asmlinkage void do_mdmx(struct pt_regs * asmlinkage void do_watch(struct pt_regs *regs) { - if (board_watchpoint_handler) { - (*board_watchpoint_handler)(regs); - return; - } - /* * We use the watch exception where available to detect stack * overflows. diff -puN include/asm-mips/traps.h~mips-remove-board_watchpoint_handler include/asm-mips/traps.h --- a/include/asm-mips/traps.h~mips-remove-board_watchpoint_handler +++ a/include/asm-mips/traps.h @@ -24,6 +24,5 @@ extern int (*board_be_handler)(struct pt extern void (*board_nmi_handler_setup)(void); extern void (*board_ejtag_handler_setup)(void); extern void (*board_bind_eic_interrupt)(int irq, int regset); -extern void (*board_watchpoint_handler)(struct pt_regs *regs); #endif /* _ASM_TRAPS_H */ _