Message ID | 20240826115940.3233167-2-sughosh.ganu@linaro.org |
---|---|
State | Accepted |
Commit | c4eced2ec0d566e69281a2c20b0b43a141574318 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:e044:0:b0:367:895a:4699 with SMTP id w4csp1476032wrh; Mon, 26 Aug 2024 05:00:22 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW+QkG3qtGBvljipxeIr7Lg7HOr8MQ66fe2pDnC3Zyji+6GZNU3cTnZhhl7pQksguSbshUWDg==@linaro.org X-Google-Smtp-Source: AGHT+IGeNqa6kor34MkXP6uPde9TLGwSPXMS7xA856pyDMCk3dDI++CXWCgelefT1hFgPKMp0yTD X-Received: by 2002:a05:6000:182:b0:371:86de:8e8b with SMTP id ffacd0b85a97d-373118d2bb2mr6679162f8f.41.1724673621976; Mon, 26 Aug 2024 05:00:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724673621; cv=none; d=google.com; s=arc-20240605; b=TW0l5NarwNj5ipJpEYtoybp6wz3S9z6xFUzH/4r9Vi7MXtc3TyJbbGJyxBiw3Wz6jW C7PNTGIFrJW9Y8vHLFcWAPWx3m31obaJew9mV7T8P+mjOis8DsXuPUO1v3qf4RDq54qr P0n23JN6fymtDig5P0qrQ3K58RBlDxDgPqxqwbzDIYVaKl9TnXamTiALqqEDUgXanEQv 9KDQ2uHrSEUteNzfUxqEQi7I1SmgaCDfqxFpOzP94VfM7eNPrXdKDm9In54TMjdiD67I eFb94UPoO6Nb/JIQqCwLhTrmcYADNzv9shC7Kq8Q1sjCPkGRfIorvipJdCfCwLGHX4Xk yD5g== 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=gSl9gjtV+F4jY0yIJ+IdcMWpokvmBDLDCN8y6uQ/eyU=; fh=8IbOOFAUJYCfGYrzM0jWqtoOP7AaZuPOmdHZ5mvNk1Q=; b=KCZRMn/YyKDutm4sUwG5Jb8EJq9mxwJtlCsVjGRbwTsLv0PTMkmtp3VrEVWgtjKshd GL+fPSar1QwcJbzPL39fGrm1U3QWb6/GNkhj1HQia3AeMa5zTI9vEV6tiDcc4t8/qsd1 M/V/Eaup47emGj6/K4u6LQfoGMcUeSLtNmdcVtSfaXDPWK+BzihR1Nm34DWytotmnik/ 8YGTFZNuYbtHPp/BbIHZEdUXhuswrFZGaj3hqVLOeP4sFglM73o4AEwbuUiiScNASCNQ EC1dkQLm7vDX/UlK1DlvJeFug+84Jjqap0I7u+PBEz1F5a4d5lq8kX6QZhvmwfpe0mzD C/Pw==; 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-42ac518ac73si46282545e9.234.2024.08.26.05.00.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2024 05:00:21 -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 C27BC8641A; Mon, 26 Aug 2024 14:00:12 +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 2A1BF82BA7; Mon, 26 Aug 2024 14:00:12 +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 32DF18641A for <u-boot@lists.denx.de>; Mon, 26 Aug 2024 14:00:10 +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 CABB2DA7; Mon, 26 Aug 2024 05:00:35 -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 E757A3F762; Mon, 26 Aug 2024 05:00:05 -0700 (PDT) From: Sughosh Ganu <sughosh.ganu@linaro.org> To: u-boot@lists.denx.de Cc: Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>, Ilias Apalodimas <ilias.apalodimas@linaro.org>, Heinrich Schuchardt <xypron.glpk@gmx.de>, 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>, =?utf-8?q?Marek_Beh=C3=BAn?= <kabel@kernel.org>, Sughosh Ganu <sughosh.ganu@linaro.org> Subject: [PATCH v4 01/27] alist: add a helper to check if the list is full Date: Mon, 26 Aug 2024 17:29:14 +0530 Message-Id: <20240826115940.3233167-2-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 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/alist.h b/include/alist.h index 586a1efa5c..68d268f01a 100644 --- a/include/alist.h +++ b/include/alist.h @@ -82,6 +82,17 @@ static inline bool alist_err(struct alist *lst) return lst->flags & ALISTF_FAIL; } +/** + * alist_full() - Check if the alist is full + * + * @lst: List to check + * Return: true if full, false otherwise + */ +static inline bool alist_full(struct alist *lst) +{ + return lst->count == lst->alloc; +} + /** * alist_get_ptr() - Get the value of a pointer *