]> git.dujemihanovic.xyz Git - u-boot.git/commit
linux: list: add a function to count list nodes
authorSughosh Ganu <sughosh.ganu@linaro.org>
Tue, 30 Jul 2024 11:11:28 +0000 (16:41 +0530)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 31 Jul 2024 07:53:01 +0000 (09:53 +0200)
commitc809b3b641b34125aa6345b0849c7a491bd18c96
treec5009a6c0ea751c2ecdc4e415f8c9ee31fe51a67
parent48940c6429c3f77c04b1844e0cfed2f884bf045b
linux: list: add a function to count list nodes

Add a function to count the nodes of a list.

Taken from linux 6.11-rc1 tag commit 8400291e289e.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/linux/list.h