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

arm64/arch_timer: include <linux/percpu.h>

arch_timer.h includes linux/smp.h since the commit:

6acc71ccac7187fc ("arm64: arch_timer: Allows a CPU-specific erratum to only affect a subset of CPUs")

It was included to use DEFINE_PER_CPU(), etc. But It should have
included <linux/percpu.h> rather than <linux/smp.h>. It worked because
smp.h includes percpu.h.

The next commit will remove percpu.h from smp.h and it will break this
usage.

Explicitly include percpu.h and remove smp.h

Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20240503171847.68267-1-puranjay@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

authored by

Puranjay Mohan and committed by
Catalin Marinas
7647e2b1 83a7eefe

+1 -1
+1 -1
arch/arm64/include/asm/arch_timer.h
··· 15 15 #include <linux/bug.h> 16 16 #include <linux/init.h> 17 17 #include <linux/jump_label.h> 18 - #include <linux/smp.h> 18 + #include <linux/percpu.h> 19 19 #include <linux/types.h> 20 20 21 21 #include <clocksource/arm_arch_timer.h>