Skip to content

Commit 244febb

Browse files
Qiujun Huangsuryasaimadhu
authored andcommitted
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 <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 0e79ad8 commit 244febb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kernel/alternative.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,8 +1167,8 @@ static void text_poke_bp_batch(struct text_poke_loc *tp, unsigned int nr_entries
11671167
atomic_cond_read_acquire(&desc.refs, !VAL);
11681168
}
11691169

1170-
void text_poke_loc_init(struct text_poke_loc *tp, void *addr,
1171-
const void *opcode, size_t len, const void *emulate)
1170+
static void text_poke_loc_init(struct text_poke_loc *tp, void *addr,
1171+
const void *opcode, size_t len, const void *emulate)
11721172
{
11731173
struct insn insn;
11741174

0 commit comments

Comments
 (0)