Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 9b0abe7

Browse files
Kent Overstreettorvalds
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 <lkp@intel.com> Fixes: 24e44cc ("mm: percpu: enable per-cpu allocation tagging") Closes: https://lore.kernel.org/oe-kbuild-all/202405210052.DIrMXJNz-lkp@intel.com/ Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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

Lines changed: 1 addition & 0 deletions
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)