Commit 19c91bd8 authored by Wei Yang's avatar Wei Yang Committed by Mike Rapoport (Microsoft)
Browse files

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: default avatarWei 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: default avatarMike Rapoport (Microsoft) <rppt@kernel.org>
parent de9c2c66
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@

#include <linux/compiler.h>
#include <asm/export.h>
#include <linux/memory_hotplug.h>

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

+1 −0
Original line number Diff line number Diff line
@@ -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);