From patchwork Wed Jul 24 06:01:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 814132 Delivered-To: patch@linaro.org Received: by 2002:adf:f288:0:b0:367:895a:4699 with SMTP id k8csp2618005wro; Tue, 23 Jul 2024 23:05:16 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWtNtGzAVxXp8Nr6bJosXiP+ZXpg+KEBjbRWxRcdBtItRCXPYjAYRO9yNZfTAkN26DKx8XUgA1lhkAgROPzC4bb X-Google-Smtp-Source: AGHT+IEvq3dMKd8C3Qf6r02j+xjH8lNSCTBjLhxULnKFGTNcCieyrx2qpFptn2i65DohUbjQeMOt X-Received: by 2002:adf:f149:0:b0:367:f245:d847 with SMTP id ffacd0b85a97d-369f5a6e3demr736772f8f.2.1721801116714; Tue, 23 Jul 2024 23:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721801116; cv=none; d=google.com; s=arc-20160816; b=L9JSknUvkQq4SreFlSvXwZhHs0Ju/QyPnfnQih0pCL0GUslx9cTXqsjJlt/GU0yYtC SXgXDeVTtr8A3iB/7f8CuoVVAuYmsQ9S7Bi/r+RQAbQtg09rpMKxfagA87ZhPXLStzGD miDzEIuFm2/e8rYxZspVXf8sQdizhzYlXxQfWHDGSbuwjH+yUIVXT3Ve0WLWuifVlsVL fj02I/CelrsqsMTtp6k76+/cPLq0IUocNdhPdguSx3kuYyqz5MVQl9U8cP57WMAFusLe g1caS5wtewH040CzGbtfVy7+xwlm+SJoJaqGFHu47hgGEeGghxVuuk5cia+lsV/Fk4Mt xxNQ== 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=XlBJNPY5WjNo7/7jEtOZThS9QFPZJyA4zpc8xC6EiNk=; fh=eimiGswTlodK8yi2DcDfSicmKwvq5bxKQKpD+SkkTNY=; b=P2Uj+XEh1JovQKJEVUDMXhfr4whkoOTjfJe+ZXDiGvShUj5KCXRAD3TCZARzUlrOGC eal07RU24p0Ejvjh1EZ0PAASkOsaJSOw+c5sfV+5Umfd3X3XoD3zw/tZvsQzEru/JARa 0vitW+fcWmjetTT/0eJPDamiKmseHfIx+khbsh+yibYjumEcNS4eSI1e0D1tgM0LoUFQ MZeKLpycXW59Gv/4sqr3pWwNyJD7umAHF+X91RFvX34yxQvr+LcuJ1wY86pIGJdMpRfQ VMqlpeZownqIGyGRL2+MTObueXvxw3WDxkdycQva62iP68hKv38YqGxjHvcFbmUHeP2W s1Lg==; 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 ffacd0b85a97d-369e3819213si1314536f8f.553.2024.07.23.23.05.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jul 2024 23:05:16 -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 202EB88886; Wed, 24 Jul 2024 08:03:31 +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 62B478881B; Wed, 24 Jul 2024 08:03:29 +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 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 9A85488845 for ; Wed, 24 Jul 2024 08:03:24 +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 8F6891476; Tue, 23 Jul 2024 23:03:49 -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 7D1AD3F766; Tue, 23 Jul 2024 23:03:19 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Marek Vasut , Mark Kettenis , Michal Simek , Patrick DELAUNAY , Patrice CHOTARD , Huan Wang , Angelo Dureghello , Daniel Schwierzeck , Thomas Chou , Rick Chen , Max Filippov , Sughosh Ganu Subject: [PATCH 08/40] lmb: remove the unused lmb_is_reserved() function Date: Wed, 24 Jul 2024 11:31:52 +0530 Message-Id: <20240724060224.3071065-9-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240724060224.3071065-1-sughosh.ganu@linaro.org> References: <20240724060224.3071065-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 rfc: 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() */