Re: [PATCH v1 2/2] mm/sparse: start using sparse_init_nid(), and remove old code

From: Pavel Tatashin
Date: Fri Jun 29 2018 - 11:56:43 EST


> besides this first for_each_present_section_nr(), what about writing a static inline
> function that returns next_present_section_nr(-1) ?
>
> Something like:
>
> static inline int first_present_section_nr(void)
> {
> return next_present_section_nr(-1);
> }

Good idea, will add it, thank you.

Pavel