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

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
rGe7f9bdb4a6fb: Cirrus-CI: switch GCC job to GCC 12
Branches
Unknown
Tags
Unknown