Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1597195rdd; Thu, 11 Jan 2024 04:10:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQFwNoAHklrNlfoAeYRr6A7Acj3P/7PorKl9CQD2Wa1plMU7V4SOJugJeo20zb7jlxVflB X-Received: by 2002:a05:622a:1756:b0:429:a61a:43a7 with SMTP id l22-20020a05622a175600b00429a61a43a7mr563067qtk.81.1704975036862; Thu, 11 Jan 2024 04:10:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704975036; cv=none; d=google.com; s=arc-20160816; b=WS48Lyrh7x+hhkIx7lFD0xcoqOiBgIHB7qfl+cP4SXD0u2h0c3NricBqhjzTwKvvTi igMXhZlLD6U/CFq/GdlQPGah468LWNhOosVT/AlMfmjWsQLSBNA2M+3hzh9YgJgx92I2 G+uwOPze645VaKxyehb1L4omDBKMIGO10CsUQAKdHlPap+tayfc9jSPnw77mPrBXvu0d lRb0ZMyb/OPb5avRmgbw0pwcfgenFTPdDl6UzRwJi5wX4OHHmvIygG6IGK8BITZZaFGA 1dnbksCCIrGwZoZDXa2Z8xXhsfEz1HXh1L0DxyMUO8X8cNV3qbdPTv+FoIyvLuKCRvHs i4nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=Xlf0VcUpBn2M8+Os3EZjOFG+WbH8fUu7IjO53x2v56w=; fh=VDFt/Ez8CwS+3hxzG1nckgKJ9OcfII+UembkYqexFFw=; b=rKhp91rBki7yv/2tPfuySOUPdS3lff0HgIfLhAfCuGKLN+oVqT4jGn25+bJ2pFquhT JKnbuCMIA2I7kHRTgyRVWdk2qumeL4UcwsazXE2eWrhkR6s21+0YPklP8AXKK9gNiLp/ rHnN2zyXFT8zSldkxiZUYtvXwOOOq1d/HRebGaZ67zQ2H3opFDYiPOtchP4u1QFUIu9z JLtb2FhCNYyuCeVwjlaWW7BDjWSnpV++tGmZdi9NoYLFttELEt3uvws8T7N3YlQuuybJ 7bt5c0Z8XcsdHMfThtQNYBq6QCOqt4LwvoUiSFvxhPJIv+JxVRXowKs7nBw3IP3qooII IEBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-23563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u16-20020a05622a011000b00429bfbb7eecsi833268qtw.60.2024.01.11.04.10.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 04:10:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-23563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5BA7C1C21C5B for ; Thu, 11 Jan 2024 12:10:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E34B316409; Thu, 11 Jan 2024 12:09:42 +0000 (UTC) Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 963FE15EAE for ; Thu, 11 Jan 2024 12:09:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.163]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4T9k2R5t99z1Q7yL; Thu, 11 Jan 2024 20:07:59 +0800 (CST) Received: from dggpemd200001.china.huawei.com (unknown [7.185.36.224]) by mail.maildlp.com (Postfix) with ESMTPS id 117CD1800B7; Thu, 11 Jan 2024 20:09:33 +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; Thu, 11 Jan 2024 20:09:32 +0800 From: Wupeng Ma To: , , , , CC: , , , , Subject: [PATCH v3 0/3] Cleanup for PAT Date: Thu, 11 Jan 2024 20:09:26 +0800 Message-ID: <20240111120929.2694440-1-mawupeng1@huawei.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemd200001.china.huawei.com (7.185.36.224) 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 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 | 34 ++++++++++++++++++++++++++++------ include/linux/mm.h | 2 -- mm/memory.c | 28 ---------------------------- 3 files changed, 28 insertions(+), 36 deletions(-) -- 2.25.1