Skip to content

Commit

Permalink
powerpc: Use static const char arrays
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Joe Perches authored and Benjamin Herrenschmidt committed Oct 13, 2010
1 parent 410bccf commit 4e74fd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/boot/addnote.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <string.h>

/* CHRP note section */
char arch[] = "PowerPC";
static const char arch[] = "PowerPC";

#define N_DESCR 6
unsigned int descr[N_DESCR] = {
Expand All @@ -33,7 +33,7 @@ unsigned int descr[N_DESCR] = {
};

/* RPA note section */
char rpaname[] = "IBM,RPA-Client-Config";
static const char rpaname[] = "IBM,RPA-Client-Config";

/*
* Note: setting ignore_my_client_config *should* mean that OF ignores
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ static int virq_debug_show(struct seq_file *m, void *private)
unsigned long flags;
struct irq_desc *desc;
const char *p;
char none[] = "none";
static const char none[] = "none";
int i;

seq_printf(m, "%-5s %-7s %-15s %s\n", "virq", "hwirq",
Expand Down

0 comments on commit 4e74fd7

Please sign in to comment.