linux-kernel.vger.kernel.org archive mirror
 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 related	[flat|nested] 2+ messages in thread

* [tip: x86/cleanups] x86/alternatives: Mark text_poke_loc_init() static
  2020-03-03 16:42 [PATCH] x86/alternatives: Mark text_poke_loc_init static Qiujun Huang
@ 2020-03-25 11:48 ` tip-bot2 for Qiujun Huang
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Qiujun Huang @ 2020-03-25 11:48 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Qiujun Huang, Borislav Petkov, Peter Zijlstra, x86, LKML

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     244febbee876203d8505dfadcc6edb82a0e061b8
Gitweb:        https://git.kernel.org/tip/244febbee876203d8505dfadcc6edb82a0e061b8
Author:        Qiujun Huang <hqjagain@gmail.com>
AuthorDate:    Wed, 04 Mar 2020 00:42:12 +08:00
Committer:     Borislav Petkov <bp@suse.de>
CommitterDate: Wed, 25 Mar 2020 12:42:35 +01:00

x86/alternatives: Mark text_poke_loc_init() static

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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
index 15ac0d5..7867dfb 100644
--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -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;
 

^ permalink raw reply related	[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;
as well as URLs for NNTP newsgroup(s).