[PATCH] x86/alternatives: Mark text_poke_loc_init static

From: Qiujun Huang
Date: Tue Mar 03 2020 - 11:42:19 EST


Now, the function is only used in this file, so mark it with 'static'.

Signed-off-by: Qiujun Huang <hqjagain@xxxxxxxxx>
---
arch/x86/kernel/alternative.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
index 15ac0d5..600da3cb 100644
--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -1167,7 +1167,7 @@ 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,
+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;
--
1.8.3.1