From fac2cb3f0e456d0a9729d3da4a08d1d2de58cf21 Mon Sep 17 00:00:00 2001 From: Alexander Aksenov Date: Wed, 29 Jan 2014 12:35:55 +0400 Subject: [PATCH] [FIX] Kprobe: make kretprobe_lock static Change-Id: I2a195cad57fe76f2ea3a45d115ec85dd02f21230 Signed-off-by: Alexander Aksenov --- kprobe/dbi_kprobes.c | 3 +-- kprobe/dbi_kprobes.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/kprobe/dbi_kprobes.c b/kprobe/dbi_kprobes.c index 00f9703..cc7bd3b 100644 --- a/kprobe/dbi_kprobes.c +++ b/kprobe/dbi_kprobes.c @@ -75,8 +75,7 @@ struct slot_manager sm; DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; static DEFINE_PER_CPU(struct kprobe_ctlblk, kprobe_ctlblk); -DEFINE_SPINLOCK(kretprobe_lock); /* Protects kretprobe_inst_table */ -EXPORT_SYMBOL_GPL(kretprobe_lock); +static DEFINE_SPINLOCK(kretprobe_lock); /* Protects kretprobe_inst_table */ static DEFINE_PER_CPU(struct kprobe *, kprobe_instance) = NULL; struct hlist_head kprobe_table[KPROBE_TABLE_SIZE]; diff --git a/kprobe/dbi_kprobes.h b/kprobe/dbi_kprobes.h index cc0df8b..7c6a479 100644 --- a/kprobe/dbi_kprobes.h +++ b/kprobe/dbi_kprobes.h @@ -275,7 +275,6 @@ void set_normalized_timeval (struct timeval *tv, time_t sec, suseconds_t usec); #endif extern DEFINE_PER_CPU (struct kprobe *, current_kprobe); -extern spinlock_t kretprobe_lock; extern struct hlist_head kprobe_table[KPROBE_TABLE_SIZE]; //extern struct hlist_head kretprobe_inst_table[KPROBE_TABLE_SIZE]; extern atomic_t kprobe_count; -- 2.7.4