git: f07f18ec2c9a - stable/14 - linuxkpi: Include <linux/rbtree.h> from <linux/hrtimer.h> and <linux/mm_types.h>

From: Vladimir Kondratyev <wulf_at_FreeBSD.org>
Date: Sat, 17 Feb 2024 21:32:35 UTC
The branch stable/14 has been updated by wulf:

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

commit f07f18ec2c9abb3fabfe9f6f1ccbdfc25475167b
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2023-11-29 18:38:54 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2024-02-17 20:58:35 +0000

    linuxkpi: Include <linux/rbtree.h> from <linux/hrtimer.h> and <linux/mm_types.h>
    
    [Why]
    Some files in DRM rely on this indirect include to use `struct rb_*`.
    
    Reviewed by:    manu
    Approved by:    manu
    Differential Revision:  https://reviews.freebsd.org/D42835
    
    (cherry picked from commit b292c995cfa88cc73d5d77b6b94ae1b78296793f)
---
 sys/compat/linuxkpi/common/include/linux/hrtimer.h  | 1 +
 sys/compat/linuxkpi/common/include/linux/mm_types.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/hrtimer.h b/sys/compat/linuxkpi/common/include/linux/hrtimer.h
index 38fc3ce4dc6a..88f9487d0b85 100644
--- a/sys/compat/linuxkpi/common/include/linux/hrtimer.h
+++ b/sys/compat/linuxkpi/common/include/linux/hrtimer.h
@@ -30,6 +30,7 @@
 #include <sys/_mutex.h>
 
 #include <linux/ktime.h>
+#include <linux/rbtree.h>
 #include <linux/timer.h>
 
 enum hrtimer_mode {
diff --git a/sys/compat/linuxkpi/common/include/linux/mm_types.h b/sys/compat/linuxkpi/common/include/linux/mm_types.h
index 446231bd691f..c08e2511725b 100644
--- a/sys/compat/linuxkpi/common/include/linux/mm_types.h
+++ b/sys/compat/linuxkpi/common/include/linux/mm_types.h
@@ -29,6 +29,7 @@
 
 #include <linux/types.h>
 #include <linux/page.h>
+#include <linux/rbtree.h>
 #include <linux/rwsem.h>
 
 #include <asm/atomic.h>