]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:21:29 +0000 (11:21 +0100)
commit2a0db14ff1bc7ecd32f581497fd3c9fdb8111ec3
tree16fdf3943794fc340585ffad8b95f85acbbacedd
parentb5cb343f0c3d071848452ca856a3bacef7943933
mm: numa,memblock: include <asm/numa.h> for 'numa_nodes_parsed'

commit f46c26f1bcd9164d7f3377f15ca75488a3e44362 upstream.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
mm/numa_memblks.c