MAX_JPROBES_STACK_ADDR will stop working correctly once CONFIG_THREAD_INFO_IN_TASK is active, since current_thread_info() will no longer return the base of the kernel stack. As the definition is unused, rather than fix it, remove it. Signed-off-by: Matt Redfearn <matt.redfearn@xxxxxxxx> --- arch/mips/include/asm/kprobes.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/mips/include/asm/kprobes.h b/arch/mips/include/asm/kprobes.h index ad1a99948f27..413e8be38a35 100644 --- a/arch/mips/include/asm/kprobes.h +++ b/arch/mips/include/asm/kprobes.h @@ -69,14 +69,6 @@ struct prev_kprobe { }; #define MAX_JPROBES_STACK_SIZE 128 -#define MAX_JPROBES_STACK_ADDR \ - (((unsigned long)current_thread_info()) + THREAD_SIZE - 32 - sizeof(struct pt_regs)) - -#define MIN_JPROBES_STACK_SIZE(ADDR) \ - ((((ADDR) + MAX_JPROBES_STACK_SIZE) > MAX_JPROBES_STACK_ADDR) \ - ? MAX_JPROBES_STACK_ADDR - (ADDR) \ - : MAX_JPROBES_STACK_SIZE) - #define SKIP_DELAYSLOT 0x0001 -- 2.7.4