From patchwork Wed Aug 21 10:58:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 820953 Delivered-To: patch@linaro.org Received: by 2002:adf:e98a:0:b0:367:895a:4699 with SMTP id h10csp639112wrm; Wed, 21 Aug 2024 03:59:26 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVceTrtFdTu7rhgAflRxdKdHGjNXJkXMCzaYfM5nErnfO2iBQQ1LRkqyj8LKCqhaBrQY+BVGg==@linaro.org X-Google-Smtp-Source: AGHT+IHBdmSxjU+edPdrY2OVeaJhYI011OXVZ7nhvz9F1jWLVJCXEbytUrwWcXVrB7liykc0ajeL X-Received: by 2002:a05:6402:400d:b0:5be:dbb6:9cb2 with SMTP id 4fb4d7f45d1cf-5bf1f15ccd9mr1867000a12.20.1724237966307; Wed, 21 Aug 2024 03:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724237966; cv=none; d=google.com; s=arc-20160816; b=CoceTgTzkvPMKu1VlDLor5RoaqkkNHIZWXkapbosvR/qgBr4msPFettglDTDMNGtyx szl1dqoVNNTqq45+xeMKxomHQLbRhIeJBKmTsw/PWrD2DKo+Askk//VHo4amddcSM5Lf sFub1oeDgLNo1hqSxkn83h9J2aeX5IVj6xhPOjRzzv1GudkYZXv5S1Ivx9nkGxXZ0+/j mFCx7Ycnzge0glgYhb7dPrwCPruWGLIkMwSXZtP2aLTTeEu/bEAstCJXL/8Dr3UhlEvH NGmmjQrwdriRsPrbj82+GpQrZLwknoR/cjew3jdevZRbWlyul0vWpMEZQUqum9CZYPvy 0uRQ== 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=kWpaDuApCJ1NF8aBP9WhjtqtrUmGcszK54uEKt4lHQc=; fh=pnMZGD6unUPoMrkOwzXlkuYg+kVwGnSNRCTlQoWqjVc=; b=rPzsQd2UwIS2bSd5TX0S29ga7DY2anDfmqk8EA7a4lzrXpnXrsr9L3x/FJxBNNp+ih 3SVwMlGNovIbv2ShqaI/S2r8v2FCf5WdwAt3hdTrOHbLPTc9aKbkdH7MowhU/h3q8ZHj iG4kimn5VL612//JayrKZkCcNO2tKq778ADZTzpHNUeflNRjsruMCVDAsy/XeZD2ZkVV +QlR2B17sZxqSy9sCdVOe2V1Z3VfGIelFOJaE60K23VDZeYWGoTnaOVsSDsguXurOFZt ZrgNn6DH72u6dqHlrLsuOctD+WOH7ieBI4bwxEnQGIxcVFyzmwKI/qzFvG8pMeDXqxuR xZkw==; 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 4fb4d7f45d1cf-5bebc0c6598si8414595a12.625.2024.08.21.03.59.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2024 03:59:26 -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 6E00F88C28; Wed, 21 Aug 2024 12:59:10 +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 8261088C24; Wed, 21 Aug 2024 12:59:07 +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 8963C88B4C for ; Wed, 21 Aug 2024 12:59:05 +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 1597ADA7; Wed, 21 Aug 2024 03:59:31 -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 A8D8E3F73B; Wed, 21 Aug 2024 03:59:01 -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 , Sughosh Ganu Subject: [PATCH v3 02/27] lmb: remove the unused lmb_is_reserved() function Date: Wed, 21 Aug 2024 16:28:14 +0530 Message-Id: <20240821105839.2870293-3-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240821105839.2870293-1-sughosh.ganu@linaro.org> References: <20240821105839.2870293-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 lmb_is_reserved() API is not used. There is another API, lmb_is_reserved_flags() which can be used to check if a particular memory region is reserved. Remove the unused API. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewed-by: Simon Glass --- Changes since V2: None include/lmb.h | 11 ----------- lib/lmb.c | 5 ----- 2 files changed, 16 deletions(-) diff --git a/include/lmb.h b/include/lmb.h index 231b68b27d..6c50d93e83 100644 --- a/include/lmb.h +++ b/include/lmb.h @@ -117,17 +117,6 @@ phys_addr_t __lmb_alloc_base(struct lmb *lmb, phys_size_t size, ulong align, phys_addr_t lmb_alloc_addr(struct lmb *lmb, phys_addr_t base, phys_size_t size); phys_size_t lmb_get_free_size(struct lmb *lmb, phys_addr_t addr); -/** - * lmb_is_reserved() - test if address is in reserved region - * - * The function checks if a reserved region comprising @addr exists. - * - * @lmb: the logical memory block struct - * @addr: address to be tested - * Return: 1 if reservation exists, 0 otherwise - */ -int lmb_is_reserved(struct lmb *lmb, phys_addr_t addr); - /** * lmb_is_reserved_flags() - test if address is in reserved region with flag bits set * diff --git a/lib/lmb.c b/lib/lmb.c index 44f9820531..adc3abd5b4 100644 --- a/lib/lmb.c +++ b/lib/lmb.c @@ -565,11 +565,6 @@ int lmb_is_reserved_flags(struct lmb *lmb, phys_addr_t addr, int flags) return 0; } -int lmb_is_reserved(struct lmb *lmb, phys_addr_t addr) -{ - return lmb_is_reserved_flags(lmb, addr, LMB_NONE); -} - __weak void board_lmb_reserve(struct lmb *lmb) { /* please define platform specific board_lmb_reserve() */