Skip to content

Commit

Permalink
make kprobes.c:kretprobe_table_lock() static
Browse files Browse the repository at this point in the history
Make the needlessly global kretprobe_table_lock() static.

Signed-off-by: Adrian Bunk <[email protected]>
Acked-by: Ananth N Mavinakayanahalli <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
AdrianBunk authored and torvalds committed Oct 16, 2008
1 parent 88429a1 commit 2b252c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2b252c5

Please sign in to comment.