Message ID | 20240814110009.45310-4-sughosh.ganu@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:cd01:0:b0:367:895a:4699 with SMTP id w1csp644373wrm; Wed, 14 Aug 2024 04:01:07 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWulXyHtZkjj3ua1X6nt7pnvoyZWPbcw5ZvpUrTpkzPLzl1b+8K+Spc3IM7+nd5CcwL9x0ARopdR4RJzUNlJiau X-Google-Smtp-Source: AGHT+IFkS5Ddbvj5BSWuMGT0Mp0go20EnvrYs+E1ZsLMWahRNgoQ++GusdsAo+UcsdVQFHDlkeLe X-Received: by 2002:a05:6402:40d6:b0:5b8:4824:be62 with SMTP id 4fb4d7f45d1cf-5bea5d0a60dmr1454301a12.0.1723633267395; Wed, 14 Aug 2024 04:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723633267; cv=none; d=google.com; s=arc-20160816; b=m5wjZqQf5ON8ep/SqwxAU0y5WMZ+UkTO/t5Eu8J0bk++p6C9d+rIvpZrTmh2vjFO6G RjjfzW9cA4Go+K7o2g9yXak9ZhiEWmOBQDtxXKU/6iEM1XoKGLZwxUX1jX7GV3dGn5kC 0wnqxMmfxxBFiROUjstG1ptPNYSrpg3oxWwSJ8RGVFt1WUsH9AAr57PzQd82G7bkf3LA gjL5YSRvwjFfW7c94sDCxz/A5SZWQnO4NbU32aj+2RC9elHBkFLYS50DcB1h434/fwPx /rK/CJKB9WMvWBQJxRFoLh4U1TxseqATO8jMZ3nFeFirua8/FGSI+Ege6H+rZXBXnA/E bcJQ== 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=4mJqdj86xm3xUIOubu5P2mGTEheYR4b5wpSLdczLpF4=; fh=w4WyT9xL7ErtT1TeetrD/m0Y0mAgjnERgxacGUpGjSg=; b=lnMQyN6K8IS7ZxfH67Q7fO3USYacXuNvs9hmbfHsm6YugUF9QLBDNuU2vsT0Mw5Fml GtYXlFLEI4aGlgQJwisn/wYiGU8QdeICrLfSZ+Q9STbsVbcJ6nWVBRJeTCJt4tjHw3uj h+ytn5wRCu4opRoVhyiY0nBXf9m/0tOw74YnYqrEEcK8799OuwgH2pxnTYkhrnuu0g/O 7FnNzZNSUSltbkvL/O7lGioYES50j5YziqdM545dLtodbZc7oA8Yu8rHt5sg4a0zbn1R eBD4J6hOWPQYLtP1JcYpRz8vCosRT7xFBVV3zF2hTgqnAw5Mile4ofYdUHODmb5ZIjxx yGbw==; 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: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5bd1a5f6356si4806701a12.447.2024.08.14.04.01.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2024 04:01:07 -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 44FDA889CA; Wed, 14 Aug 2024 13:00:51 +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 8329F87D2F; Wed, 14 Aug 2024 13:00:49 +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 57CB9889D9 for <u-boot@lists.denx.de>; Wed, 14 Aug 2024 13:00:47 +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 BCEB4DA7; Wed, 14 Aug 2024 04:01:12 -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 492003F58B; Wed, 14 Aug 2024 04:00:42 -0700 (PDT) From: Sughosh Ganu <sughosh.ganu@linaro.org> To: u-boot@lists.denx.de Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org>, Marek Vasut <marex@denx.de>, Tom Rini <trini@konsulko.com>, Mark Kettenis <mark.kettenis@xs4all.nl>, Michal Simek <michal.simek@amd.com>, Patrick DELAUNAY <patrick.delaunay@foss.st.com>, Patrice CHOTARD <patrice.chotard@foss.st.com>, Huan Wang <alison.wang@nxp.com>, Angelo Dureghello <angelo@kernel-space.org>, Daniel Schwierzeck <daniel.schwierzeck@gmail.com>, Thomas Chou <thomas@wytron.com.tw>, Rick Chen <rick@andestech.com>, Max Filippov <jcmvbkbc@gmail.com>, Sughosh Ganu <sughosh.ganu@linaro.org> Subject: [PATCH v2 03/32] lmb: remove the unused lmb_is_reserved() function Date: Wed, 14 Aug 2024 16:29:40 +0530 Message-Id: <20240814110009.45310-4-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240814110009.45310-1-sughosh.ganu@linaro.org> References: <20240814110009.45310-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
Make LMB memory map global and persistent
|
expand
|
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() */