Message ID | 1480691143-19845-15-git-send-email-vladimir.murzin@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 34e3f3c..2254396 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -717,9 +717,9 @@ static void __init setup_processor(void) #endif #ifdef CONFIG_MMU init_default_cache_policy(list->__cpu_mm_mmu_flags); -#endif - erratum_a15_798181_init(); + erratum_a15_798181_init(); +#endif elf_hwcap_fixup(); cacheid_init();
While building for NOMMU link time error shows up: arch/arm/kernel/built-in.o: In function `setup_arch': arch/arm/kernel/smccc-call.o:(.init.text+0xa50): undefined reference to `erratum_a15_798181_init' It happens because erratum_a15_798181_init() lives under smp_tlb.c which is build only for MMU configurations. So do call this function only if build with CONFIG_MMU. Cc: Russell King <linux@armlinux.org.uk> Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com> --- arch/arm/kernel/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)