Skip to content

Commit 7647e2b

Browse files
puranjaymohanctmarinas
authored andcommitted
arm64/arch_timer: include <linux/percpu.h>
arch_timer.h includes linux/smp.h since the commit: 6acc71c ("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 <[email protected]> Acked-by: Mark Rutland <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 83a7eef commit 7647e2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/include/asm/arch_timer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <linux/bug.h>
1616
#include <linux/init.h>
1717
#include <linux/jump_label.h>
18-
#include <linux/smp.h>
18+
#include <linux/percpu.h>
1919
#include <linux/types.h>
2020

2121
#include <clocksource/arm_arch_timer.h>

0 commit comments

Comments
 (0)