Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2023 11:56:06 GMT
From:      =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: c5c4d2f523fc - stable/13 - linuxkpi: Include `linux/sched/mm.h` from `linux/sched.h`
Message-ID:  <202302161156.31GBu6A9055619@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dumbbell (ports committer):

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

commit c5c4d2f523fcef1b82a43d4bb9334e26132ea871
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2022-12-30 09:52:54 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
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:  https://reviews.freebsd.org/D37912
    
    (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>
 
 #define	MAX_SCHEDULE_TIMEOUT	INT_MAX



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302161156.31GBu6A9055619>