From patchwork Mon Aug 26 11:59:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 822437 Delivered-To: patch@linaro.org Received: by 2002:adf:e044:0:b0:367:895a:4699 with SMTP id w4csp1476152wrh; Mon, 26 Aug 2024 05:00:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUEFU20uVa3P0xoUSxbhUo15aHuPq2EW07yj/D++q0xjO0S9s1oab3y55ja+17bP/DG5fEWXw==@linaro.org X-Google-Smtp-Source: AGHT+IGu4ZTwJvwaEi+sOcLATNavTcXhaXDiqgTkubly/0bhOQA4v4yXwrxbB9Qyink4l5g3YJD+ X-Received: by 2002:a05:6000:b87:b0:371:8e65:59bd with SMTP id ffacd0b85a97d-373118c7ed5mr5747395f8f.42.1724673636068; Mon, 26 Aug 2024 05:00:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724673636; cv=none; d=google.com; s=arc-20240605; b=cO128jSOT0jFJduggduPWuLTpLVV/HjQWGvVhLHZ59kHtkCEMID6p+Y4WGTOXMGE+Z lEFLKQyQEJimgX0zbnPKsmgPyD1b90V4tl2yeilwH2pNicenTUkU6cJyhIwcxaJvDTpj TzmzKAsiXgCSa6v1rAnY3rW7CePPFO8+vJEyhkE/SAATWCzaX1/vhEce7D1qS8G5GJOm 6VTpBLfedo7NqmqNs99TpsPhNHg1NGY8BffXigvqH7kJqyDgGjgVfqA+Izna9gGVRXVo rYL7qiia54AGFgHOwyeWIHd65muVqOxSB8o0kT1+xD/bOHEBAxPsRmaQ0faQx3JKdEOw t4Mw== 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=Iq6Fwwvn3I8+PtLSpWfIE3Pa6nO3e8vyJKwczjLrwcs=; fh=8IbOOFAUJYCfGYrzM0jWqtoOP7AaZuPOmdHZ5mvNk1Q=; b=gruRlNmqR/RdoIqoJCZN/4y8ev1ts61jW2KC5JswpkVkylX9U95cjqseXoI6KdxkNA bVNEvbpcPoyPBFZvH4OV2p4A1nufVx59uD4jg8590l4vapyzOWLcAE3hjCu20LNnBQM6 cUF3HNPJqnV3tLQDLbwrITwpUZb+lKOlxMjv7KG7mm3lwBlxTfCYeTI1QtzVxUxOoxw1 KBsGjLqjl9aRmP45/9qCYNn8qlGEslUAsiLBNqo+IHl9MlDOtXbdElV21+uKVeXuRoH6 LiUg41U+mEfZqtziYD8EIW7TYw03kdjdm63FdLOvKIXBWbD7yN5aDlyOtpvpWJbIdULD 73Cg==; 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 5b1f17b1804b1-42ac518a626si46698825e9.223.2024.08.26.05.00.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2024 05:00:36 -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 2F54B88A79; Mon, 26 Aug 2024 14:00: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 1FA6B88A5F; Mon, 26 Aug 2024 14:00: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_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 687DB88481 for ; Mon, 26 Aug 2024 14:00:14 +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 16345DA7; Mon, 26 Aug 2024 05:00:40 -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 32B9B3F762; Mon, 26 Aug 2024 05:00:09 -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 , =?utf-8?q?Marek_Beh=C3=BAn?= , Sughosh Ganu Subject: [PATCH v4 02/27] lmb: remove the unused lmb_is_reserved() function Date: Mon, 26 Aug 2024 17:29:15 +0530 Message-Id: <20240826115940.3233167-3-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240826115940.3233167-1-sughosh.ganu@linaro.org> References: <20240826115940.3233167-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 V3: 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() */