microblaze: Add static qualifiers
authorMichal Simek <michal.simek@xilinx.com>
Thu, 13 Dec 2012 16:30:05 +0000 (17:30 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 13 Dec 2012 17:15:34 +0000 (18:15 +0100)
Adding static to internal variables and functions.

Sparse warnings:
arch/microblaze/kernel/prom.c:55:6: warning:
symbol 'stdout' was not declared. Should it be static?
arch/microblaze/kernel/prom.c:57:12: warning:
symbol 'early_init_dt_scan_chosen_serial' was not declared. Should it be static?
  CC      arch/microblaze/kernel/prom.o
arch/microblaze/kernel/intc.c:102:5: warning:
symbol 'xintc_map' was not declared. Should it be static?
  CC      arch/microblaze/kernel/intc.o

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/kernel/intc.c
arch/microblaze/kernel/prom.c

index 7b4c6444bc1685774746a81d6b549f8b026a94d3..7a1a8d4354feeb6f10767d7947baef8fa6546512 100644 (file)
@@ -99,7 +99,7 @@ unsigned int get_irq(void)
        return irq;
 }
 
-int xintc_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t hw)
+static int xintc_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t hw)
 {
        u32 intr_mask = (u32)d->host_data;
 
index 4a764ccb9f26a81963ac2fffb3c6f0a452d8d87f..a744e3f1888381053bc419ba9e769cb1e5920c85 100644 (file)
@@ -52,9 +52,9 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
 }
 
 #ifdef CONFIG_EARLY_PRINTK
-char *stdout;
+static char *stdout;
 
-int __init early_init_dt_scan_chosen_serial(unsigned long node,
+static int __init early_init_dt_scan_chosen_serial(unsigned long node,
                                const char *uname, int depth, void *data)
 {
        unsigned long l;