All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kprobes: remove intialization of static per-cpu variable
@ 2008-06-12 21:07 Vegard Nossum
  2008-06-12 21:47 ` Masami Hiramatsu
  0 siblings, 1 reply; 2+ messages in thread
From: Vegard Nossum @ 2008-06-12 21:07 UTC (permalink / raw)
  To: kernel-janitors

From: Vegard Nossum <vegard.nossum@gmail.com>
Date: Thu, 12 Jun 2008 22:02:01 +0200
Subject: [PATCH] kprobes: remove intialization of static per-cpu variable

Cc: Masami Hiramatsu <mhiramat@redhat.com>
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
---
 kernel/kprobes.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/kprobes.c b/kernel/kprobes.c
index 1e0250c..04a0c36 100644
--- a/kernel/kprobes.c
+++ b/kernel/kprobes.c
@@ -70,7 +70,7 @@ static bool kprobe_enabled;
 
 DEFINE_MUTEX(kprobe_mutex);		/* Protects kprobe_table */
 DEFINE_SPINLOCK(kretprobe_lock);	/* Protects kretprobe_inst_table */
-static DEFINE_PER_CPU(struct kprobe *, kprobe_instance) = NULL;
+static DEFINE_PER_CPU(struct kprobe *, kprobe_instance);
 
 /*
  * Normally, functions that we'd want to prohibit kprobes in, are marked
-- 
1.5.4.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kprobes: remove intialization of static per-cpu variable
  2008-06-12 21:07 [PATCH] kprobes: remove intialization of static per-cpu variable Vegard Nossum
@ 2008-06-12 21:47 ` Masami Hiramatsu
  0 siblings, 0 replies; 2+ messages in thread
From: Masami Hiramatsu @ 2008-06-12 21:47 UTC (permalink / raw)
  To: kernel-janitors

Hi Vegard,

Since David who is the sparc kprobes maintainer confirmed this change,
I think it can go.
Acked-by: Masami Hiramatsu <mhiramat@redhat.com>

Vegard Nossum wrote:
> From: Vegard Nossum <vegard.nossum@gmail.com>
> Date: Thu, 12 Jun 2008 22:02:01 +0200
> Subject: [PATCH] kprobes: remove intialization of static per-cpu variable
> 
> Cc: Masami Hiramatsu <mhiramat@redhat.com>
> Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
> ---
>  kernel/kprobes.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/kernel/kprobes.c b/kernel/kprobes.c
> index 1e0250c..04a0c36 100644
> --- a/kernel/kprobes.c
> +++ b/kernel/kprobes.c
> @@ -70,7 +70,7 @@ static bool kprobe_enabled;
>  
>  DEFINE_MUTEX(kprobe_mutex);		/* Protects kprobe_table */
>  DEFINE_SPINLOCK(kretprobe_lock);	/* Protects kretprobe_inst_table */
> -static DEFINE_PER_CPU(struct kprobe *, kprobe_instance) = NULL;
> +static DEFINE_PER_CPU(struct kprobe *, kprobe_instance);
>  
>  /*
>   * Normally, functions that we'd want to prohibit kprobes in, are marked

-- 
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-06-12 21:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-12 21:07 [PATCH] kprobes: remove intialization of static per-cpu variable Vegard Nossum
2008-06-12 21:47 ` Masami Hiramatsu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.