git: c5c4d2f523fc - stable/13 - linuxkpi: Include `linux/sched/mm.h` from `linux/sched.h`

From: Jean-Sébastien Pédron <>
Date: Thu, 16 Feb 2023 11:56:06 UTC
The branch stable/13 has been updated by dumbbell (ports committer):


commit c5c4d2f523fcef1b82a43d4bb9334e26132ea871
Author:     Jean-Sébastien Pédron <>
AuthorDate: 2022-12-30 09:52:54 +0000
Commit:     Jean-Sébastien Pédron <>
CommitDate: 2023-02-16 11:55:16 +0000

    linuxkpi: Include `linux/sched/mm.h` from `linux/sched.h`
    At least one file in the DRM drivers benefits from some namespace
    pollution to use `fs_reclaim_acquire()`/`fs_reclaim_release()`. They are
    defined in `linux/sched/mm.h` and this header must be included
    indirectly into the DRM drivers' source file.
    I couldn't find how it was included. Therefore this commit includes
    `linux/sched/mm.h` from `linux/sched.h`. This is not the case in Linux
    but fixes the issue with the DRM drivers.
    Reviewed by:    manu
    Approved by:    manu
    Differential Revision:
    (cherry picked from commit 8c46bd9f86911c11c42f780fb233db0505ea94ee)
 sys/compat/linuxkpi/common/include/linux/sched.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/sched.h b/sys/compat/linuxkpi/common/include/linux/sched.h
index 4d1e669dd32e..6e0a01aa8466 100644
--- a/sys/compat/linuxkpi/common/include/linux/sched.h
+++ b/sys/compat/linuxkpi/common/include/linux/sched.h
@@ -50,6 +50,8 @@
 #include <linux/spinlock.h>
 #include <linux/time.h>
+#include <linux/sched/mm.h>
 #include <asm/atomic.h>