Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jan 2023 21:27:47 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-main@FreeBSD.org
Subject:   git: 8c46bd9f8691 - main - linuxkpi: Include `linux/sched/mm.h` from `linux/sched.h`
Message-ID:  <202301272127.30RLRlZi000478@gitrepo.freebsd.org>

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

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

commit 8c46bd9f86911c11c42f780fb233db0505ea94ee
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-01-27 20:53:44 +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
---
 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 24014e71cda6..fee27ef7c9c0 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?202301272127.30RLRlZi000478>