linuxkpi: Add radix_tree_deref_slot()

We don't do reference counting, we only dereference the pointer and
retunr the value.

The amdgpu DRM driver started to use it in Linux 6.10.

Reviewed by:	bz
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54502
This commit is contained in:
Jean-Sébastien Pédron 2025-09-07 15:45:10 +02:00
parent d448578b44
commit 4c89b33380
No known key found for this signature in database
GPG key ID: 39E99761A5FD94CC

View file

@ -68,6 +68,12 @@ struct radix_tree_iter {
for ((iter)->index = (start); \
radix_tree_iter_find(root, iter, &(slot)); (iter)->index++)
static inline void *
radix_tree_deref_slot(void **slot)
{
return (*slot);
}
static inline int
radix_tree_exception(void *arg)
{