Message ID | 20240724060224.3071065-22-sughosh.ganu@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:f288:0:b0:367:895a:4699 with SMTP id k8csp2618989wro; Tue, 23 Jul 2024 23:08:39 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXbaUXsHJf003CbY8oQrgPEweMRsiMHnx5Fb2B8IT6ZnOLnOthAAxwHaFvFR7EFnqrbAY5kMnX0jzlQIkQQrj17 X-Google-Smtp-Source: AGHT+IEuQGkB28kxMTj0pCgnq1xBGw0nZ8JueKkjH+orrZNHjVwaef35KMYGMl2VlfxpIgk5og7k X-Received: by 2002:a05:600c:4586:b0:426:6f0e:a60 with SMTP id 5b1f17b1804b1-427f955c2d4mr6769865e9.17.1721801319517; Tue, 23 Jul 2024 23:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721801319; cv=none; d=google.com; s=arc-20160816; b=X6hig6CuZJ94SFhvmyMzJRvTJ4olIbL+w5Rzn3JahuJBBv9mxiQWmLITXrvzs81TCG R+tNZcjXytF7Ot4TBz2JnINDORaV0/5UhYHAdvn7gZ4K5qY2Shp6yRebuXsgI+AYL6Om j88/qTWFfa8IldZM6l2zB7U6A7Rc837Bk/BwbIu+uI4pDQjUK3hj8CF6ggQvqpjEHj9K xn4rjRqd5VjyBu+kFqoiX5y2e5c/i9gSAX3qvkE5Z13Kgf5Vk60l9yr2YDQye6CW6ywS BRXhlt07i+KDJ7pxiy11peJn75sxQ8+hh1ismsX33cThbEu5HP2mdFifcxOv50Q55J97 6cmA== 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=50j1ZUzZu65xMA6y7Q2wqh5fUiLZwHe316q3Dxd0ZGY=; fh=eimiGswTlodK8yi2DcDfSicmKwvq5bxKQKpD+SkkTNY=; b=yP5Uq2ioF90Q3rX78tm4Q/4zMK1+01LvCeaODlse2j5HfuWvT5SgwAyEKhVxbmtLne OT7h4WGgklbA2uN9YA+qrvcVOfUHfqIELPgTthyUTRYncp0CzccMNhixjl+FVWtT8x18 s6VoHrjAax/e6iZ7WougtGfPs2CTDXTeNV7gaXHn2+I3fhZKo4aGIqygNcWRmun+tKUL A2N2Y/btbN/vMQqsntJwzdYct57iVgzLjEXuCifML+WNEHoUuQC+vk9IH3eX1y/yjg3s RbDUNVO5/8E921PHBQTVPSaZpjnh1iMh2aNweriQ+TBw5syluT1RYviv7qLSIO4T+XCT /tpw==; 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 5b1f17b1804b1-427f93ded92si3593385e9.128.2024.07.23.23.08.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jul 2024 23:08:39 -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 8E64988908; Wed, 24 Jul 2024 08:04:42 +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 83ABE887CE; Wed, 24 Jul 2024 08:04:37 +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 3FEFB88847 for <u-boot@lists.denx.de>; Wed, 24 Jul 2024 08:04:32 +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 34917106F; Tue, 23 Jul 2024 23:04:57 -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 1FE9A3F766; Tue, 23 Jul 2024 23:04:26 -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>, 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 21/40] lmb: bootm: remove superfluous lmb stub functions Date: Wed, 24 Jul 2024 11:32:05 +0530 Message-Id: <20240724060224.3071065-22-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 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
|
On Wed, 24 Jul 2024 at 00:04, Sughosh Ganu <sughosh.ganu@linaro.org> wrote: > > Remove a couple of superfluous LMB stub functions, and instead put a > check for calling the lmb_reserve() function. > > Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> > --- > Changes since rfc: New patch > > boot/bootm.c | 9 +++------ > 1 file changed, 3 insertions(+), 6 deletions(-) Reviewed-by: Simon Glass <sjg@chromium.org>
diff --git a/boot/bootm.c b/boot/bootm.c index d44fd2ed87..2689f36977 100644 --- a/boot/bootm.c +++ b/boot/bootm.c @@ -239,11 +239,6 @@ static int boot_get_kernel(const char *addr_fit, struct bootm_headers *images, return 0; } -#if !CONFIG_IS_ENABLED(LMB) -#define lmb_reserve(base, size) -static inline void boot_start_lmb(void) { } -#endif - static int bootm_start(void) { memset((void *)&images, 0, sizeof(images)); @@ -700,7 +695,9 @@ static int bootm_load_os(struct bootm_headers *images, int boot_progress) images->os.end = relocated_addr + image_size; } - lmb_reserve(images->os.load, (load_end - images->os.load)); + if (CONFIG_IS_ENABLED(LMB)) + lmb_reserve(images->os.load, (load_end - images->os.load)); + return 0; }
Remove a couple of superfluous LMB stub functions, and instead put a check for calling the lmb_reserve() function. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> --- Changes since rfc: New patch boot/bootm.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)