summaryrefslogtreecommitdiff
path: root/kernel/kprobes.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-10-16 09:05:20 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-16 22:21:52 +0400
commit2b252c541158cfed9d7e5b019b894fe2174f5908 (patch)
treecb8f3ea21027f54b1fd54dce51dc47a1ec62b3d0 /kernel/kprobes.c
parent88429a105e8c810d9cc9a4ff82cd571816e9858e (diff)
downloadlinux-2b252c541158cfed9d7e5b019b894fe2174f5908.tar.xz
make kprobes.c:kretprobe_table_lock() static
Make the needlessly global kretprobe_table_lock() static. Signed-off-by: Adrian Bunk <bunk@kernel.org> Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/kprobes.c')
-rw-r--r--kernel/kprobes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c
index 75bc2cd9ebc6..8b57a2597f21 100644
--- a/kernel/kprobes.c
+++ b/kernel/kprobes.c
@@ -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);