Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Jinhui Guo and committed by
Andrew Morton
1cba2eba 0da2ba35

+1 -1
+1 -1
include/linux/mmzone.h
··· 2289 2289 #else 2290 2290 #define sparse_init() do {} while (0) 2291 2291 #define sparse_index_init(_sec, _nid) do {} while (0) 2292 - #define sparse_vmemmap_init_nid_early(_nid, _use) do {} while (0) 2292 + #define sparse_vmemmap_init_nid_early(_nid) do {} while (0) 2293 2293 #define sparse_vmemmap_init_nid_late(_nid) do {} while (0) 2294 2294 #define pfn_in_present_section pfn_valid 2295 2295 #define subsection_map_init(_pfn, _nr_pages) do {} while (0)