diff options
author | Yu Zhao <yuzhao@google.com> | 2019-03-06 02:48:56 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-06 08:07:20 +0300 |
commit | ace451eb5ec5bb432fc28d8a723838b88e28643e (patch) | |
tree | b05bd5178a5965b7b9c3325e3d66acb5356578ca | |
parent | daf3538ad5a4800507b13bea6f37601da9cc28d5 (diff) | |
download | linux-ace451eb5ec5bb432fc28d8a723838b88e28643e.tar.xz |
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/20190208080437.253322-1-yuzhao@google.com
Signed-off-by: Yu Zhao <yuzhao@google.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-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); |