Skip to content

Commit 1cba2eb

Browse files
guojinhui-liamakpm00
authored andcommitted
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: d65917c ("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>
1 parent 0da2ba3 commit 1cba2eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/mmzone.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2289,7 +2289,7 @@ void sparse_init(void);
22892289
#else
22902290
#define sparse_init() do {} while (0)
22912291
#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)
22932293
#define sparse_vmemmap_init_nid_late(_nid) do {} while (0)
22942294
#define pfn_in_present_section pfn_valid
22952295
#define subsection_map_init(_pfn, _nr_pages) do {} while (0)

0 commit comments

Comments
 (0)