]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm: numa,memblock: include <asm/numa.h> for 'numa_nodes_parsed'
authorBen Dooks <ben.dooks@codethink.co.uk>
Thu, 8 Jan 2026 10:15:39 +0000 (10:15 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 15 Jan 2026 06:16:26 +0000 (22:16 -0800)
The 'numa_nodes_parsed' is defined in <asm/numa.h> but this file
is not included in mm/numa_memblks.c (build x86_64) so add this
to the incldues to fix the following sparse warning:

mm/numa_memblks.c:13:12: warning: symbol 'numa_nodes_parsed' was not declared. Should it be static?

Link: https://lkml.kernel.org/r/20260108101539.229192-1-ben.dooks@codethink.co.uk
Fixes: 87482708210f ("mm: introduce numa_memblks")
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Cc: Ben Dooks <ben.dooks@codethink.co.uk>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/numa_memblks.c

index 5b009a9cd8b4c26e405e49a9536286bb001dd897..8f5735fda0a2180ba7c7eae5f1c6e26a08c9b993 100644 (file)
@@ -7,6 +7,8 @@
 #include <linux/numa.h>
 #include <linux/numa_memblks.h>
 
+#include <asm/numa.h>
+
 int numa_distance_cnt;
 static u8 *numa_distance;