login
Header Space

 
 

[2.6 patch] make kprobe_blacklist[] static

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Srinivasa Ds <srinivasa@...>, <ananth@...>, <anil.s.keshavamurthy@...>, <davem@...>, <mhiramat@...>
Cc: <linux-kernel@...>, Andrew Morton <akpm@...>
Date: Monday, May 5, 2008 - 2:21 pm

This patch makes the needlessly global kprobe_blacklist[] static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
d43075ce223623b39e6971fb670cd4e4c8628c94 diff --git a/kernel/kprobes.c b/kernel/kprobes.c
index 1e0250c..26936b1 100644
--- a/kernel/kprobes.c
+++ b/kernel/kprobes.c
@@ -79,7 +79,7 @@ static DEFINE_PER_CPU(struct kprobe *, kprobe_instance) = NULL;
  *
  * For such cases, we now have a blacklist
  */
-struct kprobe_blackpoint kprobe_blacklist[] = {
+static struct kprobe_blackpoint kprobe_blacklist[] = {
 	{"preempt_schedule",},
 	{NULL}    /* Terminator */
 };

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6 patch] make kprobe_blacklist[] static, Adrian Bunk, (Mon May 5, 2:21 pm)
Re: [2.6 patch] make kprobe_blacklist[] static, Masami Hiramatsu, (Mon May 5, 3:00 pm)
speck-geostationary