linux-next: build failure after merge of the arm-soc tree
Hi all,
After merging the arm-soc tree, today's linux-next build (arm_multi_v7_defconfig) failed like this:
scripts/Makefile.build:258: recipe for target 'arch/arm/mach-socfpga/platsmp.o' failed arch/arm/mach-socfpga/platsmp.c:66:23: error: 'socfpga_secondary_startup' undeclared (first use in this function)
writel(virt_to_phys(socfpga_secondary_startup),
^Caused by the interaction of commits 45be0cdb5323 "ARM: socfpga: add CPU_METHOD_OF_DECLARE for Arria 10" and 02b4e2756e01 "ARM: v7 setup function should invalidate L1 cache".
I applied the following fix for today.
arch/arm/mach-socfpga/platsmp.c +1 -1
@@ -63,7 +63,7 @@ static int socfpga_a10_boot_secondary(unsigned int cpu, struct task_struct *idle SOCFPGA_A10_RSTMGR_MODMPURST);memcpy (phys_to_virt (0 ), &secondary_trampoline, trampoline_size); -writel (virt_to_phys (socfpga_secondary_startup), +writel (virt_to_phys (secondary_startup), sys_manager_base_addr + (socfpga_cpu1start_addr &0x00000fff ));flush_cache_all ();
cheers
Quoted 5 lines · Michael Ellerman
Hi all,
After merging the arm-soc tree, today's linux-next build (
arm_multi_v7_defconfig) failed like this:
Quoted 8 lines
scripts/Makefile.build:258: recipe for target 'arch/arm/mach-socfpga/platsmp.o' failedarch/arm/mach-socfpga/platsmp.c:66:23: error: 'socfpga_secondary_startup' undeclared (first use in this function)writel(virt_to_phys(socfpga_secondary_startup), ^Caused by the interaction of commits
45be0cdb5323"ARM: socfpga: addCPU_METHOD_OF_DECLAREfor Arria 10" and02b4e2756e01"ARM: v7 setup function should invalidate L1 cache".
I found this as well, unfortunately after it was already pulled for -next.
Quoted 1 line
I applied the following fix for today.
Yes, that's the right fix, and arm-soc now has the equivalent fix as well.
Thanks,
Kevin