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

arm64: Add missing header <asm/smp.h> in two files

Add missing header <asm/smp.h> on include/asm/smp_plat.h, as it calls function
cpu_logical_map(). Also include it on kernel/cpufeature.c since it has calls to
functions cpu_panic_kernel() and cpu_die_early().

Both files call functions defined on this header, make the header dependencies
less fragile.

Signed-off-by: Carlos Bilbao <bilbao@vt.edu>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/4325940.LvFx2qVVIh@iron-maiden
Signed-off-by: Will Deacon <will@kernel.org>

authored by

Carlos Bilbao and committed by
Will Deacon
e62e0748 5f34b1eb

+2
+1
arch/arm64/include/asm/smp_plat.h
··· 10 10 11 11 #include <linux/cpumask.h> 12 12 13 + #include <asm/smp.h> 13 14 #include <asm/types.h> 14 15 15 16 struct mpidr_hash {
+1
arch/arm64/kernel/cpufeature.c
··· 81 81 #include <asm/mmu_context.h> 82 82 #include <asm/mte.h> 83 83 #include <asm/processor.h> 84 + #include <asm/smp.h> 84 85 #include <asm/sysreg.h> 85 86 #include <asm/traps.h> 86 87 #include <asm/virt.h>