Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4271656pxt; Wed, 11 Aug 2021 01:57:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSDPXRC4E7AZm9f1pZ96bYRKWXqBieXp4C2GpSqVztNMqOqYcHrRfXZPjq2vjOQXMfN97Z X-Received: by 2002:a17:906:9b87:: with SMTP id dd7mr2458032ejc.99.1628672236682; Wed, 11 Aug 2021 01:57:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628672236; cv=none; d=google.com; s=arc-20160816; b=Qh2QNuxMPXH6xeA0P4g0GFXcbM3BfndtxpeOCNYax1GI2lt/XQE78zhXvIVzN9HpTY Yb3wDIArbtnL14wyDKsHgn8lE0QYYkiVsiFiMKAT2LdCiXjeK/+gyp18nPBshbuje/oM 0ADaw4cE3i5uSSk0GJT2Ypb/t83rzI8vc7J57zUKgBcDgcZn1LmLJSsxVzIfuBIVK2vP jBVMimD3TjVKP9RWBXWZpnpF+nZHpJFW9fYnMWFqGSWTh/lJP2lCKeLE6UlUnJaWxUWt 7/fhe430ad/yVEcBxWROg7GqBuXX9z9ZCDRorcPSxEy6dgEMTBpnLRPZ0M6kzzFJs6lG J/OQ== 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=+SwymYJuC1NbLkF76PUcfUSB9tbOr16QSZEkgcdOcB8=; b=dl0yoVsd1rNUkciYUAm792wZvBJ1lSOM7qrpkT4liLwdWbG8w/5vTwU7JfJcjzfUgP Ia3zPWwmIgcF2vpdMvNNlbnBLdTz0zYQtzcSka51kE81rXeMmN6S2YH7Oe4Bei7AUJ/x KLud0sv8jrPMIDdDiSEZn+C6bMFFMHT8y+sBfrgirG4usY8v32nle0Lqb+MsPaGxqA1W evKqlj5Pg/BF+k2pUJya+eZSaxY++c2E6QajHp377N+oPtShhtuGTOqKYbBqzqq+7cHa QrfMzITwyH4CLodHZtJXTefQW2hLQ17xoGmQXD5B2mdq2W7dcemi+tQ2zoGrdEUlfN9E 0ETg== 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 e7si439112eds.390.2021.08.11.01.56.53; Wed, 11 Aug 2021 01:57:16 -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 S235902AbhHKIyF (ORCPT + 99 others); Wed, 11 Aug 2021 04:54:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229958AbhHKIyF (ORCPT ); Wed, 11 Aug 2021 04:54:05 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E3A2C0613D3 for ; Wed, 11 Aug 2021 01:53:40 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:438:1ff1:1071:f524]) by albert.telenet-ops.be with bizsmtp id g8tf2500X1gJxCh068tfzh; Wed, 11 Aug 2021 10:53:39 +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 1mDjzX-001yiR-96; Wed, 11 Aug 2021 10:53:39 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1mDjzW-0059AM-NL; Wed, 11 Aug 2021 10:53:38 +0200 From: Geert Uytterhoeven To: Rob Herring , Frank Rowand Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] of: fdt: Remove weak early_init_dt_mark_hotplug_memory_arch() Date: Wed, 11 Aug 2021 10:53:37 +0200 Message-Id: <1a61f75ec50d3c2922fcdbe33337266a58a4125f.1628671960.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 41a9ada3e6b4253f ("of/fdt: mark hotpluggable memory") introduced two (for systems with and without memblock) weak versions of early_init_dt_mark_hotplug_memory_arch(), that could be overridden by an architecture-specific version. However, no overrides ever emerged. Later, commit aca52c3983891060 ("mm: remove CONFIG_HAVE_MEMBLOCK") removed the non-memblock version. Remove early_init_dt_mark_hotplug_memory_arch(), and replace it by a direct call to memblock_mark_hotplug(). Signed-off-by: Geert Uytterhoeven --- drivers/of/fdt.c | 7 +------ include/linux/of_fdt.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index ee8f9937227b5e45..d29e610d336d39a5 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -1120,7 +1120,7 @@ int __init early_init_dt_scan_memory(unsigned long node, const char *uname, if (!hotpluggable) continue; - if (early_init_dt_mark_hotplug_memory_arch(base, size)) + if (memblock_mark_hotplug(base, size)) pr_warn("failed to mark hotplug range 0x%llx - 0x%llx\n", base, base + size); } @@ -1235,11 +1235,6 @@ void __init __weak early_init_dt_add_memory_arch(u64 base, u64 size) memblock_add(base, size); } -int __init __weak early_init_dt_mark_hotplug_memory_arch(u64 base, u64 size) -{ - return memblock_mark_hotplug(base, size); -} - static void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) { void *ptr = memblock_alloc(size, align); diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h index 3b1500a0116f91fd..cf6a65b94d40e6a7 100644 --- a/include/linux/of_fdt.h +++ b/include/linux/of_fdt.h @@ -67,7 +67,6 @@ extern void early_init_fdt_scan_reserved_mem(void); extern void early_init_fdt_reserve_self(void); extern void __init early_init_dt_scan_chosen_arch(unsigned long node); extern void early_init_dt_add_memory_arch(u64 base, u64 size); -extern int early_init_dt_mark_hotplug_memory_arch(u64 base, u64 size); extern u64 dt_mem_next_cell(int s, const __be32 **cellp); /* Early flat tree scan hooks */ -- 2.25.1