From patchwork Mon Aug 26 11:59:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 822452 Delivered-To: patch@linaro.org Received: by 2002:adf:e044:0:b0:367:895a:4699 with SMTP id w4csp1478017wrh; Mon, 26 Aug 2024 05:03:14 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXcfheCSQGYWu/yT/jj0ODQEYxVjrN0mn1OF0bLXvEML7U6VxGF6RZ3DkG0VqLvcIHj2FkJhw==@linaro.org X-Google-Smtp-Source: AGHT+IH1r93+Rs036M7jKjtoHcbLFY6UNjZ3NdxBu/yLjh2DB19sgsHTKS2ZQPfwWeysR/PiCBWc X-Received: by 2002:adf:f706:0:b0:368:3f60:8725 with SMTP id ffacd0b85a97d-373118d22ffmr5429062f8f.39.1724673793750; Mon, 26 Aug 2024 05:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724673793; cv=none; d=google.com; s=arc-20160816; b=sA/DJaKQkhwmhOK4zbgpjpaMwoFRXPUozV/tD6qQ7iTcro60Rgsuw87N6bBDGNbLAo 1wEfEVGMo3urZ3+n4nyc0Nf3NDrg9Ye4hkEF2pUFsquTZv9EIPw4Vw7PhTLmUduyz6Ao acWCjqOECQmhJe9Z+8duSa5FiMZt3ErDu+mHNoGK6+35BdPy+3Q2uOs2tBgDz/9zIbH1 T3oCooqDkDo7UNjP0/a4gGXBoN0t9qMYgJa8WziWEpYIYpwlZ1Z3txvEtl2lKEfZ6Bez UhQcg2esg+sGBPihXYnSELUOB6w36lPL3RMEUKkvEwuANxl+Y00GO2cfmOrT3EBXFEZ8 dZMQ== 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=vLqeY/fQpymqZ9k8Zazh8JpfCUir6y2TxP8wZTbG8LQ=; fh=8IbOOFAUJYCfGYrzM0jWqtoOP7AaZuPOmdHZ5mvNk1Q=; b=YZO1MmbeuigJSI0pS6CBDyCTPG7UA7luI0jGTK5e7CQ6SfwWGNbVP46/5Itowh4Apk S6tHQtYgpxcUO3IXdDWecSdWQbTVdr2we2/DyP4LhToq/y1x5E4QFXXL2qIu3jO1KLIz d1hpqtAqQfK4GU+cL4fd6ClhQgudh78pw+fIrAAvx1arpDWCQ14jsqDXtsMWNmLoTRxI 3feTPFIjLsDnNFZI3EOv6hL/US4/kGkD4bG6IIfCbRJOvJ2S9AV4YHo5t7beZw0uqjNV shCGODflrVtI+4EK9Xg5gZms/Zxx2A7bhX+PwqEx7uR4vZ6vbdQs6eoMx8tC6QU1j1J1 kdrQ==; 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 ffacd0b85a97d-37308269b46si3673182f8f.685.2024.08.26.05.03.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2024 05:03:13 -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 98A0788A31; Mon, 26 Aug 2024 14:01:26 +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 4169488A31; Mon, 26 Aug 2024 14:01:25 +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 4738088B68 for ; Mon, 26 Aug 2024 14:01:23 +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 C92A211FB; Mon, 26 Aug 2024 05:01:48 -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 E16D23F762; Mon, 26 Aug 2024 05:01:18 -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 , =?utf-8?q?Marek_Beh=C3=BAn?= , Sughosh Ganu Subject: [PATCH v4 18/27] lmb: remove the unused board_lmb_reserve() function Date: Mon, 26 Aug 2024 17:29:31 +0530 Message-Id: <20240826115940.3233167-19-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240826115940.3233167-1-sughosh.ganu@linaro.org> References: <20240826115940.3233167-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 V3: None include/lmb.h | 2 -- lib/lmb.c | 6 ------ 2 files changed, 8 deletions(-) diff --git a/include/lmb.h b/include/lmb.h index fb1a6db8e2..fc2daaa7bf 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); - struct lmb *lmb_get(void); int lmb_push(struct lmb *store); void lmb_pop(struct lmb *store); diff --git a/lib/lmb.c b/lib/lmb.c index dbbc19ede9..9f1bb5ec7d 100644 --- a/lib/lmb.c +++ b/lib/lmb.c @@ -222,7 +222,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) @@ -690,11 +689,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;