From mboxrd@z Thu Jan 1 00:00:00 1970 From: Masami Hiramatsu Date: Thu, 12 Jun 2008 21:47:30 +0000 Subject: Re: [PATCH] kprobes: remove intialization of static per-cpu variable Message-Id: <48519972.8040203@redhat.com> List-Id: References: <20080612210719.GB3283@damson.getinternet.no> In-Reply-To: <20080612210719.GB3283@damson.getinternet.no> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kernel-janitors@vger.kernel.org Hi Vegard, Since David who is the sparc kprobes maintainer confirmed this change, I think it can go. Acked-by: Masami Hiramatsu Vegard Nossum wrote: > From: Vegard Nossum > Date: Thu, 12 Jun 2008 22:02:01 +0200 > Subject: [PATCH] kprobes: remove intialization of static per-cpu variable > > Cc: Masami Hiramatsu > Signed-off-by: Vegard Nossum > --- > 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