mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] softirq: constify name array
@ 2011-05-04 12:23 Mike Frysinger
  2011-10-25 22:46 ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2011-05-04 12:23 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: linux-kernel

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 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


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

* Re: [PATCH] softirq: constify name array
  2011-05-04 12:23 [PATCH] softirq: constify name array Mike Frysinger
@ 2011-10-25 22:46 ` Mike Frysinger
  2011-10-27  9:13   ` Américo Wang
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2011-10-25 22:46 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: linux-kernel

ping ...
-mike

On Wed, May 4, 2011 at 08:23, Mike Frysinger <vapier@gentoo.org> wrote:
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  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@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

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

* Re: [PATCH] softirq: constify name array
  2011-10-25 22:46 ` Mike Frysinger
@ 2011-10-27  9:13   ` Américo Wang
  0 siblings, 0 replies; 3+ messages in thread
From: Américo Wang @ 2011-10-27  9:13 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: Thomas Gleixner, linux-kernel

On Wed, Oct 26, 2011 at 6:46 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> ping ...
> -mike
>
> On Wed, May 4, 2011 at 08:23, Mike Frysinger <vapier@gentoo.org> wrote:
>> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
>> ---

Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>

Thanks.

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

end of thread, other threads:[~2011-10-27  9:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-04 12:23 [PATCH] softirq: constify name array Mike Frysinger
2011-10-25 22:46 ` Mike Frysinger
2011-10-27  9:13   ` Américo Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®