summaryrefslogtreecommitdiff
path: root/tools/testing/memblock
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@gmail.com>2024-07-12 03:51:36 +0000
committerMike Rapoport (Microsoft) <rppt@kernel.org>2024-08-06 08:17:49 +0300
commit19c91bd8932a2e00f8de76022c780951166be9a0 (patch)
tree8ceb4e1f417412eb90fd5ea14b2cc916f536ae54 /tools/testing/memblock
parentde9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed (diff)
memblock tests: include memory_hotplug.h in mmzone.h as kernel dose
In kernel code, memory_hotplug.h is included in mmzone.h instead of in init.h. Let's sync with kernel. This is a preparation for move init.h in common include directory. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> CC: Mike Rapoport <rppt@kernel.org> Link: https://lore.kernel.org/r/20240712035138.24674-1-richard.weiyang@gmail.com Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'tools/testing/memblock')
-rw-r--r--tools/testing/memblock/linux/init.h1
-rw-r--r--tools/testing/memblock/linux/mmzone.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/memblock/linux/init.h b/tools/testing/memblock/linux/init.h
index 828e0ee0bc6c..4aeddce53310 100644
--- a/tools/testing/memblock/linux/init.h
+++ b/tools/testing/memblock/linux/init.h
@@ -4,7 +4,6 @@
#include <linux/compiler.h>
#include <asm/export.h>
-#include <linux/memory_hotplug.h>
#define __section(section) __attribute__((__section__(section)))
diff --git a/tools/testing/memblock/linux/mmzone.h b/tools/testing/memblock/linux/mmzone.h
index 71546e15bdd3..bb682659a12d 100644
--- a/tools/testing/memblock/linux/mmzone.h
+++ b/tools/testing/memblock/linux/mmzone.h
@@ -3,6 +3,7 @@
#define _TOOLS_MMZONE_H
#include <linux/atomic.h>
+#include <linux/memory_hotplug.h>
struct pglist_data *first_online_pgdat(void);
struct pglist_data *next_online_pgdat(struct pglist_data *pgdat);