* [2.6 patch] make kprobe_blacklist[] static
@ 2008-05-05 18:21 Adrian Bunk
2008-05-05 19:00 ` Masami Hiramatsu
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2008-05-05 18:21 UTC (permalink / raw)
To: Srinivasa Ds, ananth, anil.s.keshavamurthy, davem, mhiramat
Cc: linux-kernel, Andrew Morton
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 */
};
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [2.6 patch] make kprobe_blacklist[] static
2008-05-05 18:21 [2.6 patch] make kprobe_blacklist[] static Adrian Bunk
@ 2008-05-05 19:00 ` Masami Hiramatsu
0 siblings, 0 replies; 2+ messages in thread
From: Masami Hiramatsu @ 2008-05-05 19:00 UTC (permalink / raw)
To: Adrian Bunk
Cc: Srinivasa Ds, ananth, anil.s.keshavamurthy, davem, linux-kernel,
Andrew Morton
Adrian Bunk wrote:
> This patch makes the needlessly global kprobe_blacklist[] static.
>
> Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Masami Hiramatsu <mhiramat@redhat.com>
Thank you for fixing,
>
> ---
> 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 */
> };
>
--
Masami Hiramatsu
Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division
e-mail: mhiramat@redhat.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-05 19:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-05 18:21 [2.6 patch] make kprobe_blacklist[] static Adrian Bunk
2008-05-05 19:00 ` Masami Hiramatsu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox