Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Wei Yang and committed by
Mike Rapoport (Microsoft)
19c91bd8 de9c2c66

+1 -1
-1
tools/testing/memblock/linux/init.h
··· 4 4 5 5 #include <linux/compiler.h> 6 6 #include <asm/export.h> 7 - #include <linux/memory_hotplug.h> 8 7 9 8 #define __section(section) __attribute__((__section__(section))) 10 9
+1
tools/testing/memblock/linux/mmzone.h
··· 3 3 #define _TOOLS_MMZONE_H 4 4 5 5 #include <linux/atomic.h> 6 + #include <linux/memory_hotplug.h> 6 7 7 8 struct pglist_data *first_online_pgdat(void); 8 9 struct pglist_data *next_online_pgdat(struct pglist_data *pgdat);