Declaration of struct node is required regardless. On UMA system, including compaction.h without proceeding node.h shouldn't cause build error.
Signed-off-by: Yu Zhao <yuz...@google.com> --- include/linux/compaction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/compaction.h b/include/linux/compaction.h index 68250a57aace..be165b220996 100644 --- a/include/linux/compaction.h +++ b/include/linux/compaction.h @@ -220,22 +220,22 @@ static inline int kcompactd_run(int nid) static inline void kcompactd_stop(int nid) { } static inline void wakeup_kcompactd(pg_data_t *pgdat, int order, int classzone_idx) { } #endif /* CONFIG_COMPACTION */ -#if defined(CONFIG_COMPACTION) && defined(CONFIG_SYSFS) && defined(CONFIG_NUMA) struct node; +#if defined(CONFIG_COMPACTION) && defined(CONFIG_SYSFS) && defined(CONFIG_NUMA) extern int compaction_register_node(struct node *node); extern void compaction_unregister_node(struct node *node); #else static inline int compaction_register_node(struct node *node) { return 0; } -- 2.20.1.791.gb4d0f1c61a-goog