Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3481949ybb; Mon, 23 Mar 2020 01:47:26 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv1OLRJ1K5NZx0cZxpxFM8LHp6Ya+pMHG57Nm7yS3bqBnDkduw0cBNilspwDSvtZSZQoREz X-Received: by 2002:a9d:6c58:: with SMTP id g24mr16626193otq.106.1584953246099; Mon, 23 Mar 2020 01:47:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584953246; cv=none; d=google.com; s=arc-20160816; b=A9hJw81X2KfCNCqwnWH5SbTwyg3FOg/ph5aFuKcaFSWogJ9lUtJSbGNLQjsQ85O2L5 stofmUnMX/1HrE/6JvtxfT0ZBRTZ0NCAJD8euru5N2svAOvU3ygRJHL4CMSYq5jQp4PW W+H7sKCKqBn6qS71/wXrWLyL4vscrK3v71unI0imsOy+Gqz4m9CJffqgsjBymuecPwxD VcWrF9VwNAuagMcm1fSoYLpjihqSA20j/uNcA7wIZUEG1TDrM87112CoZIuJypz3wmfm Ue3wF74FVPUaZt9X4ZfwyPPWjIimB1szssVLiuCJgkSfhPDP0ObMmDUTimFh8y/qHn8v sTJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=gnIbsOQMk4escR4RsGvVIbxAEcGYOd4m3NgrN9FqzXE=; b=mp12M8LQI5GWdMEgk52nNU+sjzbfIO7SdiT6p1j6zeqlER6k39UeBKhZvnlZ96Qrqa e2IWoIj4QTr4wLwe59+VD0JNthNf/bXDXB8MEeIPKbtwC8hYBvCkt7aW1L5n2TWPe6pq 4SNY29uuMgJ/+wTXZDwGH6z/dAVWX1wr5Sc79fh0fQZLfyiViwg/cKa+oRAChVni3Axo B4QUmKAov/Mki1E1hV3TwEpEQXwUuNxPj4WupV657FdLvZzA82wuY2M3zR5FgfX2rJhP rUVoJiHM351R9Ak0nm/n2N0lOrxO63vsJr2XhZN69oFvfGjXlIiwhofed+SaL2CwfUBx sCHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si7557939oia.62.2020.03.23.01.47.12; Mon, 23 Mar 2020 01:47:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727600AbgCWIq5 (ORCPT + 99 others); Mon, 23 Mar 2020 04:46:57 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:40603 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727477AbgCWIq5 (ORCPT ); Mon, 23 Mar 2020 04:46:57 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jGIjL-0002Aw-ML; Mon, 23 Mar 2020 09:46:43 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 428271C0470; Mon, 23 Mar 2020 09:46:43 +0100 (CET) Date: Mon, 23 Mar 2020 08:46:42 -0000 From: "tip-bot2 for Anshuman Khandual" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/mm: Drop pud_mknotpresent() Cc: Anshuman Khandual , Borislav Petkov , Baoquan He , Balbir Singh , "Kirill A. Shutemov" , x86 , LKML In-Reply-To: <1584925542-13034-1-git-send-email-anshuman.khandual@arm.com> References: <1584925542-13034-1-git-send-email-anshuman.khandual@arm.com> MIME-Version: 1.0 Message-ID: <158495320286.28353.18108219786340349995.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 31a9122058bc5f042cb04bcdb8cd9e6c77fdae8d Gitweb: https://git.kernel.org/tip/31a9122058bc5f042cb04bcdb8cd9e6c77fdae8d Author: Anshuman Khandual AuthorDate: Mon, 23 Mar 2020 06:35:42 +05:30 Committer: Borislav Petkov CommitterDate: Mon, 23 Mar 2020 09:11:48 +01:00 x86/mm: Drop pud_mknotpresent() There is an inconsistency between PMD and PUD-based THP page table helpers like the following, as pud_present() does not test for _PAGE_PSE. pmd_present(pmd_mknotpresent(pmd)) : True pud_present(pud_mknotpresent(pud)) : False Drop pud_mknotpresent() as there are no current users. If/when needed back later, pud_present() will also have to be fixed to accommodate _PAGE_PSE. Signed-off-by: Anshuman Khandual Signed-off-by: Borislav Petkov Reviewed-by: Baoquan He Acked-by: Balbir Singh Acked-by: Kirill A. Shutemov Link: https://lkml.kernel.org/r/1584925542-13034-1-git-send-email-anshuman.khandual@arm.com --- arch/x86/include/asm/pgtable.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 7e11866..d74dc56 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h @@ -595,12 +595,6 @@ static inline pmd_t pmd_mknotpresent(pmd_t pmd) __pgprot(pmd_flags(pmd) & ~(_PAGE_PRESENT|_PAGE_PROTNONE))); } -static inline pud_t pud_mknotpresent(pud_t pud) -{ - return pfn_pud(pud_pfn(pud), - __pgprot(pud_flags(pud) & ~(_PAGE_PRESENT|_PAGE_PROTNONE))); -} - static inline u64 flip_protnone_guard(u64 oldval, u64 val, u64 mask); static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)