OSDN Git Service

arm64: Add missing header <asm/smp.h> in two files
authorCarlos Bilbao <bilbao@vt.edu>
Thu, 8 Jul 2021 11:15:42 +0000 (07:15 -0400)
committerWill Deacon <will@kernel.org>
Mon, 12 Jul 2021 12:37:34 +0000 (13:37 +0100)
commite62e074814862cffd8e60a1bdf52d6b592a03675
treebfece5a24f2d0e2cdae88de077cdef1e8a61a603
parent5f34b1eb2f8d4bba7d6352e767ef84bee9096d97
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>
arch/arm64/include/asm/smp_plat.h
arch/arm64/kernel/cpufeature.c