mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/alternatives: Mark text_poke_loc_init static
@ 2020-03-03 16:42 Qiujun Huang
  2020-03-25 11:48 ` [tip: x86/cleanups] x86/alternatives: Mark text_poke_loc_init() static tip-bot2 for Qiujun Huang
  0 siblings, 1 reply; 2+ messages in thread
From: Qiujun Huang @ 2020-03-03 16:42 UTC (permalink / raw)
  To: tglx, peterz
  Cc: mingo, bp, hpa, ast, mhiramat, rick.p.edgecombe, namit, bristot,
	linux-kernel, Qiujun Huang

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

Signed-off-by: Qiujun Huang <hqjagain@gmail.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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-25 11:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-03 16:42 [PATCH] x86/alternatives: Mark text_poke_loc_init static Qiujun Huang
2020-03-25 11:48 ` [tip: x86/cleanups] x86/alternatives: Mark text_poke_loc_init() static tip-bot2 for Qiujun Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®