Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3915749pxj; Tue, 15 Jun 2021 11:19:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWGK2EgEoH/EKn8FargyJmyTv3jzXYtF4ZGijecA5fOchVfxOq1F5/4rkiaYODmOJRtG4W X-Received: by 2002:a17:906:d8d0:: with SMTP id re16mr982679ejb.280.1623781149497; Tue, 15 Jun 2021 11:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623781149; cv=none; d=google.com; s=arc-20160816; b=UJ1L8OZM/eav6RylKZ+9+zdEN/S8zIuP+jju7GcyNBx/oRNJSoQvSfodl/eThR+udg D7xwEb0nkODT3CpJhPDyHT1JajQmMJmIZP02mjuWuvtny6sf19lH444ToimwCpkzHn7q 4dEahRMCfQiMmq9Qn003Cca3P58poXsknv3OBy58ATrWD+N9KlY3mLnYszanDMkBgLv/ FuqbLCnp8Tafu016Azk9Tq8SR4qxyhxMR5fjklinnc4/aJc90jVuYsKvWbjSPX1+5ktb +LPlG6kjxSjDNvAlDXuF4ktiuFRuSysNZIMXK1usJ1XNiP2KlDvOSVLpmb5y6KBjfZcH Mehg== 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; bh=jAhSE59kmsNcVP+fU06cyhKgTKhejP3zhFmQNKstneg=; b=AzjBx+t4Ifx/kxbSiFHZKUajRme2Qy3ONFRvo6F4GbrbN2gQkMDte3l4Ga5QFGOy+Y nqwA8uN8E0M9BJSIfz3BvWXeuFDrOEYsSTmSrrlL420q4DCGJPRwuivo76OXIR5CzZKF ej0I0Fdp5hO6qN0NLFWX4We8tUtLNSa9DKgqzT+nRs0ld90/DdLXznix64Bf+wBU9hPw AzEoY35AoHsEgPd4TIUeqWHv3p4goFFel9tnd//pksjFMtHpLw76h/IeuVemGwfAEMbh pVmVHeltQbKtLpVPyKhvFv36MAu5X9qzIkw7xjn6ma16H6krhx2rKWQgGe3+r176yPlB hm4w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t27si14502107ejd.372.2021.06.15.11.18.43; Tue, 15 Jun 2021 11:19:09 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229557AbhFOSTv (ORCPT + 99 others); Tue, 15 Jun 2021 14:19:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbhFOSTu (ORCPT ); Tue, 15 Jun 2021 14:19:50 -0400 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA8D4C061574 for ; Tue, 15 Jun 2021 11:17:45 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:bda0:7de0:767e:26f9]) by michel.telenet-ops.be with bizsmtp id HWHf250034N5gS306WHffn; Tue, 15 Jun 2021 20:17:42 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1ltDd4-00HYOR-Hd; Tue, 15 Jun 2021 20:17:38 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1ltDd3-005qAT-P4; Tue, 15 Jun 2021 20:17:37 +0200 From: Geert Uytterhoeven To: Rob Herring , Nick Kossifidis , Paul Walmsley , Palmer Dabbelt , Albert Ou , Frank Rowand , Catalin Marinas , Will Deacon Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 3/3] arm64: kdump: Remove custom linux,elfcorehdr parsing Date: Tue, 15 Jun 2021 20:17:27 +0200 Message-Id: <169c69d085fc235592208d4669785a3f94248f28.1623780059.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the architecture-specific code for handling the "linux,elfcorehdr" property under the "/chosen" node in DT, as the platform-agnostic handling in the FDT core code already takes care of this. Signed-off-by: Geert Uytterhoeven --- arch/arm64/mm/init.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index 6e1ca044ca907cd0..af06bfb6e2838d0f 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -125,25 +125,6 @@ static void __init reserve_crashkernel(void) #endif /* CONFIG_KEXEC_CORE */ #ifdef CONFIG_CRASH_DUMP -static int __init early_init_dt_scan_elfcorehdr(unsigned long node, - const char *uname, int depth, void *data) -{ - const __be32 *reg; - int len; - - if (depth != 1 || strcmp(uname, "chosen") != 0) - return 0; - - reg = of_get_flat_dt_prop(node, "linux,elfcorehdr", &len); - if (!reg || (len < (dt_root_addr_cells + dt_root_size_cells))) - return 1; - - elfcorehdr_addr = dt_mem_next_cell(dt_root_addr_cells, ®); - elfcorehdr_size = dt_mem_next_cell(dt_root_size_cells, ®); - - return 1; -} - /* * reserve_elfcorehdr() - reserves memory for elf core header * @@ -154,8 +135,6 @@ static int __init early_init_dt_scan_elfcorehdr(unsigned long node, */ static void __init reserve_elfcorehdr(void) { - of_scan_flat_dt(early_init_dt_scan_elfcorehdr, NULL); - if (!elfcorehdr_size) return; -- 2.25.1