diff --git a/mm/sparse-vmemmap.c b/mm/sparse-vmemmap.c index e1a54ba411ec74..95e2c7638a5cc7 100644 --- a/mm/sparse-vmemmap.c +++ b/mm/sparse-vmemmap.c @@ -296,7 +296,8 @@ void __init sparse_mem_maps_populate_node(struct page **map_map, if (!present_section_nr(pnum)) continue; - map_map[nr_consumed_maps] = sparse_mem_map_populate(pnum, nodeid, NULL); + map_map[nr_consumed_maps] = + sparse_mem_map_populate(pnum, nodeid, NULL); if (map_map[nr_consumed_maps++]) continue; pr_err("%s: sparsemem memory map backing failed some memory will not be available\n", diff --git a/mm/sparse.c b/mm/sparse.c index 0041cd6e07dd69..2ea8b3dbd0dfd1 100644 --- a/mm/sparse.c +++ b/mm/sparse.c @@ -588,7 +588,8 @@ void __init sparse_init(void) sizeof(map_map[0])); #endif - /* The numner of present sections stored in nr_present_sections + /* + * The number of present sections stored in nr_present_sections * are kept the same since mem sections are marked as present in * memory_present(). In this for loop, we need check which sections * failed to allocate memmap or usemap, then clear its @@ -596,7 +597,8 @@ void __init sparse_init(void) * increase 'nr_consumed_maps' whether its allocation of memmap * or usemap failed or not, so that after we handle the i-th * memory section, can get memmap and usemap of (i+1)-th section - * correctly. */ + * correctly. + */ for_each_present_section_nr(0, pnum) { struct mem_section *ms;