The branch main has been updated by dumbbell:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=c903f3756a2877d07f5ef07bcd463a9b7ddc975a

commit c903f3756a2877d07f5ef07bcd463a9b7ddc975a
Author:     Jean-Sébastien Pédron <dumbb...@freebsd.org>
AuthorDate: 2025-06-20 16:51:10 +0000
Commit:     Jean-Sébastien Pédron <dumbb...@freebsd.org>
CommitDate: 2025-08-09 12:26:23 +0000

    linuxkpi: Add `ida_alloc_range()`
    
    The amdgpu DRM driver from Linux 6.9 started to use this function.
    
    Reviewed by:    manu
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D50988
---
 sys/compat/linuxkpi/common/include/linux/idr.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/idr.h 
b/sys/compat/linuxkpi/common/include/linux/idr.h
index 535d8ce07fb4..06850c94a5e9 100644
--- a/sys/compat/linuxkpi/common/include/linux/idr.h
+++ b/sys/compat/linuxkpi/common/include/linux/idr.h
@@ -147,6 +147,13 @@ ida_alloc_max(struct ida *ida, unsigned int max, gfp_t gfp)
        return (ida_simple_get(ida, 0, max, gfp));
 }
 
+static inline int
+ida_alloc_range(struct ida *ida, unsigned int min, unsigned int max, gfp_t gfp)
+{
+
+       return (ida_simple_get(ida, min, max, gfp));
+}
+
 static inline int ida_alloc(struct ida *ida, gfp_t gfp)
 {
        return (ida_alloc_max(ida, ~0u, gfp));

Reply via email to