[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <158513693176.28353.3974017486615811388.tip-bot2@tip-bot2>
Date: Wed, 25 Mar 2020 11:48:51 -0000
From: "tip-bot2 for Qiujun Huang" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Qiujun Huang <hqjagain@...il.com>, Borislav Petkov <bp@...e.de>,
Peter Zijlstra <peterz@...radead.org>, x86 <x86@...nel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [tip: x86/cleanups] x86/alternatives: Mark text_poke_loc_init() static
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@...il.com>
AuthorDate: Wed, 04 Mar 2020 00:42:12 +08:00
Committer: Borislav Petkov <bp@...e.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@...il.com>
Signed-off-by: Borislav Petkov <bp@...e.de>
Acked-by: Peter Zijlstra <peterz@...radead.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;
Powered by blists - more mailing lists