Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp140255pxf; Wed, 31 Mar 2021 19:25:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZdv6GWRzNZpLRlbOF127S1reUX2RogPgy3Ip1O+n4KRralctesmrmgWGDNMnE0Br04VFU X-Received: by 2002:a17:906:3385:: with SMTP id v5mr6852210eja.539.1617243919632; Wed, 31 Mar 2021 19:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617243919; cv=none; d=google.com; s=arc-20160816; b=td29vfyDi4I8+OGE9TKszlsXnane6EwLg9DbeJ/Wb5omEGXpkW7hzJeHDinxc6NXnE +kZp/vtPdQY6hs6R4mxEMKEvrlxUmYcHPunyQndRGLNcW1Pajd7JHbaoQ7t5V3nU6+ps ajwboEURxf0daYNiS84pb7+SVjyr7lx3v9pabZ/f2MB1n0kdQ+hAfj1NEYReib8780mM lPXAZy5MDv1a1e91ZkDO/0kvJsrcqOqrhyADku5Mh2PY0OiErC7+OngRI3SlnbdH4F5n on07SEzvvi4lsCki50QPuZbxiAbsouaW0o8Ab7qKDNJpcuvjzGK7ZXioX98GkmhNyOmZ Xvxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8w7E9HGIY7OhKOKqMuu3d5SkZc/KUMpWoPrxgMp11lc=; b=d+rh9oM8ekwkIQ4OU85nltegbzUDsUqFkDBMI3PSVH7Fy+GgTI/Uku7uB/OGrxW2To zN+TEt1ab7AZ7YLS68vvA3HGeeIQCcQA0ItB0zC3FsIlneeAocLIUfgJpQAEEJ4gwJcC U/ANkfK80zqWb7sS3Lzsq8E6Hq4WjcJj97HmS4tBSfaVYtDQSuOz/36LEQrQBWcSuhEx 9/A5uP6F0EcujdOt0GdQ9jx2U815bls4pdw2e2nEI570Yc2oPpDD3zXiGk+AAoRUi0Pi /RmsAjRHH2J2eRJ9alviNHoYJUknluCc1u/HhAoiMH1TUqJ4DOLDYxXUYoxk3hBh5BoT YKsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si3019506ejq.139.2021.03.31.19.24.57; Wed, 31 Mar 2021 19:25:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232492AbhDACXq (ORCPT + 99 others); Wed, 31 Mar 2021 22:23:46 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14980 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233139AbhDACXn (ORCPT ); Wed, 31 Mar 2021 22:23:43 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F9n4J4350zyNmV; Thu, 1 Apr 2021 10:21:36 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.498.0; Thu, 1 Apr 2021 10:23:33 +0800 From: Shixin Liu To: Andrew Morton , Anshuman Khandual CC: , , Shixin Liu Subject: [PATCH -next 3/3] mm/debug_vm_pgtable: Remove useless pfn_pmd() Date: Thu, 1 Apr 2021 10:23:15 +0800 Message-ID: <20210401022315.2911967-3-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210401022315.2911967-1-liushixin2@huawei.com> References: <20210401022315.2911967-1-liushixin2@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The call to pfn_pmd() here is redundant. Signed-off-by: Shixin Liu --- mm/debug_vm_pgtable.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/debug_vm_pgtable.c b/mm/debug_vm_pgtable.c index c379bbe42c2a..9f4c4a114229 100644 --- a/mm/debug_vm_pgtable.c +++ b/mm/debug_vm_pgtable.c @@ -196,7 +196,6 @@ static void __init pmd_advanced_tests(struct mm_struct *mm, pgtable_trans_huge_deposit(mm, pmdp, pgtable); - pmd = pfn_pmd(pfn, prot); set_pmd_at(mm, vaddr, pmdp, pmd); pmdp_set_wrprotect(mm, vaddr, pmdp); pmd = READ_ONCE(*pmdp); -- 2.25.1