From: Alexander Aksenov Date: Wed, 29 Jan 2014 08:35:55 +0000 (+0400) Subject: [FIX] Kprobe: make kretprobe_lock static X-Git-Tag: Tizen_SDK_2.3~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fac2cb3f0e456d0a9729d3da4a08d1d2de58cf21;p=kernel%2Fswap-modules.git [FIX] Kprobe: make kretprobe_lock static Change-Id: I2a195cad57fe76f2ea3a45d115ec85dd02f21230 Signed-off-by: Alexander Aksenov --- 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;