projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e79ad8
)
x86/alternatives: Mark text_poke_loc_init() static
author
Qiujun Huang
<hqjagain@gmail.com>
Tue, 3 Mar 2020 16:42:12 +0000
(
00:42
+0800)
committer
Borislav Petkov
<bp@suse.de>
Wed, 25 Mar 2020 11:42:35 +0000
(12:42 +0100)
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
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/alternative.c
b/arch/x86/kernel/alternative.c
index
15ac0d5
..
7867dfb
100644
(file)
--- 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;