Declaration of struct node is required regardless. On UMA systems, including compaction.h without preceding node.h shouldn't cause a build error.
Unified · Split
| @@ -226,8 +226,8 @@ static inline void wakeup_kcompactd(pg_data_t *pgdat, int order, int classzone_i · 225 unmodified lines | |||
| 226 | 226 | ||
| 227 | #endif /* CONFIG_COMPACTION */ | 227 | #endif /* CONFIG_COMPACTION */ |
| 228 | 228 | ||
| 229 | #if defined(CONFIG_COMPACTION) && defined(CONFIG_SYSFS) && defined(CONFIG_NUMA) | ||
| 230 | struct node; | 229 | struct node; |
| 230 | #if defined(CONFIG_COMPACTION) && defined(CONFIG_SYSFS) && defined(CONFIG_NUMA) | ||
| 231 | extern int compaction_register_node(struct node *node); | 231 | extern int compaction_register_node(struct node *node); |
| 232 | extern void compaction_unregister_node(struct node *node); | 232 | extern void compaction_unregister_node(struct node *node); |
| 233 | 233 | ||