pgdat_page_ext_init() sets pgdat->node_page_ext to NULL only on FLATMEM. FLATMEM depends on !NUMA, so the pgdat is always the zero-initialized contig_page_data and the store has no effect. So remove the call site, the unused function and its declaration. No functional change.
Showing the changes to include (1 of 3 files). Show all
Unified · Split
| @@ -55,7 +55,6 @@ struct page_ext { · 54 unmodified lines | ||
| 55 | 55 | |
| 56 | 56 | extern bool early_page_ext; |
| 57 | 57 | extern unsigned long page_ext_size; |
| 58 | −extern void pgdat_page_ext_init(struct pglist_data *pgdat); | |
| 59 | 58 | |
| 60 | 59 | static inline bool early_page_ext_enabled(void) |
| 61 | 60 | { |
| @@ -202,10 +201,6 @@ static inline bool early_page_ext_enabled(void) · 140 unmodified lines | ||
| 202 | 201 | return false; |
| 203 | 202 | } |
| 204 | 203 | |
| 205 | −static inline void pgdat_page_ext_init(struct pglist_data *pgdat) | |
| 206 | −{ | |
| 207 | −} | |
| 208 | − | |
| 209 | 204 | static inline void page_ext_init(void) |
| 210 | 205 | { |
| 211 | 206 | } |