]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc2f3723bb10a47fd61e28d88ce42d294d7d2df30
tree02d86c0c4d9ff63cbb18fd4486e57c8370816a62
parent0d8d9b61c55c80edc20a59786b3f4c492726d003
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).

'192c95e891ad ("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