From patchwork Thu Jul 13 17:26:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13311645 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 B3668C001B0 for ; Thu, 13 Jul 2023 09:26:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B60E88D0003; Thu, 13 Jul 2023 05:26:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ABA2F8D0005; 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 94EA78D0003; Thu, 13 Jul 2023 05:26:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 6EE3F8D0005 for ; Thu, 13 Jul 2023 05:26:04 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 3BE35140196 for ; Thu, 13 Jul 2023 09:26:04 +0000 (UTC) X-FDA: 81006057048.24.5692AE4 Received: from dggsgout12.his.huawei.com (unknown [45.249.212.56]) by imf16.hostedemail.com (Postfix) with ESMTP id 0A1A0180015 for ; Thu, 13 Jul 2023 09:26:01 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=none; dmarc=none; spf=none (imf16.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.56) 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:references; bh=aJg2QYIBKOEOgnEw5GXDhuhCkq6mF7IBflS6AYT5heA=; b=rd7NaSIjlmFUDahYvG+3X6sdbeoGIUf+Y7hsEuem4g5yFNDgPBF8/4JjWkJCpLqs/Y6/NK 8fAkI8W7w4U6YXywH7MITrfIVvn/sY6PdOQTD7sS2lobN4Yfq7ELGGqb9Z2FSzRCgOYUgN +q+/6KrUBWA1jTEuHG7aQomN66fumqg= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=none; dmarc=none; spf=none (imf16.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.56) smtp.mailfrom=shikemeng@huaweicloud.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689240362; a=rsa-sha256; cv=none; b=NXL/HbBhZFP+M4eg5ETMPuUotV9jY8Fe1aYv+kx7R4hw2xz6hZLEP0SG7nFFU3lnhZyrrh TOxWq51TcxPtGLNRyveKGTky6Slqz4mFv/AVpRqXmbTV0Ark2yrmLAJiIK0HlfkWk/jumX vS8pnrz31gngic8UTaK9KnLf2Hi6KKQ= Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4R1q3N4zBzz4f3jJ2 for ; Thu, 13 Jul 2023 17:25:52 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP2 (Coremail) with SMTP id Syh0CgDHu+khw69kr7cmNw--.13397S2; 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 0/8] Remove unused parameters in page_table_check Date: Fri, 14 Jul 2023 01:26:28 +0800 Message-Id: <20230713172636.1705415-1-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0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UvcSsGvfC2KfnxnUUI43ZEXa7sRE SoGDUUUUU== X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 0A1A0180015 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: tquffu1wi6qdszotrqjoff8jutehf1sj X-HE-Tag: 1689240361-625398 X-HE-Meta: U2FsdGVkX1/YknXkvd9ksqWt1r+mLog/FxF1HLjn2XQNiEXHPDOs+a6iX+HzIGSGMwqA903ih4LhM25DqpXStJOkpUo/AjLkPYzj5wTysx0857ocXnmVWvZ7Lxiv+1zE1H8lKjQp/ZMR8bk6q2rN/BaONc4qsZ8mNo7s5LjKE20DUNMX3qT6kpP/3wj2B1rECn0aatyLAdIgJetEh2TumD2eZDoFi5ujx4B6n9Dcc9ki6Lc6we93/9R3VEuiwLQaI4dhj2FHGNO2uBRbCoGHk9bBXTwS0SyVnti2am5iQlfAefSNNxOFJU4kWJP3UVD080IL8NaCmFLk5HYxiDDzlVlOXLILYEyp9p+qaNMJuvhf5g0ZXgjKl15Q8OVJIA/8aD32U47/x5QyZhoKnuG0kFy4OFnFNvfyL68nMs9rpoRFjQ37aK1ePwDrt3ZZojcXC2GaZc4NdH41sf4d2/+FSGNwC2Y/uJRtZ9lLj+qxJwg63BfYCQZPshyqIFe1IyIorel5VeniimxuWFXXXqpcLGBleMiq2hcyeRFliODeR/lvHEkXHgI/lUG9KAO962qBYSj8tGnkS7ON0WG0onaNqloniyZgUtDNwduAsrs4OVqvOdwZXrapbs4YknVxAkewsB2l4XDqWXaf20gjR8BcJlwGUafCOB8niZ3N7DH4rvB5Qjs7CtsRAYy1wMCx04kwjqWlvES7XxhZvp03ljUTo6T4RmoqygXh7A3i1ApHKPStV5tuAElw+eUnBetzXd9kA2NrYwM8eQmNGQKvBAzBNiSGMbjVIqndv1wJASD8XrFBJSWigJ079s7r+XQoUSGJbY88iYwa8PUeXmY2kO5TpvhtHTXVFIMRqvU6nfiVfg6VnaQbDlKWBzRKLxqw/nvhLbuBECsND/JqePiArAZcwgw6+wy0lyrNAIOI4hmBDGFGbKX2AYVTGq7xzNGsqGdw+r8wKt8nDHkKsR1QpUJ WNX0NZph cMWPdnF1XE8DvWzDZzhPhV6m4U0wrXiAEvCEoUhmc0LvmVW+kNWEQf593ziWOqJix0xRpEFalfK6BeFlLyP7XNml6E1crGqrTr5ObJjYg7efAzHX3vRg1GiKlwXsPc/8tFVVfJfHvv6H8JuExmQckrx5v3gJlJF9/nxqhHK2gXxnTh6+3Ss8XzamsrX4pfdAiwZkMG770fHZ0FkcmhJyk6/q6qKlZfsalXIwym4XTEV1lm46fbdEblDSXx5xZPnVg/7Um 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: Hi all, this series remove unused parameters in functions from page_table_check. The first 2 patches remove unused mm and addr parameters in static common functions page_table_check_clear and page_table_check_set. The last 6 patches remove unused addr parameter in some externed functions which only need addr for cleaned page_table_check_clear or page_table_check_set. There is no intended functional change. Thanks! Kemeng Shi (8): mm/page_table_check: remove unused parameters in page_table_check_clear() mm/page_table_check: remove unused parameters in page_table_check_set() mm/page_table_check: remove unused parameter in [__]page_table_check_pte_clear mm/page_table_check: remove unused parameter in [__]page_table_check_pmd_clear mm/page_table_check: remove unused parameter in [__]page_table_check_pud_clear mm/page_table_check: remove unused parameter in [__]page_table_check_pte_set mm/page_table_check: remove unused parameter in [__]page_table_check_pmd_set mm/page_table_check: remove unused parameter in [__]page_table_check_pud_set arch/arm64/include/asm/pgtable.h | 12 +++--- arch/riscv/include/asm/pgtable.h | 12 +++--- arch/x86/include/asm/pgtable.h | 16 ++++---- include/linux/page_table_check.h | 66 ++++++++++++-------------------- include/linux/pgtable.h | 6 +-- mm/page_table_check.c | 50 +++++++++--------------- 6 files changed, 65 insertions(+), 97 deletions(-)