From patchwork Mon May 26 09:12:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 892608 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e53:0:b0:3a3:61c9:c5d4 with SMTP id j19csp1103814wrz; Mon, 26 May 2025 02:13:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXsjBrS1b2MuskJdHcG+QaJcYHwzFi7vUpHF3WkpOLlUxDPN5AHxZ1j66ownuejHYmsU/XdnA==@linaro.org X-Google-Smtp-Source: AGHT+IHzwi4QdOI0Gf4G7sA6rSLfPIgVcBrpzsWj30GxssWLhepJ8ClGog/rqFe1eqAM0T6QXkDT X-Received: by 2002:a17:907:8e95:b0:ad5:749b:a735 with SMTP id a640c23a62f3a-ad85b159564mr715388566b.27.1748250821417; Mon, 26 May 2025 02:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1748250821; cv=none; d=google.com; s=arc-20240605; b=YaSjbCRC9uH/PBtKwAOnTlXHbYBvGYyn5DEj6az5G4h+wSPr1BQqu+lY+e9JTLKvyY t35zsFq32TeM+vLqrPj3kWhciN2V+Pg81ABqVHZq0w9MaUGdprOS6QkiSgD3yimVKJjl /OdqqUEzLH+OYfN4aJQIFJcW8NtmvMYc+7kDqHZtBIecLDXcQ3eK6CPmsXHUNg7i6Mj8 YvuJWxOqRmIy11d8p62nXjhyEYwlPKbs4bHXNhqcd3Sfnqy8kpEMgC5xIp+JSgEuBnZU fdCQe5FoJLTUVqxC10aHfIzCy+Lnt2ACcGZzadeHbZjHAr5/kmUB3DVwMV7Wn4oj8SZz AXqw== 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=8WxnJcybldh73217i+ns/cQDJGfd3/VkXPsBms5euck=; fh=OQsgrM7lYcbKid/8QRKDrRnr3aZuZ+FGeYy6ua/5St0=; b=BrFla1Ztz8Den/2QuWPfGVY/dR9dyqyuvPf7rj0CD32ehihKk5L3E82vk3KcDbIozy Q8vPQvpcVcy23Sg5WQ5DCCvtD7b2JzMCv6MMo8N3RA4/OfDbkn13+RvzKowYjTjuX5yq HRFRuIeWyn4PFdiAa71LkIkWGiyVi2euTLSxElTqL4pRQjiLUKgQiBRT6fI7WdnrVQ+n 7RUqjGB+BhwMcpoTRSBUDX8VP13k/ck0We9CjiVV4DOR4VJULMGb6Lz1RLFlAAWtGRd/ Z3m+hxYcCJ9LYo9X+9r+cys2GT/mg/V2TpoE5zX9fbaTlPpkeTdeyHEcybYyNX9elBCx 07DA==; 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 4fb4d7f45d1cf-60464a9af6fsi2144336a12.196.2025.05.26.02.13.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 May 2025 02:13:41 -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 DE75282CF8; Mon, 26 May 2025 11:13: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 DFB4682C57; Mon, 26 May 2025 11:13: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_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 E631282DBC for ; Mon, 26 May 2025 11:13: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 D04D6153B; Mon, 26 May 2025 02:13:07 -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 40EA73F673; Mon, 26 May 2025 02:13:20 -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 v3 3/6] lmb: staticise lmb_add_memory() Date: Mon, 26 May 2025 14:42:50 +0530 Message-Id: <20250526091253.400802-4-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250526091253.400802-1-sughosh.ganu@linaro.org> References: <20250526091253.400802-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 V2: 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 29603335f66..6349a4795f4 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;