Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3551252ioa; Tue, 26 Apr 2022 05:58:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmEx3TrJmJd8QPySa7nXclRKdlLBzCl5Kf132J/rOh4HD0Hi7+JeN6r3/BspOY8GzKJw+4 X-Received: by 2002:a17:907:97c9:b0:6db:ab53:1fdf with SMTP id js9-20020a17090797c900b006dbab531fdfmr21235520ejc.406.1650977935517; Tue, 26 Apr 2022 05:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650977935; cv=none; d=google.com; s=arc-20160816; b=UDWxFIbCo0DeQoP9Sqi3MSHV7YExnlEjL772yfymG245w7Uc4BqpMFfoQD2W64xs/J nntJKBCNc9ybjiovSR89UpL19MV738yuKL5PfpYpSOGoW+stAsWCVtonbsa2LyTpw+4t L88oSsUE4XZ0w4b1OJq44O8Hf2IkDK8R8rJuyMiuuQ/uhs5+WGp9ofVrS5yPNLhsXng+ PrJTYBLynrz0Y3Rsvchty7o3NlpGM0Igbj9e0yu+UcgkRrcNoqhQUAi0tIx6frIDpdKV CtWPc6u2FeWoByPJMtl9R+pNHP4yul7TVuEZaltQsQPf/dcPi+B16cjvUw43VrvMLoGS mwxA== 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=RV1LWfURc+hzhCPXRdny8mRA+Mp6Snb+GJmJCEm8Ejw=; b=XU0w2i/6G1Os8QPjUlc3gDx2mzbenAanvnBg1w4LGKiRYUjMvDareHfU3cE6em8chq VHEiwx9O9EPvcWPOVhAs5MkkSt11Ohbxwko6t9JR3lHIM57t8YSLxnnuKuQJ3tDT/cSl melVaU9WBp5iZbHvDjlKVUp06ICxpusfqtSATkdbnbtClWgV95K60knHl+fePicF2DOo 6m/hw6gZMxeGeuS3MzEg3AcgXbe+1oXPXwmak4KmI+Qhdt8C2CM0ARKEM354UpSQB0TE Sb1Gz0LwaRQu9gc/3XsmdHn57VgHxu0370HqEZKrl476XU4jp/6muIJRkeV00LVe2Ylp YyMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bx5-20020a170906a1c500b006e82ffe65b6si15667636ejb.935.2022.04.26.05.58.31; Tue, 26 Apr 2022 05:58:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344478AbiDZHzj (ORCPT + 99 others); Tue, 26 Apr 2022 03:55:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344022AbiDZHzM (ORCPT ); Tue, 26 Apr 2022 03:55:12 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70F5E6479 for ; Tue, 26 Apr 2022 00:52:06 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4KnYxN1LKWzhYrQ; Tue, 26 Apr 2022 15:51:52 +0800 (CST) Received: from kwepemm600017.china.huawei.com (7.193.23.234) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 26 Apr 2022 15:52:04 +0800 Received: from localhost.localdomain (10.175.112.125) by kwepemm600017.china.huawei.com (7.193.23.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 26 Apr 2022 15:52:03 +0800 From: Tong Tiangen To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , , "H. Peter Anvin" , Pasha Tatashin , Anshuman Khandual , Andrew Morton , Catalin Marinas , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou CC: , , , , Tong Tiangen , Kefeng Wang , Guohanjun Subject: [PATCH -next v6 4/6] mm: remove __HAVE_ARCH_PTEP_CLEAR in pgtable.h Date: Tue, 26 Apr 2022 08:10:34 +0000 Message-ID: <20220426081036.1374452-5-tongtiangen@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220426081036.1374452-1-tongtiangen@huawei.com> References: <20220426081036.1374452-1-tongtiangen@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600017.china.huawei.com (7.193.23.234) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, there is no architecture definition __HAVE_ARCH_PTEP_CLEAR, Generic ptep_clear() is the only definition for all architecture, So drop the "#ifndef __HAVE_ARCH_PTEP_CLEAR". Suggested-by: Anshuman Khandual Signed-off-by: Tong Tiangen --- include/linux/pgtable.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index 3c825162c8da..b7a785e787b5 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -272,13 +272,11 @@ static inline pte_t ptep_get_and_clear(struct mm_struct *mm, } #endif -#ifndef __HAVE_ARCH_PTEP_CLEAR static inline void ptep_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) { ptep_get_and_clear(mm, addr, ptep); } -#endif #ifndef __HAVE_ARCH_PTEP_GET static inline pte_t ptep_get(pte_t *ptep) -- 2.25.1