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

From: Ananth N Mavinakayanahalli
Date: Tue Aug 19 2008 - 10:03:34 EST


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@xxxxxxxxxx>

Acked-by: Ananth N Mavinakayanahalli <ananth@xxxxxxxxxx>

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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/