mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.6 patch] make kprobes.c:kretprobe_table_lock() static
@ 2008-08-19 13:47 Adrian Bunk
  2008-08-19 14:01 ` Ananth N Mavinakayanahalli
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2008-08-19 13:47 UTC (permalink / raw)
  To: Srinivasa DS, Jim Keniston, Ananth N Mavinakayanahalli,
	anil.s.keshavamurthy, davem, mhiramat
  Cc: Andrew Morton, linux-kernel

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);


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-19 14:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-19 13:47 [2.6 patch] make kprobes.c:kretprobe_table_lock() static Adrian Bunk
2008-08-19 14:01 ` Ananth N Mavinakayanahalli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome