To: | Ralf Baechle <ralf@linux-mips.org>, James Hogan <jhogan@kernel.org> |
---|---|
Subject: | [RFC PATCH 07/16] MIPS: kprobes: Remove unused definitions |
From: | Matt Redfearn <matt.redfearn@mips.com> |
Date: | Tue, 12 Dec 2017 09:57:53 +0000 |
Cc: | <linux-mips@linux-mips.org> |
In-reply-to: | <1513072682-1371-1-git-send-email-matt.redfearn@mips.com> |
List-archive: | <http://www.linux-mips.org/archives/linux-mips/> |
List-help: | <mailto:ecartis@linux-mips.org?Subject=help> |
List-id: | linux-mips <linux-mips.eddie.linux-mips.org> |
List-owner: | <mailto:ralf@linux-mips.org> |
List-post: | <mailto:linux-mips@linux-mips.org> |
List-software: | Ecartis version 1.0.0 |
List-subscribe: | <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips> |
List-unsubscribe: | <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips> |
Original-recipient: | rfc822;linux-mips@linux-mips.org |
References: | <1513072682-1371-1-git-send-email-matt.redfearn@mips.com> |
Sender: | linux-mips-bounce@linux-mips.org |
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@mips.com> --- 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 |
Previous by Date: | [RFC PATCH 06/16] MIPS: KASLR: Change relocate_kernel to return applied offset., Matt Redfearn |
---|---|
Next by Date: | [RFC PATCH 09/16] MIPS: Introduce setup_kernel_mode macro, Matt Redfearn |
Previous by Thread: | [RFC PATCH 06/16] MIPS: KASLR: Change relocate_kernel to return applied offset., Matt Redfearn |
Next by Thread: | [RFC PATCH 09/16] MIPS: Introduce setup_kernel_mode macro, Matt Redfearn |
Indexes: | [Date] [Thread] [Top] [All Lists] |