]> Gentwo Git Trees - linux/.git/commit
list: add list_last_entry_or_null()
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Fri, 1 Aug 2025 17:05:23 +0000 (19:05 +0200)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Tue, 2 Sep 2025 09:38:29 +0000 (11:38 +0200)
commitcb86408b1fc2e3f6fe45ebe8509a5404060e01e0
tree7adb860b00c73ab115c9e41d90b7dde092124682
parent2a06126d1624f0661fac0833e7ee1dbdc636154e
list: add list_last_entry_or_null()

Add an equivalent of list_first_entry_or_null() to obtain the last element
of a list.

Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250801-drm-bridge-alloc-getput-drm_bridge_get_next_bridge-v2-1-888912b0be13@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
include/linux/list.h