Re: [PATCH] softirq: constify name array

From: Mike Frysinger
Date: Tue Oct 25 2011 - 18:47:06 EST


ping ...
-mike

On Wed, May 4, 2011 at 08:23, Mike Frysinger <vapier@xxxxxxxxxx> wrote:
> Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
> ---
> Âinclude/linux/interrupt.h | Â Â2 +-
> Âkernel/softirq.c     Â|  Â2 +-
> Â2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
> index bea0ac7..74a98ad 100644
> --- a/include/linux/interrupt.h
> +++ b/include/linux/interrupt.h
> @@ -422,7 +422,7 @@ enum
> Â/* map softirq index to softirq name. update 'softirq_to_name' in
> Â* kernel/softirq.c when adding a new softirq.
> Â*/
> -extern char *softirq_to_name[NR_SOFTIRQS];
> +extern const char * const softirq_to_name[NR_SOFTIRQS];
>
> Â/* softirq mask and active fields moved to irq_cpustat_t in
> Â* asm/hardirq.h to get better cache usage. ÂKAO
> diff --git a/kernel/softirq.c b/kernel/softirq.c
> index 174f976..9d744a7 100644
> --- a/kernel/softirq.c
> +++ b/kernel/softirq.c
> @@ -56,7 +56,7 @@ static struct softirq_action softirq_vec[NR_SOFTIRQS] __cacheline_aligned_in_smp
>
> ÂDEFINE_PER_CPU(struct task_struct *, ksoftirqd);
>
> -char *softirq_to_name[NR_SOFTIRQS] = {
> +const char * const softirq_to_name[NR_SOFTIRQS] = {
> Â Â Â Â"HI", "TIMER", "NET_TX", "NET_RX", "BLOCK", "BLOCK_IOPOLL",
> Â Â Â Â"TASKLET", "SCHED", "HRTIMER", Â"RCU"
> Â};
> --
> 1.7.5.rc3
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at Âhttp://vger.kernel.org/majordomo-info.html
> Please read the FAQ at Âhttp://www.tux.org/lkml/
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/