of/fdt: fix sparse warning
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Wed, 4 Feb 2015 12:04:06 +0000 (12:04 +0000)
committerRob Herring <robh@kernel.org>
Wed, 4 Feb 2015 16:43:15 +0000 (10:43 -0600)
this patch fixes following sparse warning:

fdt.c:765:12: warning: symbol 'early_init_dt_scan_chosen_serial' was not declared. Should it be static?

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c

index 510074226d571de661fb7245c0b4091749555ada..3a896c9aeb7464ccf9ba067e27d601316fc1c879 100644 (file)
@@ -762,7 +762,7 @@ static inline void early_init_dt_check_for_initrd(unsigned long node)
 #ifdef CONFIG_SERIAL_EARLYCON
 extern struct of_device_id __earlycon_of_table[];
 
-int __init early_init_dt_scan_chosen_serial(void)
+static int __init early_init_dt_scan_chosen_serial(void)
 {
        int offset;
        const char *p;