From patchwork Wed Aug 21 10:58:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 820968 Delivered-To: patch@linaro.org Received: by 2002:adf:e98a:0:b0:367:895a:4699 with SMTP id h10csp640530wrm; Wed, 21 Aug 2024 04:02:10 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUxVAp1r4SJqfkucdtbKtPeilTOMxFUru/AxS75ydxuBI/yIm39nah6ALAJI/Jjjltwt1Nf9w==@linaro.org X-Google-Smtp-Source: AGHT+IHiatIv8fzJyIjCb8uNQYWu2sarC2zLal0o1vTH9gI62M4hWhmd4yUGnRKtKtfQXv158UIe X-Received: by 2002:a17:907:746:b0:a86:6e5e:620d with SMTP id a640c23a62f3a-a866f27b096mr154011466b.27.1724238130273; Wed, 21 Aug 2024 04:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724238130; cv=none; d=google.com; s=arc-20160816; b=jKppFbmOCV5pUyQCebixyWMzqFQBhKi+KuK1ytQcEyB5VFxiMjNDCjs3hZ1Iy1Bc6C khUFaI9YDSZRe2Jog2KvG1xteJig1EIovJ0zqa2pyS8U1YN/7HXNztlh+AQNl4jpNwun Su5oWnG/WeaJEuf9wKTlY2VRLFiy/Dz2TgJoxKt5WSJ7FrceLgAgI9LkXFNkcNXLqwAh BaGP57RJAPee61WNoiS9kxSIW/JokVEm4NgImOGXTlTJL5eBmvfsaUDqAvHtMwW0Ru5H 2zHzbvTQrv/UzpXVjnKREMsRmKpqvI64BbPw4dCvc6ClgM+YljAb/n5mirEMV18gyr35 ZGpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=AvMMmPvD6ciLtpMFsrdKLOj1+Gob1JlWVDMA6N1z/U4=; fh=pnMZGD6unUPoMrkOwzXlkuYg+kVwGnSNRCTlQoWqjVc=; b=CZMEtYeb/mB2aARWRwuVia7YQoq7/RS8wFumfJteEFkcWGJ0KGp3q//3Mmqq14Bd1Z ZF73it+x6rE9j6Z2ooLg6Io6ectVw2gXl9U2cVjbVa1ZYNFkSEbltx7G8Q5IM4QdWivI vhc7JN16RCAqGz+wHZlw8nNKw1fVNT3vJXsOC0Ev1D9WPLLG4AhAx4xEYbMkqylgCynY anqVIKmMPm9C/TIs6Ksh+5+PWwDQsIqBvxnxjBkgx4HoUMC2651n/Do3PDvIoM9K78Yh 0qi/p9FD2VApimgE0f2nD+qOnSQlOA98+LFsVxjlBGbvZX/HofVmay6dTWaMJ8r8e6rs D4hQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a640c23a62f3a-a866c0e564esi100959866b.817.2024.08.21.04.02.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2024 04:02:10 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5205488DC7; Wed, 21 Aug 2024 13:00:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 76E7E88C04; Wed, 21 Aug 2024 13:00:10 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 7CD6E88DB7 for ; Wed, 21 Aug 2024 13:00:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org 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 A98AFDA7; Wed, 21 Aug 2024 04:00:33 -0700 (PDT) Received: from a079122.blr.arm.com (a079122.arm.com [10.162.17.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 489813F73B; Wed, 21 Aug 2024 04:00:04 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Simon Glass , Tom Rini , Ilias Apalodimas , Heinrich Schuchardt , Marek Vasut , Mark Kettenis , Michal Simek , Patrick DELAUNAY , Patrice CHOTARD , Sughosh Ganu Subject: [PATCH v3 18/27] lmb: remove the unused board_lmb_reserve() function Date: Wed, 21 Aug 2024 16:28:30 +0530 Message-Id: <20240821105839.2870293-19-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240821105839.2870293-1-sughosh.ganu@linaro.org> References: <20240821105839.2870293-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The board_lmb_reserve() function is not being used, and currently there is only an empty weak function defined. Remove this unused function. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas --- Changes since V2: New patch include/lmb.h | 2 -- lib/lmb.c | 6 ------ 2 files changed, 8 deletions(-) diff --git a/include/lmb.h b/include/lmb.h index 6e435bd35c..79bd2457d3 100644 --- a/include/lmb.h +++ b/include/lmb.h @@ -107,8 +107,6 @@ long lmb_free(phys_addr_t base, phys_size_t size); void lmb_dump_all(void); void lmb_dump_all_force(void); -void board_lmb_reserve(void); - #if CONFIG_IS_ENABLED(UNIT_TEST) struct lmb *lmb_get(void); int lmb_push(struct lmb *store); diff --git a/lib/lmb.c b/lib/lmb.c index 1116b2b868..11959760b6 100644 --- a/lib/lmb.c +++ b/lib/lmb.c @@ -221,7 +221,6 @@ static void lmb_reserve_uboot_region(void) static void lmb_reserve_common(void *fdt_blob) { - board_lmb_reserve(); lmb_reserve_uboot_region(); if (CONFIG_IS_ENABLED(OF_LIBFDT) && fdt_blob) @@ -688,11 +687,6 @@ int lmb_is_reserved_flags(phys_addr_t addr, int flags) return 0; } -__weak void board_lmb_reserve(void) -{ - /* please define platform specific board_lmb_reserve() */ -} - static int lmb_setup(void) { bool ret;