From patchwork Thu Jun 12 06:56:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 895751 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:ecd:b0:3a4:ee3f:8f15 with SMTP id ea13csp3163129wrb; Wed, 11 Jun 2025 23:57:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXpQNdAuJgUjQUlI+vs0DBZzsAfcBoupj7deIubSFS222POXChMka9E3X+NCuhfdVLYthP0pg==@linaro.org X-Google-Smtp-Source: AGHT+IGObJJRByjBDwnbwHMXU9+WgKz8rVBY6XH4Kk3u/kZmmfzhOa+TAPxOsg1ouQYvbujL5em8 X-Received: by 2002:a17:907:9455:b0:add:f189:1214 with SMTP id a640c23a62f3a-adea2e83fe4mr234667966b.24.1749711433292; Wed, 11 Jun 2025 23:57:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1749711433; cv=none; d=google.com; s=arc-20240605; b=WbGM3YWE8Xng4+FfnG+0x+B54JRTkxdEO9/w+Jip00TYv1LJwbU5LkGiazzFJg2zQX L7zwFjyJPJAVzKDKShuSx3a1wtcL/8VcIcrqj8vptvFjTkuLqr74qZR/ORZA/eHr370K /63oy4yy6lAJWMmPJVq+5BQKCH1Oq3K0BO92fzuA6B/JsoJ1k8AiEe89/3SAREx3E9vl qcbq1NAKGZOU78yjBoI5aaosF9BSpRgu2fuOelRcrATV7/rQ5z+eQ9O+CBNmBbgJ1+kD ATxija95xxo7cvm/nAkVaE3rSY1D54SAoLBC2G5FfMYXjVtnXwHRv8N9wtqsgJou4MBp TyIA== 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=j8ucSuGbvSaicuo/96nsgZKTe8drNxzKkoSmfgcohWI=; fh=OQsgrM7lYcbKid/8QRKDrRnr3aZuZ+FGeYy6ua/5St0=; b=KWZ6DqxNiMqo4tbjBhZlf6eJZpfbwYS0WZcpmKSMtf1Qq1DOTKd4v8ziKe6eqwV7XT qdRAqhrxRe26cNjPsmi2cQ6yEoFtvu3Zn9GHBnBWIX/foc77VzVJlE9Cqd6u/fnyvagl t9Q+rY+FKUDO+N8ZHHHLaOtA4HOBcaqGJJMdgd1FB4FFjU94Iwp0x8XUKMjlPCxdEFte owbmfiGERdIJsCx4UYsM7BqfmcoKXbIuGpfOg3Sra41eGeLHl3j39TFCciYutV94j0F7 eW0x69w0TJgDY4Ix/1PJLgccB2ByAE5Iv0GG6RjNHuPWlsuOr/PjMhGyK+pad3+d5hqL uYmQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-adeadfcccebsi114865566b.802.2025.06.11.23.57.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 23:57:13 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 F16D182B20; Thu, 12 Jun 2025 08:56:56 +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 E6045828A2; Thu, 12 Jun 2025 08:56:55 +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 EAB6F82C7D for ; Thu, 12 Jun 2025 08:56:53 +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 7C6E21C00; Wed, 11 Jun 2025 23:56:33 -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 2479D3F66E; Wed, 11 Jun 2025 23:56:49 -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 v4 3/7] lmb: staticise lmb_add_memory() Date: Thu, 12 Jun 2025 12:26:20 +0530 Message-Id: <20250612065624.751014-4-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250612065624.751014-1-sughosh.ganu@linaro.org> References: <20250612065624.751014-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 V3: 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;