diff options
| author | Ben Dooks | 2026-01-20 22:06:55 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman | 2026-01-23 11:18:51 +0100 |
| commit | c5b13f0b10faabfe53217a268aa430a1858a14c2 (patch) | |
| tree | a75733c277f94c3a70d29b7424e60137efcb4936 /mm | |
| parent | a76f5cafcca477c96fe7e423f6b6c55631428e57 (diff) | |
mm: numa,memblock: include <asm/numa.h> for 'numa_nodes_parsed'
[ Upstream commit f46c26f1bcd9164d7f3377f15ca75488a3e44362 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
| -rw-r--r-- | mm/numa_memblks.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/numa_memblks.c b/mm/numa_memblks.c index ff4054f4334d..c447add277cc 100644 --- a/mm/numa_memblks.c +++ b/mm/numa_memblks.c @@ -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; |
