Re: [PATCH] kprobes: remove intialization of static per-cpu variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Vegard,

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

Vegard Nossum wrote:
> From: Vegard Nossum <vegard.nossum@xxxxxxxxx>
> Date: Thu, 12 Jun 2008 22:02:01 +0200
> Subject: [PATCH] kprobes: remove intialization of static per-cpu variable
> 
> Cc: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
> Signed-off-by: Vegard Nossum <vegard.nossum@xxxxxxxxx>
> ---
>  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@xxxxxxxxxx

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux