Commit 244febbe authored by Qiujun Huang's avatar Qiujun Huang Committed by Borislav Petkov
Browse files

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: default avatarQiujun Huang <hqjagain@gmail.com>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Acked-by: default avatarPeter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/r/1583253732-18988-1-git-send-email-hqjagain@gmail.com
parent 0e79ad86
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;