* [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 related [flat|nested] 2+ messages in thread
* Re: [2.6 patch] make kprobes.c:kretprobe_table_lock() static
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
0 siblings, 0 replies; 2+ messages in thread
From: Ananth N Mavinakayanahalli @ 2008-08-19 14:01 UTC (permalink / raw)
To: Adrian Bunk
Cc: Srinivasa DS, Jim Keniston, anil.s.keshavamurthy, davem, mhiramat,
Andrew Morton, linux-kernel
On Tue, Aug 19, 2008 at 04:47:06PM +0300, Adrian Bunk wrote:
> This patch makes the needlessly global kretprobe_table_lock() static.
>
> Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Thanks Adrian.
> ---
> 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.