[FIX] Kprobe: make kretprobe_lock static 05/15905/1
authorAlexander Aksenov <a.aksenov@samsung.com>
Wed, 29 Jan 2014 08:35:55 +0000 (12:35 +0400)
committerAlexander Aksenov <a.aksenov@samsung.com>
Wed, 29 Jan 2014 08:35:55 +0000 (12:35 +0400)
Change-Id: I2a195cad57fe76f2ea3a45d115ec85dd02f21230
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
kprobe/dbi_kprobes.c
kprobe/dbi_kprobes.h

index 00f9703..cc7bd3b 100644 (file)
@@ -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];
index cc0df8b..7c6a479 100644 (file)
@@ -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;