Message ID | tencent_38F9530F8D11EC9B038B77AE97E73145DA07@qq.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75A12E7717B for <linux-mm@archiver.kernel.org>; Sat, 7 Dec 2024 08:17:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BAA3F8D0019; Sat, 7 Dec 2024 03:17:34 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B5AF78D0015; Sat, 7 Dec 2024 03:17:34 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A21C88D0019; Sat, 7 Dec 2024 03:17:34 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 84DC78D0015 for <linux-mm@kvack.org>; Sat, 7 Dec 2024 03:17:34 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id EE0311C83AF for <linux-mm@kvack.org>; Sat, 7 Dec 2024 08:17:33 +0000 (UTC) X-FDA: 82867458282.26.69B2789 Received: from out203-205-221-236.mail.qq.com (out203-205-221-236.mail.qq.com [203.205.221.236]) by imf13.hostedemail.com (Postfix) with ESMTP id 9994420008 for <linux-mm@kvack.org>; Sat, 7 Dec 2024 08:17:12 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=qq.com header.s=s201512 header.b=d1VdWkbZ; spf=pass (imf13.hostedemail.com: domain of fujunjie1@qq.com designates 203.205.221.236 as permitted sender) smtp.mailfrom=fujunjie1@qq.com; dmarc=pass (policy=quarantine) header.from=qq.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1733559443; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=4FT9aoBqSWgDh8FZQc8D2XKhp892BywhCV8mEuevhtY=; b=Q2ss+70ryp8PSMd/AFsWX67YJVWEVlwpqKp/+eVVTYzvDo1xDmALPweDz7DmB5AVWS4FD8 Dgc7ixy9zZWqrjRR1MVscjICjfVReEDiawD+JLCbt5WY8q0qbZ2b/3SJgeQPcvuu/BrBDT EpmTc4HGSyLBvYVPvkpQc3WbnJ+ReTQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733559443; a=rsa-sha256; cv=none; b=yc6i6Jb4emb8CYnvF+BueXRtcboWuStHH/9O2p+O3/gcwI/wJJnPsxWlYfGBZAADjUm9Zr Keg+QclD3zGA/XfLd4YDZPoW0VALchTdoTNjdXr8ukpOjfSK15haV8K5Az9n/1MDXsC2Lz U8ncBHUc6Gqzs5DVY7lRSsSmbuc7Yfc= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=qq.com header.s=s201512 header.b=d1VdWkbZ; spf=pass (imf13.hostedemail.com: domain of fujunjie1@qq.com designates 203.205.221.236 as permitted sender) smtp.mailfrom=fujunjie1@qq.com; dmarc=pass (policy=quarantine) header.from=qq.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1733559446; bh=4FT9aoBqSWgDh8FZQc8D2XKhp892BywhCV8mEuevhtY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=d1VdWkbZTX5UXzqSsP25BxXBGUveDdTJAJn9u2j/kH3aUDY1osvGmn9AoGbEWVXCc ZgaOjW84/Ac5OfzxvACpjvTedW03C8ubNrfRcRNSvXLTtCpaKusgt4Ot4OaNoDebC4 gjW6zXDCDhaxmQKnPgjNPu7PekbDfl4baPLnIkrk= Received: from localhost.localdomain ([2409:875e:a030:1001:14::e66]) by newxmesmtplogicsvrszb20-0.qq.com (NewEsmtp) with SMTP id 449A50C2; Sat, 07 Dec 2024 16:17:09 +0800 X-QQ-mid: xmsmtpt1733559429tv5j8mwvn Message-ID: <tencent_38F9530F8D11EC9B038B77AE97E73145DA07@qq.com> X-QQ-XMAILINFO: MPRquJFDOUjCaHY5a7u0HPFnAdzYWm5MsO5pcMgTq56Tu4wMmK8yhVm8nREGag R9jeN6K2CcOKeGCZYFAUECFdEAI+BvCAkBvvPPjoUj/WXEZNXNlNtT/+KSZGEfvmQED4n2QOl+Ul TuWDiXfKEVPCfuWIhMj2Xq6bZhZtdfHPuqt6FuPC9E8R6wcV65zmYRvikZW+G/Vhnp9KMGCw7XtG Vg3lwx4DPBJlNNtzkwmNqaK+00SCA1guL/rjp+LVdLy4dhtEzWc/idKikRt9NTcfIHVrLbnbzGYA 1BqzzNFrrvu9iMDiK5gSFbQgz9rVLQoIB8awbvcCNDgigiBDEcFpQguqqaCMpkfuXzllN1CDixBj 8j4ZKog7BTnQdeK/Lf93AI6pKJTQXxvBt5orZatvrPI6/7pqdA1P/7Jjona2JQg31GqJLHpnMyL7 lybcR1eAi2z43IFVUsOU319dDgqf8svQttIzibB3O0PBnRmkUjOqnidz/4B03BaYPWnGGAWS2V+d /LYE3JT8gROCzn23Lg1ZAI8XZKNcs08FSi/m3dKx2X+p2IOYl9IrXAPRz/xWa8ernQb/Auybd0KN 1PopmlcvdO5O4nrG4HrJpNevHXRd4h+qTxtq4Pg8h9fwp7F2AwTB5a70l/mr2kBSGmUD/7R0NW52 wVGe2Rbimgy/s6n2c0jXuE44AqWs1LNDL6vDY+QKXRIMOCm+xCyaHOflf4fkHqoaCsyvXgvBpuok vGZvowZkacXVCjhfHwmVyXNadxMKUhBZNzKWpnlFLkp58oOkL5ymsGj4l1QKd/ZHqNTn6ZQiSBHt prxc+8FVMLDiceNfwwUsK/b5yqfLwufF1DdbbwxQUw8juHmCe+W8rHDHx5IKw3i3J6KvqaUd53st l4IRAp0X14FaEb3tXUO/ByMasy2laoHSPTH46lep6zs9JuyUw7ZuTLzIAEfu7bzNYn7T794w5my1 6IPFDFubuWz5Z69nLtYg== X-QQ-XMRINFO: NyFYKkN4Ny6FSmKK/uo/jdU= 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 X-OQ-MSGID: <20241207081430.1972561-1-fujunjie1@qq.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241206220037.5c0cd212d3269dd8a6f36e4d@linux-foundation.org> References: <20241206220037.5c0cd212d3269dd8a6f36e4d@linux-foundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 9994420008 X-Stat-Signature: yx71wp793zfxn61ssunr7ancjreuidmp X-Rspam-User: X-HE-Tag: 1733559432-629267 X-HE-Meta: U2FsdGVkX1+Fy4WOkDcvaXItbRzZ2qJW8gcPY33+RDHLudjnjcxATf0wIYgwQ7qOFlF6hwUmtDPlRUY3aZYIO6pWNnjyp3uTfj0jB7QVYMw9NjDWq6PD5jiSNnjMrdXUmqJOM4tM8py7ZAn/U5lU/cV48I/OZlMWUuFxQ8xQVO/5byUyY8gZS2820duwt3wETYZU0oYtIydxc83TmS7oiHv3inv6DqE8BARTHTLUERABwXP4uh9uxjanlACDv3iTiaHLsXirVjlprB142u67IA+MXwa+FMnjYUlqz3cW9TO6+2E0e08lFmI72TmA+74lwQz2UYzC+7oLgENc/Fba1Ok6Wmt2wHxbpDCjsItSjpM34TLHeuaC1U4Z7qd1tw41VWdY/cEt1bB8M6JYQzIEZZQu4Cp223GqimwmPCAFFFRAUJNRqYgJQayBgMNAqR3dCv0KRVJDh8a8s0dM0nacigxCl/RX18CBqHGLUElDaqvOlN4HIKeaTg+aG6nUit20Vck+2K1+1oAqSmhaGy8e15qfGMv+iOF5oQApTm7hOSSdA8GnabiB/fd+INvjWlbKmLuray30n0Tg8rotym5O7FwMH4JVmeIx3B54AK9VBAMCyZxA4dvmmxfc2dQHeMvLK0n/QWMNB/qF44p6rhmKGK2VsxkN070FHMYuOysuNt8R8oPfASn5jmuiH+6CfX6dkQZYZu7wsKqoStZI4kD05ruYUJKcN9TOlhSpEk3OjIlQch7sMXpUIhPevJiyu/dFN/flui8yRYPR2znlFT1o++IyuC+/XvH6L2p4ARfJlgMb0Jvw6gfcEUl3Mx/aTx91rSOsTNWApjgxFwx2FnOMalzcKDB312F81ckGsT8NAIeWAcjWuTEQAaWaMsrOPKynpHRhU4a/s/IO/sZOJv19fuTbIz5pRkiTycZrWMcN7YhRhgavNU3afYQ2Jus+/6Jt2PzK1VZDQy6ICGr+B5e AISSkfq1 t/a4iYxdahwL/XjQm5TwXHkXlIWaugUnH4+IHDu8UzdbFVH0XWbOM0PfLywjiM3Yjv9Fp17j5LP+eNmrOtu8XvpLuqqDQWiVOgC2Vv4Fy8rIdI3REP6cbxLpv/8iQsJ/wyMaA/9dUjw/0gQAYQHmTUJHR9HoCSXLX8iJTuBbWqG6a52MvJFxFRUFT11hCWbZmbOWyOkhIuqgXEkDpszlZv8d65FEe+tEu8YbOMfK2J8yHbmEW2NjkbAoLOw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.316795, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm/mempolicy.c: include pagemap.h directly
|
expand
|
On Sat, Dec 07, 2024 at 04:14:30PM +0800, Junjie Fu wrote: > @@ -113,7 +113,7 @@ > #include <asm/tlbflush.h> > #include <asm/tlb.h> > #include <linux/uaccess.h> > - > +#include <linux/pagemap.h> > #include "internal.h" This is in the wrong place. The linux/ includes go before the asm/ includes. I like to stick to alphabetical order within that divide, but other people have other preferences.
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 */
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(-)