From patchwork Thu Jul 13 17:26:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13311644 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 131F6C001DC for ; Thu, 13 Jul 2023 09:26:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 840C18D0001; Thu, 13 Jul 2023 05:26:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7A03A8D0006; Thu, 13 Jul 2023 05:26:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5A4CD8D0001; Thu, 13 Jul 2023 05:26:04 -0400 (EDT) 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 3F71D8D0001 for ; Thu, 13 Jul 2023 05:26:04 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 02518C01AB for ; Thu, 13 Jul 2023 09:26:03 +0000 (UTC) X-FDA: 81006057048.25.5E99E6C Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by imf01.hostedemail.com (Postfix) with ESMTP id B23274000C for ; Thu, 13 Jul 2023 09:26:00 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=none; dmarc=none; spf=none (imf01.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.51) smtp.mailfrom=shikemeng@huaweicloud.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689240362; 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; bh=z9tcfIaRK2iLZLQrbr2HRaNoW38Ipxj6ZwrtLwjt7Kg=; b=bYUDZUSbGJ6GU0368iAqIDjnnny5+sh+KSO+eeBDnUxlYs+MJJvJ81iAOLVmNp3ndpCMPd xyv/xQredXzh2w6HYOj6gwGVMfqIMSzWjMycTxGf3vg7DPw1JiW7IjyRp2YAJkzluEZhZr BUwXFYWJzLn40Y5+tIURBfs1gYgFgsA= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=none; dmarc=none; spf=none (imf01.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.51) smtp.mailfrom=shikemeng@huaweicloud.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689240362; a=rsa-sha256; cv=none; b=TdNPW2iiKKrs0wjY00dEqbs2nr7AIRy4RM6P/R1Rm47/nNIQJye433M9Aw4lcsC2igzUbO 1uZDP4uNEtsHPrJaezAOrTJ91jEmNGCzY2tkq7AmI4IKfcfgZpVGhln2CsFPRfuqmdSiL6 hUzSvpogJliqup5Yd+P50EQhMYeRUt0= Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4R1q3Q4Rr8z4f3lXR for ; Thu, 13 Jul 2023 17:25:54 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP2 (Coremail) with SMTP id Syh0CgDHu+khw69kr7cmNw--.13397S3; Thu, 13 Jul 2023 17:25:55 +0800 (CST) From: Kemeng Shi To: pasha.tatashin@soleen.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: shikemeng@huaweicloud.com Subject: [PATCH 1/8] mm/page_table_check: remove unused parameters in page_table_check_clear() Date: Fri, 14 Jul 2023 01:26:29 +0800 Message-Id: <20230713172636.1705415-2-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20230713172636.1705415-1-shikemeng@huaweicloud.com> References: <20230713172636.1705415-1-shikemeng@huaweicloud.com> MIME-Version: 1.0 X-CM-TRANSID: Syh0CgDHu+khw69kr7cmNw--.13397S3 X-Coremail-Antispam: 1UD129KBjvJXoWxJr1UJr17GF4UWFy8GrW8Crg_yoW8ZFyxp3 W5X34vqr4Yg345Wr1S9Fs8AryUtrs8WayxXr17GayYv3Way34fKFyUJwn8Za95GrykXay3 GFWSqr17CF4xJa7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUBK14x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2jI8I6cxK62vIxIIY0VWUZVW8XwA2048vs2IY02 0E87I2jVAFwI0_Jr4l82xGYIkIc2x26xkF7I0E14v26r1Y6r1xM28lY4IEw2IIxxk0rwA2 F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjx v20xvEc7CjxVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2 z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0V AKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1l Ox8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErc IFxwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v2 6r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2 Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_ Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMI IF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7sRiDGYDUUUUU= = X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: B23274000C X-Stat-Signature: 3d51hafb6cdso979ar6b5wgjsni8nfd5 X-Rspam-User: X-HE-Tag: 1689240360-826551 X-HE-Meta: U2FsdGVkX18hN+AKeWG0SHNHX4cFCLychvlmSJTa3B9ceGfqbwxoDyZQ1mhxNN7T9TPoAd6CjKSi21fxZrqFNEAjOejiTwYyKqTsegV3su/flLW5kHe2bNrZVHYD7v6+cKOfk3BuRBRha9AGiALnVKw6uYzS0HoaRVviTSyBQ0eOSH5Mn7Nb+7AJIrCKcGB6j9xlJTrUiU48MZxoMx42iE+YR5w5krJ7xUNo1myGmBzbipzC4QtC/Nxjg6Vb+eAXKFjcAG+OEEjimhMJE12UbmFZacILdBI82FI1IJu0aiO3GUt0qkMCHE0aTnd4TM2QGprPyQx2L58YOxDAozTjvVitseVnTUYKMl6L6y0dSjP67KicwU0iym4WVMfwH5Z99HwCnxfl7Mq1mndt6uRy7j3/ocnjuVHs3XIDt+yo/+05PmvZ3rT3zF+abs474XNV2vGKdiFdexhk1oqVXE4Q44wNpNsF7pfz+z8WfqGNS5Mc9miEywhcVFTzt+2DOKSg4cBqwFbyXEyJiQ9C7v7tLcMilhIFVlFN+DkS99iZ5+hjRwVSUGtxBuTKh471+nxxTgKH6JnVp3e6e1qAxB9LI81As11pp8L0G6AnjDGq6VJq0x8sNlENtumDQ3io7F8tWKp86MjMy4jDYtGdTxAGaknhPSX8sR6Hbjs/apa9HO9WzN84bSbfSxatJjujIbG2sfHPnoosRa2K+F8lr9c1BLfwAZu2n92VxgkJ0biMTPKLaQ34N5cl7cT9GM3x4kiT5UYruabVojTQEohphC5coxRoTHksfyEvtI4lqU/zDi+yrmHkEWbKT5eIAy5DnmiirSK9sPtHAiWBPDCKVFCZ24zWPKYhyaZKX6/sie9VXga8KE9KyoIW2pj2C/soPrrCs4qijw3CV5JTITex0XQv7SgzBgoxp1+G+AZBCD7ru+oujjXgi8GisVwTDrOu4wPpClCpj6uwEhZYE3Vm9W3 ScbX0TNX 1r9eITdyXGr0iqgVZOdE26Od3RiSBD8Jr587KwDVXjYq3aWtbE1bkXSeSi2DwR18uRFGQASqCf65db7h1mvPuxYIJ5i3rjcWkWbOLognzs87+8NH95nuAneIYEbRHhUpPojvcO1Dn0Ovwq/GRzMWuqc9VYOc3e+BbsSotDC05hgsNAmt/ham7auPPE2ZXlxm+4giTyyCysi79/vVnZbRLHODy5tPavvdJxyOgSIpI5eOalza7X0h8rtuU2s/Z5MW0s8+Ce2e2jPg79eoLfrNeDqE/8b9oTLPSvUOUJ0JXJGwN8S0QmyaRALEGvQ== 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: Remove unused mm and addr in function page_table_check_clear(). Signed-off-by: Kemeng Shi --- mm/page_table_check.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/mm/page_table_check.c b/mm/page_table_check.c index 93ec7690a0d8..9477b93d8463 100644 --- a/mm/page_table_check.c +++ b/mm/page_table_check.c @@ -58,8 +58,7 @@ static struct page_table_check *get_page_table_check(struct page_ext *page_ext) * An entry is removed from the page table, decrement the counters for that page * verify that it is of correct type and counters do not become negative. */ -static void page_table_check_clear(struct mm_struct *mm, unsigned long addr, - unsigned long pfn, unsigned long pgcnt) +static void page_table_check_clear(unsigned long pfn, unsigned long pgcnt) { struct page_ext *page_ext; struct page *page; @@ -158,8 +157,7 @@ void __page_table_check_pte_clear(struct mm_struct *mm, unsigned long addr, return; if (pte_user_accessible_page(pte)) { - page_table_check_clear(mm, addr, pte_pfn(pte), - PAGE_SIZE >> PAGE_SHIFT); + page_table_check_clear(pte_pfn(pte), PAGE_SIZE >> PAGE_SHIFT); } } EXPORT_SYMBOL(__page_table_check_pte_clear); @@ -171,8 +169,7 @@ void __page_table_check_pmd_clear(struct mm_struct *mm, unsigned long addr, return; if (pmd_user_accessible_page(pmd)) { - page_table_check_clear(mm, addr, pmd_pfn(pmd), - PMD_SIZE >> PAGE_SHIFT); + page_table_check_clear(pmd_pfn(pmd), PMD_SIZE >> PAGE_SHIFT); } } EXPORT_SYMBOL(__page_table_check_pmd_clear); @@ -184,8 +181,7 @@ void __page_table_check_pud_clear(struct mm_struct *mm, unsigned long addr, return; if (pud_user_accessible_page(pud)) { - page_table_check_clear(mm, addr, pud_pfn(pud), - PUD_SIZE >> PAGE_SHIFT); + page_table_check_clear(pud_pfn(pud), PUD_SIZE >> PAGE_SHIFT); } } EXPORT_SYMBOL(__page_table_check_pud_clear);