Number of online NUMA nodes can't be negative as well. This doesn't save space as the variable is used only in 32-bit context, but do it anyway for consistency.
Unified · Split
| @@ -445,7 +445,7 @@ static inline int next_memory_node(int nid) · 444 unmodified lines | ||
| 445 | 445 | } |
| 446 | 446 | |
| 447 | 447 | extern unsigned int nr_node_ids; |
| 448 | −extern int nr_online_nodes; | |
| 448 | +extern unsigned int nr_online_nodes; | |
| 449 | 449 | |
| 450 | 450 | static inline void node_set_online(int nid) |
| 451 | 451 | { |
| @@ -486,7 +486,7 @@ static inline int num_node_state(enum node_states state) · 34 unmodified lines | ||
| 486 | 486 | #define first_memory_node 0 |
| 487 | 487 | #define next_online_node(nid) (MAX_NUMNODES) |
| 488 | 488 | #define nr_node_ids 1U |
| 489 | −#define nr_online_nodes 1 | |
| 489 | +#define nr_online_nodes 1U | |
| 490 | 490 | |
| 491 | 491 | #define node_set_online(node) node_set_state((node), N_ONLINE) |
| 492 | 492 | #define node_set_offline(node) node_clear_state((node), N_ONLINE) |
| @@ -290,7 +290,7 @@ EXPORT_SYMBOL(movable_zone); · 289 unmodified lines | ||
| 290 | 290 | |
| 291 | 291 | #if MAX_NUMNODES > 1 |
| 292 | 292 | unsigned int nr_node_ids __read_mostly = MAX_NUMNODES; |
| 293 | −int nr_online_nodes __read_mostly = 1; | |
| 293 | +unsigned int nr_online_nodes __read_mostly = 1; | |
| 294 | 294 | EXPORT_SYMBOL(nr_node_ids); |
| 295 | 295 | EXPORT_SYMBOL(nr_online_nodes); |
| 296 | 296 | #endif |
| @@ -5664,7 +5664,7 @@ void __ref build_all_zonelists(pg_data_t *pgdat) · 5367 unmodified lines | ||
| 5664 | 5664 | else |
| 5665 | 5665 | page_group_by_mobility_disabled = 0; |
| 5666 | 5666 | |
| 5667 | − pr_info("Built %i zonelists, mobility grouping %s. Total pages: %ld\n", | |
| 5667 | + pr_info("Built %u zonelists, mobility grouping %s. Total pages: %ld\n", | |
| 5668 | 5668 | nr_online_nodes, |
| 5669 | 5669 | page_group_by_mobility_disabled ? "off" : "on", |
| 5670 | 5670 | vm_total_pages); |