[2.6 patch] make kprobes.c:kretprobe_table_lock() static

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Adrian Bunk
Date: Tuesday, August 19, 2008 - 6:47 am

This patch makes the needlessly global kretprobe_table_lock() static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
7282c07a74451fca15cad3b8b1626e0b9ec0ba17 
diff --git a/kernel/kprobes.c b/kernel/kprobes.c
index 75bc2cd..8b57a25 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);

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6 patch] make kprobes.c:kretprobe_table_lock() static, Adrian Bunk, (Tue Aug 19, 6:47 am)
Re: [2.6 patch] make kprobes.c:kretprobe_table_lock() static, Ananth N Mavinakayan ..., (Tue Aug 19, 7:01 am)