of/fdt: consolidate built-in dtb section variables
authorRob Herring <robh@kernel.org>
Thu, 3 Apr 2014 18:38:32 +0000 (13:38 -0500)
committerRob Herring <robh@kernel.org>
Wed, 30 Apr 2014 05:59:13 +0000 (00:59 -0500)
Unify the various architectures __dtb_start and __dtb_end definitions
moving them into of_fdt.h.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Vineet Gupta <vgupta@synopsys.com>
Acked-by: James Hogan <james.hogan@imgtec.com>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: linux-metag@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux@lists.openrisc.net
Cc: linux-xtensa@linux-xtensa.org
Tested-by: Grant Likely <grant.likely@linaro.org>
Tested-by: Stephen Chivers <schivers@csc.com>
arch/arc/include/asm/sections.h
arch/metag/kernel/setup.c
arch/mips/include/asm/mips-boards/generic.h
arch/mips/lantiq/prom.h
arch/mips/netlogic/xlp/dt.c
arch/mips/ralink/of.c
arch/openrisc/kernel/vmlinux.h
arch/xtensa/kernel/setup.c
include/linux/of_fdt.h

index 764f1e3ba7523b7101c3b9255e6b773a81a01269..09db952e14bd7306deff74145c805c076f1100fc 100644 (file)
@@ -12,6 +12,5 @@
 #include <asm-generic/sections.h>
 
 extern char __arc_dccm_base[];
-extern char __dtb_start[];
 
 #endif
index 129c7cdda1ced11b25e36c6d2554715486dda79c..31cf53d0eba2637a5d19e89fdbf0db2f3b38c502 100644 (file)
 
 extern char _heap_start[];
 
-#ifdef CONFIG_METAG_BUILTIN_DTB
-extern u32 __dtb_start[];
-#endif
-
 #ifdef CONFIG_DA_CONSOLE
 /* Our early channel based console driver */
 extern struct console dash_console;
index b969491aa98dbae81de4481f7038f0a5855e91df..c904c24550f619e6ed0919c69ac279cd8cfe8f8f 100644 (file)
@@ -67,8 +67,6 @@
 
 extern int mips_revision_sconid;
 
-extern char __dtb_start[];
-
 #ifdef CONFIG_PCI
 extern void mips_pcibios_init(void);
 #else
index 69a4c582338d0a68b2010d5d0367e0518da3fb92..bfd2d58c1d69fa0e3c3cd55298af9493a5f04c87 100644 (file)
@@ -26,6 +26,4 @@ struct ltq_soc_info {
 extern void ltq_soc_detect(struct ltq_soc_info *i);
 extern void ltq_soc_init(void);
 
-extern char __dtb_start[];
-
 #endif
index 7f9615a712fb5a99af50d7443c037ac95473f7ba..bdde33147bce2eb962a3eaf265b6ced57dffd28f 100644 (file)
@@ -42,7 +42,7 @@
 #include <asm/prom.h>
 
 extern u32 __dtb_xlp_evp_begin[], __dtb_xlp_svp_begin[],
-       __dtb_xlp_fvp_begin[], __dtb_xlp_gvp_begin[], __dtb_start[];
+       __dtb_xlp_fvp_begin[], __dtb_xlp_gvp_begin[];
 static void *xlp_fdt_blob;
 
 void __init *xlp_dt_init(void *fdtp)
index 91d7060d5aeaf03d46049094631a8678b75179bb..251395210e236ea0b00aacb792adc9257548f4fd 100644 (file)
@@ -28,8 +28,6 @@
 __iomem void *rt_sysc_membase;
 __iomem void *rt_memc_membase;
 
-extern char __dtb_start[];
-
 __iomem void *plat_of_remap_node(const char *node)
 {
        struct resource res;
index 70b9ce41835cdf2a3e345a39dc9e50197f6cb330..bbcdf21b0b35147ca130bb89a0c5d0f66c0e4d74 100644 (file)
@@ -5,6 +5,4 @@
 extern char __initrd_start, __initrd_end;
 #endif
 
-extern u32 __dtb_start[];
-
 #endif
index 84fe931bb60e1f012417d202d002813b12cf68aa..89986e55d594593a651d38f789bb63d1df4fbc9c 100644 (file)
@@ -73,7 +73,6 @@ extern int initrd_below_start_ok;
 #endif
 
 #ifdef CONFIG_OF
-extern u32 __dtb_start[];
 void *dtb_start = __dtb_start;
 #endif
 
index ddd7219af8ac4c84722fcb62d6a7535f4a21d0ea..d4d0efe534b9835bc24448fe6bbb1d84855623a3 100644 (file)
@@ -80,6 +80,9 @@ extern int __initdata dt_root_addr_cells;
 extern int __initdata dt_root_size_cells;
 extern struct boot_param_header *initial_boot_params;
 
+extern char __dtb_start[];
+extern char __dtb_end[];
+
 /* For scanning the flat device-tree at boot time */
 extern char *find_flat_dt_string(u32 offset);
 extern int of_scan_flat_dt(int (*it)(unsigned long node, const char *uname,