History

mm: percpu: Include smp.h in alloc_tag.h

percpu.h depends on smp.h, but doesn't include it directly because of circular header dependency issues; percpu.h is needed in a bunch of low level headers. This fixes a randconfig build error on mips: include/linux/alloc_tag.h: In function '__alloc_tag_ref_set': include/asm-generic/percpu.h:31:40: error: implicit declaration of function 'raw_smp_processor_id' [-Werror=implicit-function-declaration]

Kent Overstreet committed 2 years ago

Commit 9b0abe71 parent 6fbf7181 file · +1 −0Browse files

Unified · Split

include/linux/alloc_tag.h+1−0
@@ -11,6 +11,7 @@ · 10 unmodified lines
1111 #include <linux/preempt.h>
1212 #include <asm/percpu.h>
1313 #include <linux/cpumask.h>
14+#include <linux/smp.h>
1415 #include <linux/static_key.h>
1516 #include <linux/irqflags.h>
1617