From patchwork Fri Dec 6 15:53:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junjie Fu X-Patchwork-Id: 13897331 Return-Path: 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 EC276E77179 for ; Fri, 6 Dec 2024 15:56:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 618936B0296; Fri, 6 Dec 2024 10:56:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5C9396B0297; Fri, 6 Dec 2024 10:56:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4903C6B0298; Fri, 6 Dec 2024 10:56:44 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 233366B0296 for ; Fri, 6 Dec 2024 10:56:44 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 82F691C8278 for ; Fri, 6 Dec 2024 15:56:43 +0000 (UTC) X-FDA: 82864986414.06.EFC1297 Received: from out162-62-57-64.mail.qq.com (out162-62-57-64.mail.qq.com [162.62.57.64]) by imf09.hostedemail.com (Postfix) with ESMTP id 12F86140008 for ; Fri, 6 Dec 2024 15:56:28 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=qq.com header.s=s201512 header.b=JH1nPTWf; dmarc=pass (policy=quarantine) header.from=qq.com; spf=pass (imf09.hostedemail.com: domain of fujunjie1@qq.com designates 162.62.57.64 as permitted sender) smtp.mailfrom=fujunjie1@qq.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733500586; a=rsa-sha256; cv=none; b=HBu6z07Uk/lJxNDvbQVbJNOa7sklKuPqqsaew1vQt5UsXPZG6kO0k2wcmopH8xwpabLU8+ 8oE1iNVXzcxgKXXAFhj3HLEKRgoG+b0K+a1SayvT/K9BIRIQRAmFzO1vdCW41ultTl2Y8y vcrN3iS6NoZzP+HBnqHG25jh+KCYlNY= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=qq.com header.s=s201512 header.b=JH1nPTWf; dmarc=pass (policy=quarantine) header.from=qq.com; spf=pass (imf09.hostedemail.com: domain of fujunjie1@qq.com designates 162.62.57.64 as permitted sender) smtp.mailfrom=fujunjie1@qq.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1733500586; 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:references:dkim-signature; bh=uxWdeH2YQlHshFXryLQwdchwT2um8IKLVMXCKavSOqM=; b=29wsTlDdO1TqLgQdQyEj6PRtT0GVc2KFHfFJ8O6Skxn9oPKNCLm7geV7i6dUSXd1ABkmQa kuXUi4KB1cTLZCz3TNQ80I5oOUReqFQy9baRrFSHYWeTT1TgMRJ0Fm1Ju5x3mZJoEpc9n7 VP10ykzc6Oz3b2l3eIx3KX/LDCmy8GI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1733500594; bh=uxWdeH2YQlHshFXryLQwdchwT2um8IKLVMXCKavSOqM=; h=From:To:Cc:Subject:Date; b=JH1nPTWf3X/t54Q6DLgKaDdmknIpLBzwh2RvWUrlFSRbT97koMrCyVgHzJdaAVr5j 742gXCo2NzHfchSP+OVTzwfYxUQh/Y45MAX4VBxioN4vOAed5o5FrZkkOgA0d254KF sua4g/q9P1yA3jJ2mHAZS5YC6Waqkni6cYzaUIHk= Received: from localhost.localdomain ([2409:875e:a030:1001:14::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muBcS6uE3qXhPTJKDYa6F/YpayGC85zdw Q7y4VxtJ9C6Sr068Nolem6UvghEMqJnP+KiXPpex0L0eLLRPGVTn9bxM/pnVOdsr5JdV0EOzI= X-QQ-XMRINFO: M/715EihBoGSf6IYSX1iLFg= From: Junjie Fu To: linux-mm@kvack.org, akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, willy@infradead.org, mhocko@suse.com, gourry@gourry.net, Junjie Fu Subject: [PATCH] mempolicy.h: Remove unnecessary header file inclusions Date: Fri, 6 Dec 2024 23:53:49 +0800 X-OQ-MSGID: <20241206155349.1673191-1-fujunjie1@qq.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 12F86140008 X-Stat-Signature: hsd3bbzofmbtap3bk51h83u9533gbd9c X-Rspam-User: X-HE-Tag: 1733500588-760422 X-HE-Meta: U2FsdGVkX199e6YSskdaIIVWMwqGHbRaqC/y4Ngk0Ok8L5L55E/YApA9OLwT4otuN8a3SfCTWp3a32G1wk1aFbvp2RHAHWBA/o7NytYuoheGNYWlUyXveX5Ks8AIcacB1ST4qKDoj/FNSqI8Y+yCKNLk6XWefvepnCv+fDNpFBeEXr9h6W48hF5qpTH1q0Bx1KNwjUuyglkkS9QyQYDlBgjs4hVm9WKe9S9alPwn4COi3lt0R0k/VqejAulHQ4+x80ltZKBx+uJdFKP0Fp/SPes2NwgXwe09zeN7donF+wmX3+q8wulYF83mBIBUVLqVqmAANZf6xLMjqnUuSLBkjSbFYyt2ywJegz19YGsggDpeppmoIlomHdaqGN1MzhhCLnlu9f7BaCnhKE3LX1bpMeCCu8X6ii/gC8rlLyY/nILtlHlwr8nKu2LfR1xNrUSA0QtkBKh+/R68SzwszlU9Px/ah+s3ddxVfV0T42HG+SHdXcjz4gReUVrGbpavz3p/X3NZNA/f7MJwPz7aT2TiB0JEW2otzhUgx+9N/qh3TrW/v3uqsW4/DUjIDpg0sCXrwKSDCU5+NBxT2nb9oABI+hXw36R5esOxSNLqrwa8um5MCLe78ur2gmPFIGDRM4oI76mTijFFL4UW00XPEIlI3cq4ClleFhBXX+gVnZedOi2pQ8sUH3VIbqxcXZu2qawrihAbE6rMfYiWqQv4Mc6++EyPQmDtjNLqjR4jHHbkJQsKp0nQyq2E/abz3BcUQWNTio8RqBuS/laPkRHNGG1KSEqpfrGRimpTIwzRIGHaN9wEanHwhdZ3kNnEYhJ7vJqiYmQoS4z6chNCxcjQS+mFvigp354TP0hlA1SYSp6Wa/tcDKutSQ451+S+NhyqlcPF1djzvcMVzZfn7l8mnT+NvPGMiPUzEUcPWpQ4CzBRa1S/Eu0BKyxXjEmqq/3QCWZXlVQhrpCO+1LImczGXLm HcaFA6HP F/mzN0qVnqZSMKgmc969Z93h+NOXHKqLhhyw9myi8wQCTNjvlaH1kB/uLS8+oWPBRaHF70gING8fQ0mX7jXyC3QhbIm9f4BKWhVVcL/wcR2TX0xG2m2XNehDqCM+Otk+3rkjAxyCbrkGCr4d/Yiwt1IZPblA06q0txzdDm01Z6y+rb1bX6+OdPTacdy4BZ4FKj92Tk3O0vjpNAS7+KWim1sDASNl7lNR/PvTOrcoY93QMCJlr69kcpPzq7Q== X-Bogosity: Ham, tests=bogofilter, spamicity=0.277747, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Originally, linux/mempolicy.h included linux/pagemap.h because vma_migratable() was implemented inline within the header, requiring mapping_gfp_mask() function to implement vma_migratable(). Now that vma_migratable() is only declared in linux/mempolicy.h and its implementation has been moved to mempolicy.c, the inclusion of linux/pagemap.h in the header is no longer necessary. Additionally, since mempolicy.c includes internal.h, and internal.h already includes linux/pagemap.h, so there is no need to modify mempolicy.c after removing the direct inclusion of linux/pagemap.h from linux/mempolicy.h Signed-off-by: Junjie Fu --- include/linux/mempolicy.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index ce9885e0178a..d36877557b00 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h @@ -12,7 +12,6 @@ #include #include #include -#include #include struct mm_struct;