From patchwork Tue May 20 12:06:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 891319 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1561354wrm; Tue, 20 May 2025 05:06:50 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXMA0WucAmm3KDLco9yIBrrGivawrAh5o8ao1G2GlkL3nrYCXUiiGZhqf5haw1dOM7/k2nIeA==@linaro.org X-Google-Smtp-Source: AGHT+IEwmuOIiey6Fqdf9kT0it5I8pZrPfb/Bckxp/jw2o3WPPjVdrxyJ789e6/V3NGTM6A4LXr6 X-Received: by 2002:a05:6000:4284:b0:390:df75:ddc4 with SMTP id ffacd0b85a97d-3a35ffd2864mr14530956f8f.44.1747742809716; Tue, 20 May 2025 05:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747742809; cv=none; d=google.com; s=arc-20240605; b=DE8VP1NrIz8xO/28rm7vHF3DOWuIAUfCLFVcZ7ugqhPG/hTZlhj8RtiN55Ekyqugwl Pz7oCW9+akpGW9FwG9XjOKLvLOaQGAnvNBheE6JeJU4863UMNl3T+cYhed8WtmRBjiMQ 6JHEDQoMEPzhy896TAwO2tbcpdsuGu+LKsjwKZEv9JJkxsuEVpPAKdD0/5IyktRj6gFM WFtVqkhCG5LPMo99uKSqyu4m44VPc1us12iV/HDsvWLm7mmmNDMak8+Zy9r8oPLbGua1 BDBpWma0HlLr4usSj6JFFibFyeCzMfiaGIFKU4qwNX51cjT4Z8KWYfOWLhqDVE/orY6M 4T6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=+D2PjWedt5NpcYA69PEyM7RaZ6pfYEgIJljRWmXIivc=; fh=OQsgrM7lYcbKid/8QRKDrRnr3aZuZ+FGeYy6ua/5St0=; b=D/NDzu1m4Y4oZtwi3hkekcrsPQv9l5D1UiCyXhKSU/31k8N9Tjjlti6SWEg688X+2D ImzJ3VgHmrIyK0n1jNsH6O9Z9UKMmRKZSh1kofmTVqLgulZNScZTF6WyzZXDmcujyD/0 +53BMjgQZTESMnuN6fdxXFvZ53otmZ/1flQKpXKBP+sF4+rfVeF4/D36ZMysdhiy9j4k 4rTaEdVY0/ITwE9LJ8hDNgGwf711gXybDoyBxI5CMO2FIBFR2vc+IwCu87v4AsUNiO3N vumdamOw8S4bMZ3lhGVF1TwY3g5lrAKxwxmn6OIJ+jC1G08zh+k+dIEE2NRlsHSrxBJS mDaw==; 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-3a35ca58862si7606061f8f.217.2025.05.20.05.06.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 May 2025 05:06:49 -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 C153282C38; Tue, 20 May 2025 14:06:32 +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 36CA682A8D; Tue, 20 May 2025 14:06:32 +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_DNSWL_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE,SPF_SOFTFAIL 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 36F7182C38 for ; Tue, 20 May 2025 14:06:30 +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 40D79152B; Tue, 20 May 2025 05:06:16 -0700 (PDT) Received: from a079122.blr.arm.com (a079122.arm.com [10.164.21.38]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 98C153F5A1; Tue, 20 May 2025 05:06:26 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Tom Rini , Casey Connolly , Neil Armstrong , Mark Kettenis , Weijie Gao , Heinrich Schuchardt , Simon Glass , Sughosh Ganu Subject: [PATCH v2 3/5] lmb: staticise lmb_add_memory() Date: Tue, 20 May 2025 17:36:04 +0530 Message-Id: <20250520120606.173228-4-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250520120606.173228-1-sughosh.ganu@linaro.org> References: <20250520120606.173228-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 lmb_add_memory() is only called from the lmb module. Mark the function as static. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas --- Changes since V1: None include/lmb.h | 8 -------- lib/lmb.c | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/include/lmb.h b/include/lmb.h index 82f5097173f..29345d1fa50 100644 --- a/include/lmb.h +++ b/include/lmb.h @@ -124,14 +124,6 @@ int lmb_allocate_mem(enum lmb_mem_type type, u64 align, phys_addr_t *addr, */ int lmb_init(void); -/** - * lmb_add_memory() - Add memory range for LMB allocations. - * - * Add the entire available memory range to the pool of memory that - * can be used by the LMB module for allocations. - */ -void lmb_add_memory(void); - long lmb_add(phys_addr_t base, phys_size_t size); phys_size_t lmb_get_free_size(phys_addr_t addr); diff --git a/lib/lmb.c b/lib/lmb.c index e3ec389d026..4f3cf345984 100644 --- a/lib/lmb.c +++ b/lib/lmb.c @@ -605,7 +605,7 @@ static __maybe_unused void lmb_reserve_common_spl(void) } } -void lmb_add_memory(void) +static void lmb_add_memory(void) { int i; phys_addr_t bank_end;