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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15553C61DA4 for ; Tue, 7 Mar 2023 02:26:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229973AbjCGC03 (ORCPT ); Mon, 6 Mar 2023 21:26:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229871AbjCGC01 (ORCPT ); Mon, 6 Mar 2023 21:26:27 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51E2B460B9 for ; Mon, 6 Mar 2023 18:26:12 -0800 (PST) Received: from dggpemm500014.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4PVznK2mtQzrSRL; Tue, 7 Mar 2023 10:25:25 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemm500014.china.huawei.com (7.185.36.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 7 Mar 2023 10:26:10 +0800 From: Wupeng Ma To: , , , CC: , , , Subject: [PATCH v2 -next 0/3] Minor cleanup in PAT Date: Tue, 7 Mar 2023 10:26:03 +0800 Message-ID: <20230307022606.2367399-1-mawupeng1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500014.china.huawei.com (7.185.36.153) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ma Wupeng Patch #1 move follow_phys to memtype.c since only pat use this. Patch #2 cleanup parameter flags in follow_phys. Patch #3 drop the unnecessary WARN_ON_ONCE if follow_phys fails. 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 | 33 +++++++++++++++++++++++++++------ include/linux/mm.h | 2 -- mm/memory.c | 28 ---------------------------- 3 files changed, 27 insertions(+), 36 deletions(-) -- 2.25.1