From patchwork Tue Feb 20 03:48:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: mawupeng X-Patchwork-Id: 13563359 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 BF2F4C48BC4 for ; Tue, 20 Feb 2024 03:48:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3BCA06B0083; Mon, 19 Feb 2024 22:48:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 36C686B0085; Mon, 19 Feb 2024 22:48:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 25B248D0003; Mon, 19 Feb 2024 22:48:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 16A886B0083 for ; Mon, 19 Feb 2024 22:48:47 -0500 (EST) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id D7DBBA06F1 for ; Tue, 20 Feb 2024 03:48:46 +0000 (UTC) X-FDA: 81810800652.20.85B3E79 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by imf04.hostedemail.com (Postfix) with ESMTP id 00EFC4000A for ; Tue, 20 Feb 2024 03:48:43 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=none; spf=pass (imf04.hostedemail.com: domain of mawupeng1@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=mawupeng1@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708400925; 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=tkz9kXCf4qk0KNOhtQOL6+KYyW747vUshHKY9ctWqGc=; b=W/B9LnBsa/MnJOauwp+XmGAU7yZHoQjh3O8RUiWJX8XyP/KnuZIqMlEW1Frjg44X1YzSby GifB3LaNUr4gL5d50DiNTrI6YjrwnXFria0v7JO/3uehmsJ8MUUOVJUKrVQmFpW1V9zVjk I3C50pfIxoDsd8p3OpRdqyhC0TJWSxQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708400925; a=rsa-sha256; cv=none; b=ct8bWPM7Pc6+kl6vpKvRwlnrNejV/Q/PTzUeeREnm7h/i59xQ9YPGi8p+TSsZC5n9gW582 KnJVmPizwrXuO5CEIs18/laIkkUCt/9onb2OdzqMzeUq9E4edU/orwYS+l9DhuWrrbalaG xnqMpSgI88CFLHjYZoWJ68iEt19T6m8= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=none; spf=pass (imf04.hostedemail.com: domain of mawupeng1@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=mawupeng1@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Tf52G06ZtzNlm1; Tue, 20 Feb 2024 11:47:18 +0800 (CST) Received: from dggpemd200001.china.huawei.com (unknown [7.185.36.224]) by mail.maildlp.com (Postfix) with ESMTPS id A70F0140257; Tue, 20 Feb 2024 11:48:39 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemd200001.china.huawei.com (7.185.36.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.1258.28; Tue, 20 Feb 2024 11:48:38 +0800 From: Wupeng Ma To: , , , , , CC: , , , , , , , Subject: [PATCH v4 0/3] Cleanup for PAT Date: Tue, 20 Feb 2024 11:48:32 +0800 Message-ID: <20240220034835.507022-1-mawupeng1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemd200001.china.huawei.com (7.185.36.224) X-Rspamd-Queue-Id: 00EFC4000A X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: 9ocspeypeusufcksuckpq4p5jt7spbcc X-HE-Tag: 1708400923-458006 X-HE-Meta: U2FsdGVkX1/dScc4BXnGCNML/QzElhW/Tk3vHF5Is2kRFOpaWraZnz+mFIVGeb6r4cDqv+l9fkrvfocr1rPw8c5q3jC8Kv0R5bs1jzd/ZJQBRgspvt77puszpzqQiMhb9jbTzEsutQitUvTlyq2wS3RwfaBXz64RZB4nPzlr3a5QdOFJxKk4gYhPZMsDDbMkcIpieSvZFFjnficKdQwV1j8omVm+KmwZiy6+rszsXoRlVTEzeJx4P6nwrAVjC59Oi8jRFkoZnTxV19nTz/MvIH63Rc5XWV5pKeAahgHQQUF7l6j3mv9caUlqm8lJWTXBYhYFGDzGdvf0tW31Rl0JMWIDzKjbayrIRNElIuyp/mll+aKXzkuwOYqNt8sICU59HIOX3lMAj/aRy8yHmZ621SaaivfQceFasjbhkSOKPRcnkhjyqsIseP1DMBUgYmCU9ShU86vxnytURmSWEx0wcmxfpyXELcDce9L+4oTJGXENcpoPNgryB9exJrgSMyMrqzFX5eyFyyK9I/2Ii+FN10EF9P64i2edDZPiwBGeilx4YXNi4NwqaGC6CWwbyPAECzLAtTJad+epUX4eeEZYinM3V6XvpSV+9mvImvjzxLNABypGJ6FROG2tXrGbNh6q5V/dMLcXH/CRaL3s6yRHw7RK48KkgqDMDGNPsL5Io/5yO0Cm2o9ED4c4AgV9e22F11jX3zJMkJZ8s82h0tQS2Xvn9r4BrP8V3LrqhHvy1XCeX2gB0Vtg4FyZskqVACTkxh2O37/Sye+R0D1MisejjMlmtbEglp1CzGKE30XW5vh9eyYa/9Q4+6lqkzgBtxwU4Ie3gDzooi0syUucHpq0zAYHZlDjLtdas4U//aUUpLMf4HNMXe1+HTiu7eX/k10l7bi4Kz4ODy7a8WPmHtVF2ervJXECx38zOUGHcftugaJQbPPCHbSmFtXSnXWUeDN7+Z37fYZ3gWz0SCuaNHk Vyun/5V4 ng2BLOtg8GzsrXvy/GFMhORZkRxfhSDm127958gCr+jsWx0vE80/KpgYdFxKC0mCmPXgdef5S+BWRlP5iN/MU/4DAg7YzS1yHOwuqbXKYq5Ax4ciDrcDBbLSHzScWXPrzlLdJVX2Ldy2o2WzmaLEb/DDOAw== 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: From: Ma Wupeng Patch #1 move follow_phys to memtype.c since only pat use this. Patch #2 cleanup parameter in follow_phys. Patch #3 drop the unnecessary WARN_ON_ONCE if follow_phys fails. Changelog since v3: - rebase to latest linux - fix compile warnings Changelog since v2: - rebase to latest linux Changelog since v1: - split patch #1 into two patches based on Boris's advise Ma Wupeng (3): x86/mm/pat: Move follow_phys to pat-related file x86/mm/pat: Cleanup unused parameter in follow_phys x86/mm/pat: Remove WARN_ON_ONCE if follow_phys fails arch/x86/mm/pat/memtype.c | 32 ++++++++++++++++++++++++++------ include/linux/mm.h | 2 -- mm/memory.c | 28 ---------------------------- 3 files changed, 26 insertions(+), 36 deletions(-)