From patchwork Thu Sep 5 15:24:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13792592 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 16635CD5BCB for ; Thu, 5 Sep 2024 15:24:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2A7496B0088; Thu, 5 Sep 2024 11:24:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 256B56B0089; Thu, 5 Sep 2024 11:24:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 11E4A6B008A; Thu, 5 Sep 2024 11:24:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id E8CDA6B0088 for ; Thu, 5 Sep 2024 11:24:47 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 5F8C480727 for ; Thu, 5 Sep 2024 15:24:47 +0000 (UTC) X-FDA: 82531057014.13.01B8579 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf17.hostedemail.com (Postfix) with ESMTP id 49C1140017 for ; Thu, 5 Sep 2024 15:24:43 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf17.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725549813; a=rsa-sha256; cv=none; b=8TsZ+NHXzdeQp2k9oqxDJv8OAaUbzLr6h3ky6db5M1tePrX13OCpII5Bepa5X+c77NrpwI KMBcUFoChlwlWyQ7xoDNsLDMRK+KiTo3vNH32/QSHsYuLkVjh2dpHz1v6lOpisdFtAYtNh LU/s/E7fyvusVqGaJ3lIpH8PEKP+at4= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf17.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1725549813; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=x1wptN+ae4Way2DTWHNkEPiy/yoA7gEnuicZpC9Aa7o=; b=wMV1smUN7eAEf6ZOin1PBJi8KdE79vtPD0WMLkJ3dwxFBiuT08YM6PfTPHuBfONeYy0mhk /b9/kt/c6K7cogXy8u6ss5qPqmABDmDkj+oumvDx48ucDuz/HQwm/TxNqDWl5q0eJw4nKM xJK3JTbzHsBLiKtrSi59F1JMYuOJVBk= Received: from mail.maildlp.com (unknown [172.19.163.252]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4X036N4NFgz1BNQ6; Thu, 5 Sep 2024 23:23:40 +0800 (CST) Received: from dggpemf100008.china.huawei.com (unknown [7.185.36.138]) by mail.maildlp.com (Postfix) with ESMTPS id 92FDC1800CF; Thu, 5 Sep 2024 23:24:39 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemf100008.china.huawei.com (7.185.36.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 5 Sep 2024 23:24:39 +0800 From: Kefeng Wang To: Andrew Morton CC: , Kefeng Wang Subject: [PATCH v2] mm: migrate: remove unused includes Date: Thu, 5 Sep 2024 23:24:32 +0800 Message-ID: <20240905152432.626877-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemf100008.china.huawei.com (7.185.36.138) X-Rspamd-Queue-Id: 49C1140017 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: myqyytcnyzkngo7fzsh6zz5dpw6yp584 X-HE-Tag: 1725549883-123504 X-HE-Meta: U2FsdGVkX19HjLO1fcF4IlpPcf6sfbT9znJh647oiRFb0tU511mhWZb6Z3C/A0lq5cgH/bhFGD7aBhmdekBjafLQIPKuS/11t+hQFYzIUMSTM4uArEVobuNRz40nZPrpQZF0goYnwYNHNvs5KMmeInO1rqx3qYN31c+iNfJZmYe2xO/iz0zeScL98M7+NqMLMKatt6eq44MsAAq9bJBJeGbpQeA8z903qQ3pagHbUOgv98nW3ho9004cO5kWw4y0+/IhDCuq8qEw98l+iqUIbsxdx+3hO/wdAUgah3y9xWy6ZQaKZW9HfWCJdj7oDXePzIJhLSOwd8q7gnyFhiJTNQEDPODXZMxwixMiRpa9rXDvvlSpvYZxBNRsaTRz0ubrPhCw7wH5D+L+NJi1q2uWkxq1QDmSGKv5Ir2OEiStNpjNjQxaNrOLQJ53ro5AYN0/FUbYhWHH/mQ0OKiGgmEYC53l4p7BD4XGpnxJa8pxMYwPwspFOpJuiXdbtbwe4rolJH6FYy15UfAIvAf8Xh87BqBV3mYwDbEIKwHKFpi4iL6tnbykvQZyE/d89Y+1YGT9ub7zDDV5za9ToBVewTZDmoKAAMfgQl99dDeLBX/6yGt2zMVyqf6gWT1xqJFx+IOcpibea0kmU0FEd/tH3zgnLgvaZp/+GmEeULcUpolqoLEpvTFPNYXqt735o6QPabC6e/0yj8H8QsyEpcy07JjTMmxr7Nu9kctWBjL5xfqb/oZm/jiLt8fdwFbUmvcx17abo6dirtNEyGsM4254bppHP3XXduuex9FWNYCKUykbgT10L6QlZEANQtltgw0SqhJAGNYQn5FlctPYs00hsrl4/Q6W6CCKde77ARDhFS0qBE15VSL2tcWe5736c1ejRBKLnm0tIekNiJTT1/mjnwUcDLV7lsmKMjzvIRszwkcEsXOLJOkEMF7ckwAHpXlkIRAQ5WpAQSgr3ky6Eoe/cax 8WUkyGo3 OWYglc+dYpWKg3KF4W0vwRLWE1F0cpB0p+Iy4IpXDuQM3lmL9J1mm3xDaZfQmptpoUQleM/KQcr+Y/lk+vqzcCR00Jz31oFsq2djeQka8zYJtata6F2ldALBmEnmqd/wcnxDPHSCJjoZgI9Q= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: random.h is not needed since commit 6c542ab75714 ("mm/demotion: build demotion targets based on explicit memory tiers"), all functions moved into memory-tiers. nsproxy.h is not needed since commit 228ebcbe634a ("Uninline find_task_by_xxx set of functions"), no nsproxy, we only call find_task_by_vpid() now. hugetlb_cgroup.h is not needed since commit ab5ac90aecf5 ("mm, hugetlb: do not rely on overcommit limit during migration"), move_hugetlb_state() is called and it belongs to hugetlb.h, which is already included. balloon_compaction.h, we have more general movable_operations for non-lru movable page migration, so it could be dropped. memremap.h, userfaultfd_k.h and oom.h are introduced for zone device page migration, but all functions are moved into migrate_device.c, so no needed anymore too. Signed-off-by: Kefeng Wang --- v2: - update changelog to explain why the includes are not needed mm/migrate.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index 35cc9d35064b..7d2bf86cc113 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include @@ -35,19 +34,13 @@ #include #include #include -#include #include #include -#include -#include -#include #include #include #include #include -#include #include -#include #include #include #include