Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1216623pxb; Fri, 13 Nov 2020 07:10:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzosDa63Oy0Uizkpu/zE0YZNUJq7iiosLNgLcCvJgmAks09HhwUCABoYypB1megll4U6jFW X-Received: by 2002:a05:6402:142c:: with SMTP id c12mr3028582edx.41.1605280212804; Fri, 13 Nov 2020 07:10:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605280212; cv=none; d=google.com; s=arc-20160816; b=0QdzMvqz4V+lATyoUOAChMhSLsctJyVt84JC3jWd+fXZgii5dKDQtRvAzaCwUXTLUl AKBAnrqL7A2/cWkNBc5Ed6mhvU5Rot/aziLXqISb+xHR2IRDFt273Y91ozRFBSIl+LqV isRYQsXGw5F5iEbW/WZbK0Q1nTbzazWo4JJw0n0Qtd/6HkN+2CA6pyt57UcRoqJOFE9F i5YBU/D5F0DMVZ9AibxqOvHtid3jt97ngfBzcGrlLAvCTSuUOUg/wWryOzOOz8tu2gW/ zH9tJGDPZ+nNnc4JRdOLjirePsI08m894tmz96kgxUpM0KJ3oslcngVaqD0EFZN6EDaV 8C4w== 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:dkim-signature; bh=C9rPuSXlrjcqDgyEAQl7K983fiCHNWFVeaKbQl3STrQ=; b=VKk0pm9A5vLFzqeeeotbV8wKM7glN3Wo7GEQhjp6/HcZ9OwF9R4QxjrIa7aOEP3AdX WlutMHMSYxdVp1gBEjyD8Hfs5kf5XiW1uoLtZFCCq7aIT9s2mwCO9vr9Pzgy+30AIrwC CQVYELGgAZTlZ7zxiIT0dqmmokEEo6dq0+f4cJ7cqhs5QBUlE5X0qghBurN9OclH7DoS 6tTGHvcjVM+dO9h4uCf6x2qzQlQTaZLwqZmIw0mfn8xRUeRn4718un58eLC0fSkfpDo1 6g5l+2ddkXMo44R/L3cxVwSrm9qjcuvOIiyjKiQYqHrv3Os0o71okDaqU/lIL4PqHZhA +N/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GDyoVQ4I; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si6231401edt.265.2020.11.13.07.09.48; Fri, 13 Nov 2020 07:10:12 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GDyoVQ4I; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726903AbgKMPIV (ORCPT + 99 others); Fri, 13 Nov 2020 10:08:21 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:35637 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726815AbgKMPIU (ORCPT ); Fri, 13 Nov 2020 10:08:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605280099; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=C9rPuSXlrjcqDgyEAQl7K983fiCHNWFVeaKbQl3STrQ=; b=GDyoVQ4ISM6qsvfx2tFdksgot+zQdGTdLwVlGwdF7h787a2LHGxl1BzVIyI22/eOcyt+C/ vN2irlfcWZRBAPyPBkXtqcXWQrZfswk+9BLGlx3K+4rn+rO5d01Shp3lOfD12YS2aKInVL 8BmigoKLSJfYsAPQ24lxJgFwCd4Qu3o= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-364-56L1U8yvMGSeLKDSQSgE_g-1; Fri, 13 Nov 2020 10:08:15 -0500 X-MC-Unique: 56L1U8yvMGSeLKDSQSgE_g-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EFDD21891E8E; Fri, 13 Nov 2020 15:08:13 +0000 (UTC) Received: from vitty.brq.redhat.com (unknown [10.40.194.205]) by smtp.corp.redhat.com (Postfix) with ESMTP id 000F162A16; Fri, 13 Nov 2020 15:08:11 +0000 (UTC) From: Vitaly Kuznetsov To: x86@kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Joerg Roedel , Arvind Sankar , linux-kernel@vger.kernel.org Subject: [PATCH] x86/boot/compressed/64: Drop the now-unused finalize_identity_maps() Date: Fri, 13 Nov 2020 16:08:10 +0100 Message-Id: <20201113150810.1233016-1-vkuznets@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit 8570978ea030 ("x86/boot/compressed/64: Don't pre-map memory in KASLR code") finalize_identity_maps() has no users, drop it. Signed-off-by: Vitaly Kuznetsov --- arch/x86/boot/compressed/ident_map_64.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/arch/x86/boot/compressed/ident_map_64.c b/arch/x86/boot/compressed/ident_map_64.c index a5e5db6ada3c..6bf20223dc0f 100644 --- a/arch/x86/boot/compressed/ident_map_64.c +++ b/arch/x86/boot/compressed/ident_map_64.c @@ -167,16 +167,6 @@ void initialize_identity_maps(void *rmode) write_cr3(top_level_pgt); } -/* - * This switches the page tables to the new level4 that has been built - * via calls to add_identity_map() above. If booted via startup_32(), - * this is effectively a no-op. - */ -void finalize_identity_maps(void) -{ - write_cr3(top_level_pgt); -} - static pte_t *split_large_pmd(struct x86_mapping_info *info, pmd_t *pmdp, unsigned long __address) { -- 2.26.2