Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp663754qtx; Thu, 17 Nov 2022 04:41:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf7vtdfWqyXjlHE5/u3QK+D5U6yHr0m0kN6D1tEfCOenS8ebKEs9qAGQLl15Yl6TPFlSB9qZ X-Received: by 2002:a63:da4d:0:b0:46b:3c3d:f618 with SMTP id l13-20020a63da4d000000b0046b3c3df618mr1793344pgj.423.1668688893950; Thu, 17 Nov 2022 04:41:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668688893; cv=none; d=google.com; s=arc-20160816; b=ZqDwNOkH4Q7+qS53vkIdRLirJK2tht7Wi/xwiFoycI1s+sZI3WGufGYfqV3wE6GHP3 FBtHrOtrAV8zQtr3eWeyrG6mxJv5E9s5+Lm9swWDuvGp95sQ4f3B2hUyazN4bAAF+nx1 v3p1hgpnYkg7lr5WMUPIQz/iluahNT2cUNbiGTirFrJNHgfTD/08AXDB39XS6SligieR mZyfHDcmhvt7ajE3yvztA75HZHRsOEDQaX8xX0Cwuxp1w1sOGP4RfKRBB2G409L52oCM UtoNks62ZtwxvxgLiepy9kcFxvWWOmUc46ZCUHjADzCF0hkX2/OSzwiCrVLJGvH8+ODR Syeg== 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 :message-id:date:subject:cc:to:from; bh=35fv7OfIYgeeLr9+rtiW7WczCMlEk1Ccq46V+g5mFvg=; b=cjfFzNGRAzCv2igy6hYtscIpL10APYxuXksmDzuvxx6u1KIwj3rv17KhxBe91FyAwA u2hIC8aaXu7hm5oVCcatiuw/m1xQEVSGRKDj5z2E6iJd4679kDVQh8ifkyIg6/Ep0Hcv nwQGf35UlP19QTXi5eeIWmYTiBHIgkuJdnUM+IqKXnnvLaURay7+qYNXMVXDjuuZMWSv zm2kM3TZUrDEuh80L6i0bxxbMmCHNu4P+G7Lw6UZ1H9q4KOtEVTpWKeqgluP+vkTL8m3 s9+HyvQfRxG+2RPQkL7vjb+Aes5UQsRriauKp7Q7oiJSBJEcDLG7fgt9bFfhF2oG7ULC 0yZQ== 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=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cn15-20020a056a00340f00b00572f208f7basi745875pfb.149.2022.11.17.04.41.22; Thu, 17 Nov 2022 04:41:33 -0800 (PST) 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=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240215AbiKQMdV (ORCPT + 92 others); Thu, 17 Nov 2022 07:33:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239427AbiKQMc7 (ORCPT ); Thu, 17 Nov 2022 07:32:59 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 19BC574AA5 for ; Thu, 17 Nov 2022 04:31:58 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0530B1063; Thu, 17 Nov 2022 04:32:04 -0800 (PST) Received: from a077893.blr.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1ED053F663; Thu, 17 Nov 2022 04:31:54 -0800 (PST) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org Cc: Anshuman Khandual , Catalin Marinas , Will Deacon , Mark Rutland , Andrew Morton , linux-kernel@vger.kernel.org Subject: [PATCH] arm64/mm: Drop unused restore_ttbr1 Date: Thu, 17 Nov 2022 18:01:44 +0530 Message-Id: <20221117123144.403582-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 restore_ttbr1 procedure is not used anywhere, hence just drop it. Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Cc: Andrew Morton Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual --- This applies on v6.1-rc5 arch/arm64/include/asm/assembler.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h index e5957a53be39..f13bc52ab347 100644 --- a/arch/arm64/include/asm/assembler.h +++ b/arch/arm64/include/asm/assembler.h @@ -619,17 +619,6 @@ alternative_endif #endif .endm -/* - * Perform the reverse of offset_ttbr1. - * bic is used as it can cover the immediate value and, in future, won't need - * to be nop'ed out when dealing with 52-bit kernel VAs. - */ - .macro restore_ttbr1, ttbr -#ifdef CONFIG_ARM64_VA_BITS_52 - bic \ttbr, \ttbr, #TTBR1_BADDR_4852_OFFSET -#endif - .endm - /* * Arrange a physical address in a TTBR register, taking care of 52-bit * addresses. -- 2.25.1