Skip to content

Commit f46c26f

Browse files
bjdooks-ctakpm00
authored andcommitted
mm: numa,memblock: include <asm/numa.h> for 'numa_nodes_parsed'
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: 8748270 ("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>
1 parent 18e87bc commit f46c26f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mm/numa_memblks.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#include <linux/numa.h>
88
#include <linux/numa_memblks.h>
99

10+
#include <asm/numa.h>
11+
1012
int numa_distance_cnt;
1113
static u8 *numa_distance;
1214

0 commit comments

Comments
 (0)