2008-07-10 16:38:52

by Daniel Guilak

[permalink] [raw]
Subject: [PATCH] kernel/kprobes.c: Made kprobe_blacklist static.

Signed-off-by: Daniel Guilak <[email protected]>
---
kernel/kprobes.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/kprobes.c b/kernel/kprobes.c
index d4998f8..1485ca8 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 */
};
--
1.5.4.3


2008-07-11 12:40:39

by Masami Hiramatsu

[permalink] [raw]
Subject: Re: [PATCH] kernel/kprobes.c: Made kprobe_blacklist static.

Daniel Guilak wrote:
> Signed-off-by: Daniel Guilak <[email protected]>

Thank you for cleaning up.
Acked-by: Masami Hiramatsu <[email protected]>

> ---
> kernel/kprobes.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/kernel/kprobes.c b/kernel/kprobes.c
> index d4998f8..1485ca8 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: [email protected]