From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4DEBC433E0 for ; Wed, 10 Mar 2021 17:16:54 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6E4AE64FC8 for ; Wed, 10 Mar 2021 17:16:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6E4AE64FC8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=zegOZsL8D3yDfLGMbU2oIztXfI4s72RWtbe3NkjAA10=; b=j/Vknd6EkbqEWvd/tbyUrQkxa b0IMQPx8DgPxuwjrFCBigLkUSieohawDtlJf+y0SBR52mlvmaH8hi6kWUlGK5SzpsuBfAOksouobK Nyj2nj16c8RsOxVMoyWTpdlNhAlD+T1pq7+r9ysR5wa3f58/w81Jg7qAAbxyLe0lpJeSB7LSxf8Ds gA7WJwQd+nQ4c6FQ4xJNZtmpDSw50a8q13yvr4aQ7z+SV29SduJ9FAs2ljZwpwYZ6an0eCt7yIwgY mbrkzNg3PIxSr7QcylEnIelhdnYNhQ7fpzbA+8y8EJsf4U8v942NFDshi0KDa0uhs3lN39zSDKzEX SO1LLoGKA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lK2Qu-007J7T-6I; Wed, 10 Mar 2021 17:15:40 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lK2Qi-007J5C-JY for linux-arm-kernel@lists.infradead.org; Wed, 10 Mar 2021 17:15:30 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3D96C64FC8; Wed, 10 Mar 2021 17:15:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615396527; bh=g07KQt9bvi34tPr/PwnmVnuXjZg7BIj4fge6y0DkfiU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ka8E0vRV+j4UPxL7xwgYFfmDhOvZqb8qsylU2/m6BP0j7xZSJzmKcR6zM5tn13pGD JO/1J48o9m6Sm4rqf1qIThN3LU7vZ3nttihpraoVztWgU2VJJ/y0qh/+1QuG59BpZd 5I8cZWSxYFjoApzAC27gaPo8fhXAi0bUy1HJfpsFYDnzbH68jHu6kLSQ1AYPZfp2uB ozMpkNf41A5bsWvwx3GOZvGpYQE4ni2Tn9/DY4YdWifA7Zs0AYHyA8yDCApga+itaQ LeJ6TS2HgWUpa7GfXmRZeMi1HSgFX7rAZIASL4H6OTqgQQHh1X36CNgCZl+5XYv3mL CE5aDKb3DK7vA== From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Cc: Ard Biesheuvel , Mark Salter , Will Deacon , James Morse , Catalin Marinas , Mark Rutland , Steve Capper , Anshuman Khandual Subject: [PATCH 2/5] arm64: mm: remove unused __cpu_uses_extended_idmap[_level()] Date: Wed, 10 Mar 2021 18:15:12 +0100 Message-Id: <20210310171515.416643-3-ardb@kernel.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210310171515.416643-1-ardb@kernel.org> References: <20210310171515.416643-1-ardb@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210310_171528_853590_A30961CC X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org These routines lost all existing users during the latest merge window so we can remove them. This avoids the need to fix them in the context of fixing a regression related to the ID map on 52-bit VA kernels. Signed-off-by: Ard Biesheuvel --- arch/arm64/include/asm/mmu_context.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/arch/arm64/include/asm/mmu_context.h b/arch/arm64/include/asm/mmu_context.h index 0f467d550f27..bd02e99b1a4c 100644 --- a/arch/arm64/include/asm/mmu_context.h +++ b/arch/arm64/include/asm/mmu_context.h @@ -63,20 +63,6 @@ static inline void cpu_switch_mm(pgd_t *pgd, struct mm_struct *mm) extern u64 idmap_t0sz; extern u64 idmap_ptrs_per_pgd; -static inline bool __cpu_uses_extended_idmap(void) -{ - return unlikely(idmap_t0sz != TCR_T0SZ(vabits_actual)); -} - -/* - * True if the extended ID map requires an extra level of translation table - * to be configured. - */ -static inline bool __cpu_uses_extended_idmap_level(void) -{ - return ARM64_HW_PGTABLE_LEVELS(64 - idmap_t0sz) > CONFIG_PGTABLE_LEVELS; -} - /* * Ensure TCR.T0SZ is set to the provided value. */ -- 2.30.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel