From patchwork Thu Jul 4 07:35:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 809913 Delivered-To: patch@linaro.org Received: by 2002:adf:a199:0:b0:367:895a:4699 with SMTP id u25csp1042236wru; Thu, 4 Jul 2024 00:37:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXGXMxQnFM63z0/9sVf5rB8FYysYUEZvtN+tCvO5LRgw3FHh/ev6XK/+j8lbOxKrWE1Yh4x2atVZpvxIaja73Qv X-Google-Smtp-Source: AGHT+IFGpWek0JyrtIPazgX0utmX1Wks9QS1HRFiz3JT2OqumqU8ycoP54RYvkgOWcz4qV0qUgup X-Received: by 2002:a17:907:969e:b0:a75:110d:fa53 with SMTP id a640c23a62f3a-a77ba70baf4mr69207266b.49.1720078635979; Thu, 04 Jul 2024 00:37:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720078635; cv=none; d=google.com; s=arc-20160816; b=VLd+nWyDZ4RAP1jIIopmrOqyX4GxORo5rnyAR/9AZAL6vSBDFzdi7JwglDUEMKVY4T j6n9MB6rZyxETuCN/NnAZQQnGnGsKduYBrnKV0quzoaux2ECJmkZfAWdtLDroPBusFNr DfSPyT3oOOeVGAJnLmgmPmc8u+15eRZd+MblnyFJsPtT9aNZS5nQ2nTrCGLt9zDav4ID naqDNHtEcmlj8BY/no+V0neUWAo9bJg2JoyO7bn4dlu3xS3dsbIxSAIbfjj9ZwSTQAHt ResFHHHhK2HANm5Yl04WjauUjmFut5O/5vOcKE/EUHp/YyPLymZj3wg6YBi3P5Ivyzcm ZdvA== 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=aD06D89RsssEnRe+AXF3pKAHlZUUhybGCZRYCUoywy0=; fh=ez1zzjhC0XWyqTp7tWutqrA/nFdALDnQKrnQnXYhk5Q=; b=ye5WN28zJ80aYjc5Msv80sKJiLM/XtNQJEadETXemR6++U7xJxD1Wqrv+Q9L/6dDU8 OAYtQVyeHmaE0PWtWjEnCvv/QzHn4m5NtYqXcO4KPudpTQgr1zEWEpk0uAXYOd9PUDdN 81OsEFtez3WFI4Cnk+yvCaMTf7EGzzXIG9kiuN3EgYE+vPMoWY5XPh+GBlkN2TO0znXj k4BMMHXeQHkrsBna4TjiliAf8F7bt8y/aEwB+QerhZKNQs+ml3jNuY7/73RnZInoZ7mN AmRc7TsXikLheVuH+7hjg/rxRiB0fJNmleJRWuHXV0/gvcZNjVVSoLE3ArfNFusN7+EM CE9w==; 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 a640c23a62f3a-a72ab0759d6si627411866b.682.2024.07.04.00.37.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 00:37:15 -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 7DFA1888A7; Thu, 4 Jul 2024 09:36:29 +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 9C2AA888AA; Thu, 4 Jul 2024 09:36:28 +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 A8625888B8 for ; Thu, 4 Jul 2024 09:36:26 +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 34CEA367; Thu, 4 Jul 2024 00:36:51 -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 10C883F762; Thu, 4 Jul 2024 00:36:22 -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 , Michal Simek , Sughosh Ganu Subject: [RFC PATCH v2 06/48] alist: add a function declaration for alist_expand_by() Date: Thu, 4 Jul 2024 13:05:02 +0530 Message-Id: <20240704073544.670249-7-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240704073544.670249-1-sughosh.ganu@linaro.org> References: <20240704073544.670249-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 alist_expand_by() function is a global function. Add a declaration for the function in the header. Signed-off-by: Sughosh Ganu --- Changes since V1: New patch include/alist.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/alist.h b/include/alist.h index bab146c35d..d7cc27c14c 100644 --- a/include/alist.h +++ b/include/alist.h @@ -224,4 +224,13 @@ void *alist_uninit_move_ptr(struct alist *alist, size_t *countp); */ void alist_uninit(struct alist *alist); +/** + * alist_expand_by() - Expand a list by the given amount + * + * @lst: alist to expand + * @inc_by: Amount to expand by + * Return: true if OK, false if out of memory + */ +bool alist_expand_by(struct alist *lst, uint inc_by); + #endif /* __ALIST_H */