]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
memblock tests: include memory_hotplug.h in mmzone.h as kernel dose
authorWei Yang <richard.weiyang@gmail.com>
Fri, 12 Jul 2024 03:51:36 +0000 (03:51 +0000)
committerMike Rapoport (Microsoft) <rppt@kernel.org>
Tue, 6 Aug 2024 05:17:49 +0000 (08:17 +0300)
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>
tools/testing/memblock/linux/init.h
tools/testing/memblock/linux/mmzone.h

index 828e0ee0bc6c465975956f08532fa25d4ad02a5b..4aeddce53310aab82ad7f53cc473cc46b31cfa8a 100644 (file)
@@ -4,7 +4,6 @@
 
 #include <linux/compiler.h>
 #include <asm/export.h>
-#include <linux/memory_hotplug.h>
 
 #define __section(section)              __attribute__((__section__(section)))
 
index 71546e15bdd387a2bcc3381c3692f25975a9f16a..bb682659a12dfb1c7ae556550df477b406d90e86 100644 (file)
@@ -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);