Skip to content

Commit 9b0abe7

Browse files
Kent Overstreettorvalds
Kent Overstreet
authored andcommitted
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] Reported-by: kernel test robot <[email protected]> Fixes: 24e44cc ("mm: percpu: enable per-cpu allocation tagging") Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Kent Overstreet <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 6fbf718 commit 9b0abe7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/alloc_tag.h

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
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

0 commit comments

Comments
 (0)