提交 2b252c54 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

make kprobes.c:kretprobe_table_lock() static

Make the needlessly global kretprobe_table_lock() static.
Signed-off-by: NAdrian Bunk <bunk@kernel.org>
Acked-by: NAnanth N Mavinakayanahalli <ananth@in.ibm.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 88429a10
......@@ -404,7 +404,7 @@ void kretprobe_hash_lock(struct task_struct *tsk,
spin_lock_irqsave(hlist_lock, *flags);
}
void kretprobe_table_lock(unsigned long hash, unsigned long *flags)
static void kretprobe_table_lock(unsigned long hash, unsigned long *flags)
{
spinlock_t *hlist_lock = kretprobe_table_lock_ptr(hash);
spin_lock_irqsave(hlist_lock, *flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册