Message ID | 20240712035138.24674-1-richard.weiyang@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [1/3] memblock tests: include memory_hotplug.h in mmzone.h as kernel dose | expand |
On Fri, 12 Jul 2024 03:51:36 +0000, Wei Yang wrote: > 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. > > Applied to for-next branch of memblock.git tree, thanks! [1/3] memblock tests: include memory_hotplug.h in mmzone.h as kernel dose commit: b6087e14abae4cef271e563d9e15df3a872c3646 [2/3] memblock tests: include export.h in linkage.h as kernel dose commit: 5e45c26c128e59edf97f81434ea0364763da2a11 [3/3] tools/testing: abstract two init.h into common include directory commit: f56de22145544aa1e6c922c8f3b37157c820c8e3 tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock branch: for-next -- Sincerely yours, Mike.
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);
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> --- tools/testing/memblock/linux/init.h | 1 - tools/testing/memblock/linux/mmzone.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-)