提交 01b305a2 编写于 作者: J Jisheng Zhang 提交者: Catalin Marinas

arm64: suspend: make hw_breakpoint_restore static

hw_breakpoint_restore is only used within suspend.c, so it can be
declared static.
Signed-off-by: NJisheng Zhang <jszhang@marvell.com>
Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
上级 9a17a213
...@@ -41,7 +41,7 @@ void notrace __cpu_suspend_save(struct cpu_suspend_ctx *ptr, ...@@ -41,7 +41,7 @@ void notrace __cpu_suspend_save(struct cpu_suspend_ctx *ptr,
* time the notifier runs debug exceptions might have been enabled already, * time the notifier runs debug exceptions might have been enabled already,
* with HW breakpoints registers content still in an unknown state. * with HW breakpoints registers content still in an unknown state.
*/ */
void (*hw_breakpoint_restore)(void *); static void (*hw_breakpoint_restore)(void *);
void __init cpu_suspend_set_dbg_restorer(void (*hw_bp_restore)(void *)) void __init cpu_suspend_set_dbg_restorer(void (*hw_bp_restore)(void *))
{ {
/* Prevent multiple restore hook initializations */ /* Prevent multiple restore hook initializations */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册