]> git.ipfire.org Git - thirdparty/linux.git/commit
mm/sparse: fix sparse_vmemmap_init_nid_early definition without CONFIG_SPARSEMEM
authorJinhui Guo <guojinhui.liam@bytedance.com>
Thu, 27 Nov 2025 09:25:12 +0000 (17:25 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 9 Dec 2025 19:25:32 +0000 (11:25 -0800)
commit1cba2eba9b73d8dfee6b3e7465f510cace71637c
treef7a2af3a9a1d467255bc1f70e0bb7a837b71f66b
parent0da2ba35c0d532ca0fe7af698b17d74c4d084b9a
mm/sparse: fix sparse_vmemmap_init_nid_early definition without CONFIG_SPARSEMEM

When CONFIG_SPARSEMEM is disabled, the macro
sparse_vmemmap_init_nid_early(_nid, _use) passes two arguments, while the
actual function accepts only nid.  Drop the extra argument _use.

Link: https://lkml.kernel.org/r/20251127092512.278-1-guojinhui.liam@bytedance.com
Fixes: d65917c42373 ("mm/sparse: allow for alternate vmemmap section init at boot")
Signed-off-by: Jinhui Guo <guojinhui.liam@bytedance.com>
Cc: Frank van der Linden <fvdl@google.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: "David Hildenbrand (Red Hat)" <david@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mmzone.h