It is defined in the same file just a few lines above.
Unified · Split
| @@ -1481,7 +1481,7 @@ static inline int pfn_valid(unsigned long pfn) · 1480 unmodified lines | ||
| 1481 | 1481 | |
| 1482 | 1482 | if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS) |
| 1483 | 1483 | return 0; |
| 1484 | − ms = __nr_to_section(pfn_to_section_nr(pfn)); | |
| 1484 | + ms = __pfn_to_section(pfn); | |
| 1485 | 1485 | if (!valid_section(ms)) |
| 1486 | 1486 | return 0; |
| 1487 | 1487 | /* |
| @@ -1496,7 +1496,7 @@ static inline int pfn_in_present_section(unsigned long pfn) · 8 unmodified lines | ||
| 1496 | 1496 | { |
| 1497 | 1497 | if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS) |
| 1498 | 1498 | return 0; |
| 1499 | − return present_section(__nr_to_section(pfn_to_section_nr(pfn))); | |
| 1499 | + return present_section(__pfn_to_section(pfn)); | |
| 1500 | 1500 | } |
| 1501 | 1501 | |
| 1502 | 1502 | static inline unsigned long next_present_section_nr(unsigned long section_nr) |