Skip to content

Commit aa7d5f1

Browse files
arndbRussell King
authored and
Russell King
committed
ARM: 8454/1: OF implies OF_FLATTREE
On the ARM architecture, individual platforms select CONFIG_USE_OF if they need it, but all device tree code is keyed off CONFIG_OF. When building a platform without DT support and manually enabling CONFIG_OF, we now get a number of build errors, e.g. arch/arm/kernel/devtree.c: In function 'setup_machine_fdt': arch/arm/kernel/devtree.c:215:19: error: implicit declaration of function 'early_init_dt_verify' [-Werror=implicit-function-declaration] We could now try to separate the use case of booting from DT vs. the case of using the dynamic implementation, but that seems more complicated than it can gain us. This simply changes the ARM Kconfig file to always enable OF_RESERVED_MEM and OF_EARLY_FLATTREE when CONFIG_OF is enabled. These options add a little extra code when we just want the dynamic OF implementation, but that seems like a rather obscure case, and this version solves all CONFIG_OF related randconfig regressions. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 0166dc1 ("of: make CONFIG_OF user selectable") Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 28fa99b commit aa7d5f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ config ARM
7676
select IRQ_FORCED_THREADING
7777
select MODULES_USE_ELF_REL
7878
select NO_BOOTMEM
79+
select OF_EARLY_FLATTREE if OF
80+
select OF_RESERVED_MEM if OF
7981
select OLD_SIGACTION
8082
select OLD_SIGSUSPEND3
8183
select PERF_USE_VMALLOC
@@ -1822,8 +1824,6 @@ config USE_OF
18221824
bool "Flattened Device Tree support"
18231825
select IRQ_DOMAIN
18241826
select OF
1825-
select OF_EARLY_FLATTREE
1826-
select OF_RESERVED_MEM
18271827
help
18281828
Include support for flattened device tree machine descriptions.
18291829

0 commit comments

Comments
 (0)