HomeFreeBSD

linuxkpi: Include `linux/sched/mm.h` from `linux/sched.h`

Description

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)

Details

Provenance
dumbbellAuthored on Dec 30 2022, 9:52 AM
Reviewer
manu
Differential Revision
D37912: linuxkpi: Include `linux/sched/mm.h` from `linux/sched.h`
Parents
rGf583b92a8c9d: lindebugfs: Add `debugfs_create_file_size()`
Branches
Unknown
Tags
Unknown