From: Junjie Fu <fujunjie1@qq.com>
To: akpm@linux-foundation.org
Cc: fujunjie1@qq.com, gourry@gourry.net,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
mhocko@suse.com, willy@infradead.org
Subject: [PATCH] mm/mempolicy.c: include pagemap.h directly
Date: Sat, 7 Dec 2024 16:14:30 +0800 [thread overview]
Message-ID: <tencent_38F9530F8D11EC9B038B77AE97E73145DA07@qq.com> (raw)
In-Reply-To: <20241206220037.5c0cd212d3269dd8a6f36e4d@linux-foundation.org>
Thanks for the review and suggestion. I agree that depending on indirect
includes isn't ideal. This patch followed your suggestion and now directly
includes pagemap.h in mempolicy.c
Signed-off-by: Junjie Fu <fujunjie1@qq.com>
---
mm/mempolicy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index 88eef9776bb0..c3f25a7951e0 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -113,7 +113,7 @@
#include <asm/tlbflush.h>
#include <asm/tlb.h>
#include <linux/uaccess.h>
-
+#include <linux/pagemap.h>
#include "internal.h"
/* Internal flags */
--
2.34.1
next prev parent reply other threads:[~2024-12-07 8:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-06 15:53 [PATCH] mempolicy.h: Remove unnecessary header file inclusions Junjie Fu
2024-12-07 6:00 ` Andrew Morton
2024-12-07 8:14 ` Junjie Fu [this message]
2024-12-07 17:14 ` [PATCH] mm/mempolicy.c: include pagemap.h directly Matthew Wilcox
2024-12-07 18:22 ` [PATCH] mm/mempolicy.c: include pagemap.h directly in right place Junjie Fu
2024-12-07 19:53 ` [PATCH] mempolicy.h: Remove unnecessary header file inclusions SeongJae Park
2024-12-07 21:55 ` Matthew Wilcox
2024-12-08 13:50 ` Junjie Fu
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=tencent_38F9530F8D11EC9B038B77AE97E73145DA07@qq.com \
--to=fujunjie1@qq.com \
--cc=akpm@linux-foundation.org \
--cc=gourry@gourry.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
--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
all inboxes | Powered by JetHome®