From patchwork Tue Jun 17 10:43:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 897366 Delivered-To: patch@linaro.org Received: by 2002:adf:9b99:0:b0:3a4:ee3f:8f15 with SMTP id d25csp2073868wrc; Tue, 17 Jun 2025 03:44:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWD/pDvx8tuqzTbHRTwJwpZRPs7qmJbplRSB4N15F+i1a3TrHCKmOLE9egxsj2s3GYwYf1nvQ==@linaro.org X-Google-Smtp-Source: AGHT+IF0bUhoWb6V7O4u3pUNsi8wToSReoAvEiSUwJVKwQmD3gzEFJbQW5VPOsie23NU0x/W+VnY X-Received: by 2002:ac8:5955:0:b0:494:7043:8a2 with SMTP id d75a77b69052e-4a75b964380mr31708501cf.16.1750157080730; Tue, 17 Jun 2025 03:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1750157080; cv=none; d=google.com; s=arc-20240605; b=VRt5CvmZdkuyP2ZdzqzWrm7k+jOWfKoSIrbfWirqkULc2vmkJXucM1waWqg9WEeIwH p9ACed+oUFEoka5FxbTXgkrZ9Bq1KpYLvsw9PpgKGSi25epKnBHUAsW8YwmNBnRqGFBw 2Hh9UfEIQZCAeRuEWuPk6vjns3iqEBoK10rOMCcyxbgh9mvVpdTXuNZYIdF2dpnJ8nqt GW9m/wi1PH5saS+Dh+QJOOhsunNv7HVhwo2fAt/PSgAzZLzMI9qtVU/LN4g03UwXX1Sl +AfvQZXVBRZvQQ54hdba+j/sFDR95jx9jD3Sykz00mW5E5JoElz72hsYQogC2f0KQdQn ai9Q== 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=XjtD1v0qlCStE/zM0vTyP8f4PNxMLcRfjBaiXRt9upk=; fh=OQsgrM7lYcbKid/8QRKDrRnr3aZuZ+FGeYy6ua/5St0=; b=gt7IhSWpRncP4499ZCN57vtwLcY4Jr9Bu29GqlpEURysdr52TlGRTuJEuUj4NzVq+j Vcu7dFwXjZjFJ2P+bKkX80LxnZIA+TgNMh+OiNSyA2Eznqu9HsQ76Ek3ZMYgTI+LZGSI eyRJHgg5Qd7fKm4TrhBBzxWi8CJSeWjxtcrgZYiefWGDXYk/2bU1XGEv5KS9uStSvdSp uVg20wh05scFG1nKpSiGCycFlY4uEI5//ubgi7uvxS/ve6F5cHkOlVCJB04s4raqQdSm 1iDyL+ATIGvenJwNcXfElu9yGPSTcm04bRfy8D3BGGDWFlloFFYbYK6T8Lc4dIXxXYU8 bsrA==; 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 d75a77b69052e-4a72a53e58csi117608881cf.605.2025.06.17.03.44.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jun 2025 03:44:40 -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 B757582D60; Tue, 17 Jun 2025 12:44:19 +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 5441382D60; Tue, 17 Jun 2025 12:44:18 +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 575B682D57 for ; Tue, 17 Jun 2025 12:44:16 +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 B4B7E1596; Tue, 17 Jun 2025 03:43:54 -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 8A0343F58B; Tue, 17 Jun 2025 03:44:12 -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 v5 3/7] lmb: staticise lmb_add_memory() Date: Tue, 17 Jun 2025 16:13:42 +0530 Message-Id: <20250617104346.1379981-4-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250617104346.1379981-1-sughosh.ganu@linaro.org> References: <20250617104346.1379981-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 V4: 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 34dbc25759d..aead799d555 100644 --- a/include/lmb.h +++ b/include/lmb.h @@ -124,14 +124,6 @@ int lmb_alloc_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 a30ae64f8cd..3265fad317d 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;