powerpc: Use static const char arrays
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>
This commit is contained in:
committed by
Benjamin Herrenschmidt
parent
410bccf978
commit
4e74fd7d0a
@@ -20,7 +20,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/* CHRP note section */
|
/* CHRP note section */
|
||||||
char arch[] = "PowerPC";
|
static const char arch[] = "PowerPC";
|
||||||
|
|
||||||
#define N_DESCR 6
|
#define N_DESCR 6
|
||||||
unsigned int descr[N_DESCR] = {
|
unsigned int descr[N_DESCR] = {
|
||||||
@@ -33,7 +33,7 @@ unsigned int descr[N_DESCR] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* RPA note section */
|
/* 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
|
* Note: setting ignore_my_client_config *should* mean that OF ignores
|
||||||
|
@@ -1143,7 +1143,7 @@ static int virq_debug_show(struct seq_file *m, void *private)
|
|||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
struct irq_desc *desc;
|
struct irq_desc *desc;
|
||||||
const char *p;
|
const char *p;
|
||||||
char none[] = "none";
|
static const char none[] = "none";
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
seq_printf(m, "%-5s %-7s %-15s %s\n", "virq", "hwirq",
|
seq_printf(m, "%-5s %-7s %-15s %s\n", "virq", "hwirq",
|
||||||
|
Reference in New Issue
Block a user