x86: kprobes: Remove unused macro stack_addr
authorChen Zhongjin <chenzhongjin@huawei.com>
Sat, 24 Sep 2022 07:26:29 +0000 (15:26 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 27 Sep 2022 18:48:26 +0000 (14:48 -0400)
commitae398ad89456847aab9f12b0e63c51443af5da48
tree02d86c0c4d9ff63cbb18fd4486e57c8370816a62
parent3008119a3dd8052b7e5c07488e20a7abb0d287f2
x86: kprobes: Remove unused macro stack_addr

An unused macro reported by [-Wunused-macros].

This macro is used to access the sp in pt_regs because at that time
x86_32 can only get sp by kernel_stack_pointer(regs).

'3c88c692c287 ("x86/stackframe/32: Provide consistent pt_regs")'
This commit have unified the pt_regs and from them we can get sp from
pt_regs with regs->sp easily. Nowhere is using this macro anymore.

Refrencing pt_regs directly is more clear. Remove this macro for
code cleaning.

Link: https://lkml.kernel.org/r/20220924072629.104759-1-chenzhongjin@huawei.com
Signed-off-by: Chen Zhongjin <chenzhongjin@huawei.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
arch/x86/kernel/kprobes/core.c