x86/alternatives: Mark text_poke_loc_init() static
authorQiujun Huang <hqjagain@gmail.com>
Tue, 3 Mar 2020 16:42:12 +0000 (00:42 +0800)
committerBorislav Petkov <bp@suse.de>
Wed, 25 Mar 2020 11:42:35 +0000 (12:42 +0100)
The function is only used in this file so make it static.

 [ bp: Massage. ]

Signed-off-by: Qiujun Huang <hqjagain@gmail.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/r/1583253732-18988-1-git-send-email-hqjagain@gmail.com
arch/x86/kernel/alternative.c

index 15ac0d5..7867dfb 100644 (file)
@@ -1167,8 +1167,8 @@ static void text_poke_bp_batch(struct text_poke_loc *tp, unsigned int nr_entries
                atomic_cond_read_acquire(&desc.refs, !VAL);
 }
 
-void text_poke_loc_init(struct text_poke_loc *tp, void *addr,
-                       const void *opcode, size_t len, const void *emulate)
+static void text_poke_loc_init(struct text_poke_loc *tp, void *addr,
+                              const void *opcode, size_t len, const void *emulate)
 {
        struct insn insn;