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
This commit is contained in:
Jean-Sébastien Pédron 2022-12-30 10:52:54 +01:00
parent e7f9bdb4a6
commit 8c46bd9f86
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC

View File

@ -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