diff options
author | Yu Zhao <[email protected]> | 2019-03-05 15:48:56 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-03-05 21:07:20 -0800 |
commit | ace451eb5ec5bb432fc28d8a723838b88e28643e (patch) | |
tree | b05bd5178a5965b7b9c3325e3d66acb5356578ca | |
parent | daf3538ad5a4800507b13bea6f37601da9cc28d5 (diff) |
include/linux/compaction.h: fix potential build error
Declaration of struct node is required regardless. On UMA systems,
including compaction.h without preceding node.h shouldn't cause a build
error.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Yu Zhao <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | include/linux/compaction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/compaction.h b/include/linux/compaction.h index c960923d9ec2..9569e7c786d3 100644 --- a/include/linux/compaction.h +++ b/include/linux/compaction.h @@ -226,8 +226,8 @@ static inline void wakeup_kcompactd(pg_data_t *pgdat, int order, int classzone_i #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); |