diff options
author | Rob Herring <robh@kernel.org> | 2014-04-03 14:38:32 -0400 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2014-04-30 01:59:13 -0400 |
commit | ccf3356e6b3d2802ea452c0091314605a9e7b7a0 (patch) | |
tree | 37e25858c98ee5271aba9740cba04651db5d24c5 | |
parent | 0cdde839265d5f258b36b871b083324f62c1fbb9 (diff) |
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>
-rw-r--r-- | arch/arc/include/asm/sections.h | 1 | ||||
-rw-r--r-- | arch/metag/kernel/setup.c | 4 | ||||
-rw-r--r-- | arch/mips/include/asm/mips-boards/generic.h | 2 | ||||
-rw-r--r-- | arch/mips/lantiq/prom.h | 2 | ||||
-rw-r--r-- | arch/mips/netlogic/xlp/dt.c | 2 | ||||
-rw-r--r-- | arch/mips/ralink/of.c | 2 | ||||
-rw-r--r-- | arch/openrisc/kernel/vmlinux.h | 2 | ||||
-rw-r--r-- | arch/xtensa/kernel/setup.c | 1 | ||||
-rw-r--r-- | include/linux/of_fdt.h | 3 |
9 files changed, 4 insertions, 15 deletions
diff --git a/arch/arc/include/asm/sections.h b/arch/arc/include/asm/sections.h index 764f1e3ba752..09db952e14bd 100644 --- a/arch/arc/include/asm/sections.h +++ b/arch/arc/include/asm/sections.h | |||
@@ -12,6 +12,5 @@ | |||
12 | #include <asm-generic/sections.h> | 12 | #include <asm-generic/sections.h> |
13 | 13 | ||
14 | extern char __arc_dccm_base[]; | 14 | extern char __arc_dccm_base[]; |
15 | extern char __dtb_start[]; | ||
16 | 15 | ||
17 | #endif | 16 | #endif |
diff --git a/arch/metag/kernel/setup.c b/arch/metag/kernel/setup.c index 129c7cdda1ce..31cf53d0eba2 100644 --- a/arch/metag/kernel/setup.c +++ b/arch/metag/kernel/setup.c | |||
@@ -105,10 +105,6 @@ | |||
105 | 105 | ||
106 | extern char _heap_start[]; | 106 | extern char _heap_start[]; |
107 | 107 | ||
108 | #ifdef CONFIG_METAG_BUILTIN_DTB | ||
109 | extern u32 __dtb_start[]; | ||
110 | #endif | ||
111 | |||
112 | #ifdef CONFIG_DA_CONSOLE | 108 | #ifdef CONFIG_DA_CONSOLE |
113 | /* Our early channel based console driver */ | 109 | /* Our early channel based console driver */ |
114 | extern struct console dash_console; | 110 | extern struct console dash_console; |
diff --git a/arch/mips/include/asm/mips-boards/generic.h b/arch/mips/include/asm/mips-boards/generic.h index b969491aa98d..c904c24550f6 100644 --- a/arch/mips/include/asm/mips-boards/generic.h +++ b/arch/mips/include/asm/mips-boards/generic.h | |||
@@ -67,8 +67,6 @@ | |||
67 | 67 | ||
68 | extern int mips_revision_sconid; | 68 | extern int mips_revision_sconid; |
69 | 69 | ||
70 | extern char __dtb_start[]; | ||
71 | |||
72 | #ifdef CONFIG_PCI | 70 | #ifdef CONFIG_PCI |
73 | extern void mips_pcibios_init(void); | 71 | extern void mips_pcibios_init(void); |
74 | #else | 72 | #else |
diff --git a/arch/mips/lantiq/prom.h b/arch/mips/lantiq/prom.h index 69a4c582338d..bfd2d58c1d69 100644 --- a/arch/mips/lantiq/prom.h +++ b/arch/mips/lantiq/prom.h | |||
@@ -26,6 +26,4 @@ struct ltq_soc_info { | |||
26 | extern void ltq_soc_detect(struct ltq_soc_info *i); | 26 | extern void ltq_soc_detect(struct ltq_soc_info *i); |
27 | extern void ltq_soc_init(void); | 27 | extern void ltq_soc_init(void); |
28 | 28 | ||
29 | extern char __dtb_start[]; | ||
30 | |||
31 | #endif | 29 | #endif |
diff --git a/arch/mips/netlogic/xlp/dt.c b/arch/mips/netlogic/xlp/dt.c index 7f9615a712fb..bdde33147bce 100644 --- a/arch/mips/netlogic/xlp/dt.c +++ b/arch/mips/netlogic/xlp/dt.c | |||
@@ -42,7 +42,7 @@ | |||
42 | #include <asm/prom.h> | 42 | #include <asm/prom.h> |
43 | 43 | ||
44 | extern u32 __dtb_xlp_evp_begin[], __dtb_xlp_svp_begin[], | 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 | static void *xlp_fdt_blob; | 46 | static void *xlp_fdt_blob; |
47 | 47 | ||
48 | void __init *xlp_dt_init(void *fdtp) | 48 | void __init *xlp_dt_init(void *fdtp) |
diff --git a/arch/mips/ralink/of.c b/arch/mips/ralink/of.c index 91d7060d5aea..251395210e23 100644 --- a/arch/mips/ralink/of.c +++ b/arch/mips/ralink/of.c | |||
@@ -28,8 +28,6 @@ | |||
28 | __iomem void *rt_sysc_membase; | 28 | __iomem void *rt_sysc_membase; |
29 | __iomem void *rt_memc_membase; | 29 | __iomem void *rt_memc_membase; |
30 | 30 | ||
31 | extern char __dtb_start[]; | ||
32 | |||
33 | __iomem void *plat_of_remap_node(const char *node) | 31 | __iomem void *plat_of_remap_node(const char *node) |
34 | { | 32 | { |
35 | struct resource res; | 33 | struct resource res; |
diff --git a/arch/openrisc/kernel/vmlinux.h b/arch/openrisc/kernel/vmlinux.h index 70b9ce41835c..bbcdf21b0b35 100644 --- a/arch/openrisc/kernel/vmlinux.h +++ b/arch/openrisc/kernel/vmlinux.h | |||
@@ -5,6 +5,4 @@ | |||
5 | extern char __initrd_start, __initrd_end; | 5 | extern char __initrd_start, __initrd_end; |
6 | #endif | 6 | #endif |
7 | 7 | ||
8 | extern u32 __dtb_start[]; | ||
9 | |||
10 | #endif | 8 | #endif |
diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c index 84fe931bb60e..89986e55d594 100644 --- a/arch/xtensa/kernel/setup.c +++ b/arch/xtensa/kernel/setup.c | |||
@@ -73,7 +73,6 @@ extern int initrd_below_start_ok; | |||
73 | #endif | 73 | #endif |
74 | 74 | ||
75 | #ifdef CONFIG_OF | 75 | #ifdef CONFIG_OF |
76 | extern u32 __dtb_start[]; | ||
77 | void *dtb_start = __dtb_start; | 76 | void *dtb_start = __dtb_start; |
78 | #endif | 77 | #endif |
79 | 78 | ||
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h index ddd7219af8ac..d4d0efe534b9 100644 --- a/include/linux/of_fdt.h +++ b/include/linux/of_fdt.h | |||
@@ -80,6 +80,9 @@ extern int __initdata dt_root_addr_cells; | |||
80 | extern int __initdata dt_root_size_cells; | 80 | extern int __initdata dt_root_size_cells; |
81 | extern struct boot_param_header *initial_boot_params; | 81 | extern struct boot_param_header *initial_boot_params; |
82 | 82 | ||
83 | extern char __dtb_start[]; | ||
84 | extern char __dtb_end[]; | ||
85 | |||
83 | /* For scanning the flat device-tree at boot time */ | 86 | /* For scanning the flat device-tree at boot time */ |
84 | extern char *find_flat_dt_string(u32 offset); | 87 | extern char *find_flat_dt_string(u32 offset); |
85 | extern int of_scan_flat_dt(int (*it)(unsigned long node, const char *uname, | 88 | extern int of_scan_flat_dt(int (*it)(unsigned long node, const char *uname, |