arm64: suspend: make hw_breakpoint_restore static
authorJisheng Zhang <jszhang@marvell.com>
Thu, 12 Nov 2015 12:04:44 +0000 (20:04 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 12 Nov 2015 15:18:14 +0000 (15:18 +0000)
hw_breakpoint_restore is only used within suspend.c, so it can be
declared static.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/suspend.c

index 3c5e4e6dcf687bc57f61c3212bbfd06aad637eb5..d87403e8ba1dab582c31c58f93aef52886425e63 100644 (file)
@@ -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,
  * 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 *))
 {
        /* Prevent multiple restore hook initializations */