]> Git Repo - linux.git/commitdiff
mm: percpu: Include smp.h in alloc_tag.h
authorKent Overstreet <[email protected]>
Fri, 24 May 2024 15:42:09 +0000 (11:42 -0400)
committerLinus Torvalds <[email protected]>
Sun, 26 May 2024 21:40:39 +0000 (14:40 -0700)
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: 24e44cc22aa3 ("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]>
include/linux/alloc_tag.h

index afc9e259a2d35409342ef776ccda6135b2926f9e..abd24016a900eaabeecf2f42ab7f17f42820817a 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/preempt.h>
 #include <asm/percpu.h>
 #include <linux/cpumask.h>
+#include <linux/smp.h>
 #include <linux/static_key.h>
 #include <linux/irqflags.h>
 
This page took 0.072286 seconds and 4 git commands to generate.