Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1820659rwe; Sat, 27 Aug 2022 18:39:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR5xmL6O6a0e2CQXV21GXfVtgjg6raPFUYHbk8+cc3VgeDAkVtKALR+w61rhcIjvnKnBajhV X-Received: by 2002:a17:90b:4d07:b0:1ef:521c:f051 with SMTP id mw7-20020a17090b4d0700b001ef521cf051mr11872328pjb.164.1661650792330; Sat, 27 Aug 2022 18:39:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661650792; cv=none; d=google.com; s=arc-20160816; b=Hh7NkFDaUt47feWKEn+c2enShWYp1A6tOqfUC8rnsyT2sZzJRxBibIKnn0vrlaiBQZ tQ6d306w1FRV85yuYEKNzv8hV6eQL5cAqy7seQ2huW/MlabWPhSuIq1OByujSIadlYFV ZlJy7EiIR53uVqMPOR7EIAngJAias0Qga/Xt2GrbjsiW3eaUI4dUDwbd7OHgfOiQ/Bjr SMghYvuninUyEo8IGslAuOGQULoYhnqEdMF8YGmL9+tbdDKqmkBO7dvCkzTd8OovMv/b 4IZfi0xaZlCjSVThU/W+Xfmd/GDQa6CZMwlLcAnZh61vqZbzcPD9FOYv+39Z0VeNEsMW 6tqQ== 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 :dkim-signature; bh=klvCIsgXfinczEtZu1vkS1Kza9b+D2rCSj6ESjeEdL8=; b=GfuVFXb/jeMUlcBsXeg6pZEE/eWfovYr/POime6A6a7KVINUNxMqLJQyc6zbke3gJz DmyPPt/yRI7WYeE1xjk9UZQ6Aqfe15fBmJrgTghY1hwd9wtasMCDbmvj2uVXdjP9ygkh 6O0mnqpXjRymH8nGbepWab6gR5j6igGzUpBYfbAw/rUIjV+L6RCXz2TeLW0DwtNDR8PO 3Xhy6wJKz6EwYW5Clq7oFCadz1yukqLvRyR0jAUY2Dlpj8gVijKcLGYdXM0vi5//7B0j w7mc9c1bJ/2xvI8+582LhxaFLBC78GOWuJciZ5e1cjjfP7YH7JXbzRQTkyU+jY06zHed GGkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Q6J/46u7"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y11-20020a62b50b000000b00536bf099c14si5329523pfe.307.2022.08.27.18.39.22; Sat, 27 Aug 2022 18:39:52 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Q6J/46u7"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231695AbiH1A42 (ORCPT + 99 others); Sat, 27 Aug 2022 20:56:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231639AbiH1A4O (ORCPT ); Sat, 27 Aug 2022 20:56:14 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A1F84DB40 for ; Sat, 27 Aug 2022 17:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661648170; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=klvCIsgXfinczEtZu1vkS1Kza9b+D2rCSj6ESjeEdL8=; b=Q6J/46u7ZqUWStL5sU5B7Aei5OxBWbbCKs6PhIMFuXym59/B0bwrm9cjl1P1pjFXHK0F0V 7kphk2G7gq1N6mhZZ1N0s7rMzy5OOgUFm9ZCwHhmso8Q13mpsmEGHl7E36N4MRd2IIJh4r inmT6aRmJ1aNC/DHKiNX4BFX+/JO/EQ= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-323-mmYmt1CqPteYwdHhgDmfTw-1; Sat, 27 Aug 2022 20:56:08 -0400 X-MC-Unique: mmYmt1CqPteYwdHhgDmfTw-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1FAB729AB41D; Sun, 28 Aug 2022 00:56:08 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-12-25.pek2.redhat.com [10.72.12.25]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5F0A7492C3B; Sun, 28 Aug 2022 00:56:01 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, ardb@kernel.org, rppt@kernel.org, guanghuifeng@linux.alibaba.com, mark.rutland@arm.com, will@kernel.org, linux-mm@kvack.org, thunder.leizhen@huawei.com, wangkefeng.wang@huawei.com, kexec@lists.infradead.org, Baoquan He Subject: [PATCH 2/2] arm64: remove unneed defer_reserve_crashkernel() and crash_mem_map Date: Sun, 28 Aug 2022 08:55:45 +0800 Message-Id: <20220828005545.94389-3-bhe@redhat.com> In-Reply-To: <20220828005545.94389-1-bhe@redhat.com> References: <20220828005545.94389-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Now they are not needed any more, clean them up. Signed-off-by: Baoquan He --- arch/arm64/include/asm/memory.h | 5 ----- arch/arm64/mm/mmu.c | 15 --------------- 2 files changed, 20 deletions(-) diff --git a/arch/arm64/include/asm/memory.h b/arch/arm64/include/asm/memory.h index 9dd08cd339c3..b9e71583c9cb 100644 --- a/arch/arm64/include/asm/memory.h +++ b/arch/arm64/include/asm/memory.h @@ -363,11 +363,6 @@ static inline void *phys_to_virt(phys_addr_t x) }) void dump_mem_limit(void); - -static inline bool defer_reserve_crashkernel(void) -{ - return IS_ENABLED(CONFIG_ZONE_DMA) || IS_ENABLED(CONFIG_ZONE_DMA32); -} #endif /* !ASSEMBLY */ /* diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c index cdd338fa2115..c3f8f426c3d8 100644 --- a/arch/arm64/mm/mmu.c +++ b/arch/arm64/mm/mmu.c @@ -502,21 +502,6 @@ void __init mark_linear_text_alias_ro(void) PAGE_KERNEL_RO); } -static bool crash_mem_map __initdata; - -static int __init enable_crash_mem_map(char *arg) -{ - /* - * Proper parameter parsing is done by reserve_crashkernel(). We only - * need to know if the linear map has to avoid block mappings so that - * the crashkernel reservations can be unmapped later. - */ - crash_mem_map = true; - - return 0; -} -early_param("crashkernel", enable_crash_mem_map); - static void __init map_mem(pgd_t *pgdp) { static const u64 direct_map_end = _PAGE_END(VA_BITS_MIN); -- 2.34.1