[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 4 Mar 2020 00:42:12 +0800
From: Qiujun Huang <hqjagain@...il.com>
To: tglx@...utronix.de, peterz@...radead.org
Cc: mingo@...hat.com, bp@...en8.de, hpa@...or.com, ast@...nel.org,
mhiramat@...nel.org, rick.p.edgecombe@...el.com, namit@...are.com,
bristot@...hat.com, linux-kernel@...r.kernel.org,
Qiujun Huang <hqjagain@...il.com>
Subject: [PATCH] x86/alternatives: Mark text_poke_loc_init static
Now, the function is only used in this file, so mark it with 'static'.
Signed-off-by: Qiujun Huang <hqjagain@...il.com>
---
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
Powered by blists - more mailing lists