Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD872606A33B for ; Mon, 30 Nov 2026 16:33:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=uSNIzX6U; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=urdAc+ee Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id DE14B406A4; Mon, 30 Nov 2026 16:33:49 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 0LLli-LVibmY; Mon, 30 Nov 2026 16:33:48 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org AA8C5406A8 Authentication-Results: smtp4.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796056428; b=jUTE1zRGsLcKQ7QBvsUQNQjJFgwfyK8yuTmTqmtRDSxw2tob6cgmeG0Fhq9p3WawMIFJ lL4xHNFnPAKubDZkbWeZEPsnJgaFEALcARhjJe13TRDwPPbNySu7KZxLY/M4rVjDUwYNX nTj7fvNQR9jh/z4i+rX4j1E0N1hO4EyT+FJS81dvZVnnxYm09vowh5JgFV3oSz0GObjv6 xFspwrVGbBBgyaZh2QS2TziSLVCQ7t3prJ6Lvgpu0i2CWV4/1WXu2rRoLGfmrwIdvUfzj fVeDG6b2JhepV2yGPtmDDeUZZg9P+kqO4M6Kb6vslzyMu5HeNVJm4HWYA3m4aj1UPsg== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796056428; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: Received:Received:DKIM-Signature:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Last-TLS-Session-Version: X-Mailman-Approved-At:X-BeenThere:X-Mailman-Version:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help: List-Subscribe:Errors-To; bh=76mkZSMXU0q6EYRCUb/X7IKs2LR2b77cjHsIBaaLlQI=; b=tU6C84P71M7IlUHS/12Bj/ukBT8DsbG6MNr/wv0NOlG+8wFU7wUEKh9jJVbXBHjLIE7Z yMnQhQMgNTKWhvr2JMho3BN0yNjUAIK1N7s+0FIizzlz8SMxo6YsOI1LSk8bdLsD8CzQY 7oO2GOP8bUw9lt4WOWY8oiZuJ183kb2rpjBYu+wO6UieOPem8P1F/Lf5pZ7lfaJ6NQusZ F8GcdawtFADILLgxuRg+J4gsecI3BeYpFJ4WNZN5VsbAZn1J6X4ZH3Joqh4vzPefqRpcV am4B2buTeK1jEbmcK/AoTELtV/IQ0aMC+fEtd9ZXOKcTjNOUlQV/KG0cMVq8JkJZHLw== ARC-Authentication-Results: i=1; smtp4.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1796056428; bh=76mkZSMXU0q6EYRCUb/X7IKs2LR2b77cjHsIBaaLlQI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=uSNIzX6UcOQBL05hAP0Sxt4KZ9VnhMrbHxYmxnkfxuJxbOBQ1jAYXysvSb3kvDsW9 hPMN4GAJHnMytMrSD5BUq5VETVMz3J+QOE94CJ9qZWqnmrKQG8b6PTRfHDd43elKvM YwjUWkv3Dk+rsnfTlwWCRh94li4EvkgH47H5kXAehhaBjw1xyGbJbqtt9UArwg6eQn iPFHfjtGtqbMveq8MkboZSbQfavywJsozzavEfnQXRG0d14Ouk3Mn82jGidIDZXUe+ fQbTCFd7lpqpppQsrJVU/qGgeqMUhoMfxY6bdWDhKmUu5VBS9nDc0hZrNU9/pUhTQ9 R4Tg0ImF0qrAw== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id AA8C5406A8; Mon, 30 Nov 2026 16:33:48 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists1.osuosl.org (Postfix) with ESMTP id 1E6B5373 for ; Mon, 30 Nov 2026 14:59:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 1099E60745 for ; Mon, 30 Nov 2026 14:59:42 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id bQ3fp9ofSdyA for ; Mon, 30 Nov 2026 14:59:41 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org A900160721 Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip=185.171.202.116 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.171.202.116; helo=smtpout-04.galae.net; envelope-from=romain.gantois@bootlin.com; receiver= Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=urdAc+ee Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) by smtp3.osuosl.org (Postfix) with ESMTPS id A900160721 for ; Mon, 30 Nov 2026 14:59:39 +0000 (UTC) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 65707C2AC69; Mon, 30 Nov 2026 14:59:47 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 47B776007C; Mon, 30 Nov 2026 14:59:37 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 1244D11EA0475; Mon, 30 Nov 2026 15:59:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796050774; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=76mkZSMXU0q6EYRCUb/X7IKs2LR2b77cjHsIBaaLlQI=; b=urdAc+eexkeeqLFCy65s6GUTGhNSJAooEFXB3I2Qf2+n1RylZN6zI1UPwnZPrKOkt5sFpL ewUEwgl3I2nnLHXMzG70MNGmIa4WLJ17GVGqbO9pbAlECl9THXIi2T75Lw3Y00n8su/B6B h66tkrB0wEEa9IwmMAWOmPX01Wz00aSI9MG7SYJOja2IFuPUtGlXhq2KQODNsiHbzd6jqN Qb80dcV25n9B2vMQCCpV/DqE3Rc89BlvjCDyzg5/ndyjO3FaNDTSqAGz/Iv3NIPnutxG9R rXlvcjM30/3sMRMmBA+ymKprTWNmf8ggRiCXaGHp4klcQkAE2IcSNJ4NRTmcQg== From: Romain Gantois Date: Mon, 30 Nov 2026 15:59:17 +0100 Subject: [PATCH v4 1/2] linux/list.h: Add list_is_first() X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261130-rzn1-usbf-v4-1-e88a2b1f0dfe@bootlin.com> References: <20261130-rzn1-usbf-v4-0-e88a2b1f0dfe@bootlin.com> In-Reply-To: <20261130-rzn1-usbf-v4-0-e88a2b1f0dfe@bootlin.com> To: u-boot@lists.u-boot-project.org, u-boot@lists.u-boot-project.org Cc: Thomas Petazzoni , Tom Rini , Mattijs Korpershoek , Nobuhiro Iwamatsu , Quentin Schulz , Kever Yang , Peter Robinson , Jonas Karlman , George Chan , Balaji Selvanathan , Herve Codina , Neil Armstrong , Ralph Siemsen , Simon Glass , Peng Fan , Kory Maincent , Ilias Apalodimas , Kuan-Wei Chiu , Raymond Mao , Stefan Roese , Philip Molloy , Jerome Forissier , David Lechner , Julien Stephan , Romain Gantois , Johan Jonker , Bastien Curutchet , Lukasz Majewski , Marek Vasut , Michal Simek , Carlo Caione , Marek Vasut X-Mailer: b4 0.15.2 X-Last-TLS-Session-Version: TLSv1.3 X-Mailman-Approved-At: Mon, 30 Nov 2026 16:33:46 +0000 X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-18.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Include the list_is_first() kernel function, which will be used by the Renesas USBF driver. Reviewed-by: Simon Glass Reviewed-by: Herve Codina Reviewed-by: Mattijs Korpershoek Signed-off-by: Romain Gantois --- include/linux/list.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/linux/list.h b/include/linux/list.h index 3dc38279716..dc788b1cb69 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -153,6 +153,16 @@ static inline void list_move_tail(struct list_head *list, list_add_tail(list, head); } +/** + * list_is_first -- tests whether @list is the first entry in list @head + * @list: the entry to test + * @head: the head of the list + */ +static inline int list_is_first(const struct list_head *list, const struct list_head *head) +{ + return list->prev == head; +} + /** * list_is_last - tests whether @list is the last entry in list @head * @list: the entry to test -- 2.56.1