Skip to content

Commit 19c91bd

Browse files
RichardWeiYangrppt
authored andcommitted
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>
1 parent de9c2c6 commit 19c91bd

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

tools/testing/memblock/linux/init.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
#include <linux/compiler.h>
66
#include <asm/export.h>
7-
#include <linux/memory_hotplug.h>
87

98
#define __section(section) __attribute__((__section__(section)))
109

tools/testing/memblock/linux/mmzone.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#define _TOOLS_MMZONE_H
44

55
#include <linux/atomic.h>
6+
#include <linux/memory_hotplug.h>
67

78
struct pglist_data *first_online_pgdat(void);
89
struct pglist_data *next_online_pgdat(struct pglist_data *pgdat);

0 commit comments

Comments
 (0)