aboutsummaryrefslogtreecommitdiff
path: root/arch/arm64/kvm/stacktrace.c
diff options
context:
space:
mode:
authorMark Rutland <[email protected]>2022-09-01 14:06:39 +0100
committerCatalin Marinas <[email protected]>2022-09-09 12:30:07 +0100
commitbc8d75212d735ac9624c1d3532ad371ec9e570ae (patch)
tree042cfde0da8c95c66dc5bea3f2c7046419ee60cc /arch/arm64/kvm/stacktrace.c
parent16283c54a6c79b589001763421738db96de3ae4e (diff)
arm64: stacktrace: simplify unwind_next_common()
Currently unwind_next_common() takes a pointer to a stack_info which is only ever used within unwind_next_common(). Make it a local variable and simplify callers. There should be no functional change as a result of this patch. Signed-off-by: Mark Rutland <[email protected]> Reviewed-by: Kalesh Singh <[email protected]> Reviewed-by: Madhavan T. Venkataraman <[email protected]> Reviewed-by: Mark Brown <[email protected]> Cc: Fuad Tabba <[email protected]> Cc: Marc Zyngier <[email protected]> Cc: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'arch/arm64/kvm/stacktrace.c')
-rw-r--r--arch/arm64/kvm/stacktrace.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm64/kvm/stacktrace.c b/arch/arm64/kvm/stacktrace.c
index 949d19d603fb..b9cf551d9d31 100644
--- a/arch/arm64/kvm/stacktrace.c
+++ b/arch/arm64/kvm/stacktrace.c
@@ -97,9 +97,7 @@ static bool on_accessible_stack(const struct task_struct *tsk,
static int unwind_next(struct unwind_state *state)
{
- struct stack_info info;
-
- return unwind_next_common(state, &info, on_accessible_stack,
+ return unwind_next_common(state, on_accessible_stack,
kvm_nvhe_stack_kern_va);
}