Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

of/fdt: consolidate built-in dtb section variables

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>

+4 -15
-1
arch/arc/include/asm/sections.h
··· 12 12 #include <asm-generic/sections.h> 13 13 14 14 extern char __arc_dccm_base[]; 15 - extern char __dtb_start[]; 16 15 17 16 #endif
-4
arch/metag/kernel/setup.c
··· 105 105 106 106 extern char _heap_start[]; 107 107 108 - #ifdef CONFIG_METAG_BUILTIN_DTB 109 - extern u32 __dtb_start[]; 110 - #endif 111 - 112 108 #ifdef CONFIG_DA_CONSOLE 113 109 /* Our early channel based console driver */ 114 110 extern struct console dash_console;
-2
arch/mips/include/asm/mips-boards/generic.h
··· 67 67 68 68 extern int mips_revision_sconid; 69 69 70 - extern char __dtb_start[]; 71 - 72 70 #ifdef CONFIG_PCI 73 71 extern void mips_pcibios_init(void); 74 72 #else
-2
arch/mips/lantiq/prom.h
··· 26 26 extern void ltq_soc_detect(struct ltq_soc_info *i); 27 27 extern void ltq_soc_init(void); 28 28 29 - extern char __dtb_start[]; 30 - 31 29 #endif
+1 -1
arch/mips/netlogic/xlp/dt.c
··· 42 42 #include <asm/prom.h> 43 43 44 44 extern u32 __dtb_xlp_evp_begin[], __dtb_xlp_svp_begin[], 45 - __dtb_xlp_fvp_begin[], __dtb_xlp_gvp_begin[], __dtb_start[]; 45 + __dtb_xlp_fvp_begin[], __dtb_xlp_gvp_begin[]; 46 46 static void *xlp_fdt_blob; 47 47 48 48 void __init *xlp_dt_init(void *fdtp)
-2
arch/mips/ralink/of.c
··· 28 28 __iomem void *rt_sysc_membase; 29 29 __iomem void *rt_memc_membase; 30 30 31 - extern char __dtb_start[]; 32 - 33 31 __iomem void *plat_of_remap_node(const char *node) 34 32 { 35 33 struct resource res;
-2
arch/openrisc/kernel/vmlinux.h
··· 5 5 extern char __initrd_start, __initrd_end; 6 6 #endif 7 7 8 - extern u32 __dtb_start[]; 9 - 10 8 #endif
-1
arch/xtensa/kernel/setup.c
··· 73 73 #endif 74 74 75 75 #ifdef CONFIG_OF 76 - extern u32 __dtb_start[]; 77 76 void *dtb_start = __dtb_start; 78 77 #endif 79 78
+3
include/linux/of_fdt.h
··· 80 80 extern int __initdata dt_root_size_cells; 81 81 extern struct boot_param_header *initial_boot_params; 82 82 83 + extern char __dtb_start[]; 84 + extern char __dtb_end[]; 85 + 83 86 /* For scanning the flat device-tree at boot time */ 84 87 extern char *find_flat_dt_string(u32 offset); 85 88 extern int of_scan_flat_dt(int (*it)(unsigned long node, const char *uname,