From: Wei Yang <richard.weiyang@gmail.com>
To: rppt@kernel.org, willy@infradead.org, Liam.Howlett@oracle.com,
will@kernel.org, broonie@kernel.org, akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
Wei Yang <richard.weiyang@gmail.com>
Subject: [PATCH 1/3] memblock tests: include memory_hotplug.h in mmzone.h as kernel dose
Date: Fri, 12 Jul 2024 03:51:36 +0000 [thread overview]
Message-ID: <20240712035138.24674-1-richard.weiyang@gmail.com> (raw)
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(-)
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);
--
2.34.1
next reply other threads:[~2024-07-12 3:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-12 3:51 Wei Yang [this message]
2024-07-12 3:51 ` [PATCH 2/3] memblock tests: include export.h in linkage.h as kernel dose Wei Yang
2024-07-12 3:51 ` [PATCH 3/3] tools/testing: abstract two init.h into common include directory Wei Yang
2024-07-29 5:47 ` [PATCH 1/3] memblock tests: include memory_hotplug.h in mmzone.h as kernel dose Mike Rapoport
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240712035138.24674-1-richard.weiyang@gmail.com \
--to=richard.weiyang@gmail.com \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rppt@kernel.org \
--cc=will@kernel.org \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).