From patchwork Fri Jun 7 18:52:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 802312 Delivered-To: patch@linaro.org Received: by 2002:adf:f147:0:b0:35b:5a80:51b4 with SMTP id y7csp948505wro; Fri, 7 Jun 2024 11:53:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU3A4RSkgXgWez9NA0vkNcA48RkUIAj881ES+edhH2HJfeZWq9oahjZdsVGhPy8frDA2Sfv8Z/a5kZ3cib5V4Xz X-Google-Smtp-Source: AGHT+IHnRcyRdESa2rjyrKANMOBzR1vrUidWoRR/FjZJujrACKvqEc+IIt4OcIbt58hAsudUfPtR X-Received: by 2002:a17:907:9482:b0:a59:aa9d:3142 with SMTP id a640c23a62f3a-a6cd76a93b4mr261521866b.37.1717786428450; Fri, 07 Jun 2024 11:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717786428; cv=none; d=google.com; s=arc-20160816; b=e11prxTO456A2/WBrorgfwuNPDD72Az2mY22OudxTD7AuHi6lKaiBNWFD6Xd7SJe0i WM2O+ZyDu13lDopY3aQwin3OW7ZqU3sIkKilvmG5vDupamOzEmSxWKhiVBPiBikgNAqG Sna7yCVm3M15J+O8LtcLLWPje/64g4H/5W6hq7OIwtvbApe8jMZ45/Owk8Wn46NWF1tF KfyvXbf4w5V+pbaWoktfvGDduzfUB/32yCs+DcqILBQiko7MVpIBNGUJewso4bqWyuva fy1IUT9tq+Ek2uC1/ogoD9Jh1ynNt4kACQIj8O0ta3Wz3PVsvzmspRSthCrTdYIwvgWw hlFg== 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=T2l7bSgqQycwpoWc8Cu6iwTFGlRY7FQ6+5DBZp09wJI=; fh=xLSOOz5Q0Mrmzd+lwBRTYS7D/8TpUWM8TEHgIjpMzow=; b=bESajBnFUwB16zRqHQVcOmzc79JnEJzd19S6iiP6n42Zn0Uxg9IozMST3ym7z6lINy en/d9QZ2xUV2Wvq961DHZtp9cn4LulAb57Xt8uTFjTSpKd/kv60WgI5N7nJBSQTiI+9G pw/jKII2qCBLNu2NsuYTImMCl9sQbQdvKgB9yY9KBNHE2ZwWUqyuM9lqeaN55zbWKKye POYl3sUoff7vxAzBlK8uJCxchng6fKjYVTgjYCvM7pGkPUtf4bMC9l468dZblpY6EYFL TRswUpC0t2FO50F6KRaf1bNvfpckjWpkOppUjS9oxQUC3uPEyqs2mxRW1Rg0sGelRU8s XK7Q==; 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-a6e6698a469si70042066b.1040.2024.06.07.11.53.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 11:53:48 -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 A399088485; Fri, 7 Jun 2024 20:53:39 +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 1A9878844F; Fri, 7 Jun 2024 20:53:38 +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 1E026883AA for ; Fri, 7 Jun 2024 20:53:36 +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 084751480; Fri, 7 Jun 2024 11:54:00 -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 D183F3F792; Fri, 7 Jun 2024 11:53:32 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Tom Rini , Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Marek Vasut , Mark Kettenis , Fabio Estevam , Sughosh Ganu Subject: [RFC PATCH 01/31] lmb: remove the unused lmb_is_reserved() function Date: Sat, 8 Jun 2024 00:22:10 +0530 Message-Id: <20240607185240.1892031-2-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240607185240.1892031-1-sughosh.ganu@linaro.org> References: <20240607185240.1892031-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 --- 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() */