Page MenuHomeFreeBSD

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

Authored by dumbbell on Dec 30 2022, 10:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 1 2024, 1:52 PM
Unknown Object (File)
Sep 21 2024, 12:32 PM
Unknown Object (File)
Sep 17 2024, 10:57 AM
Unknown Object (File)
Sep 16 2024, 12:47 PM
Unknown Object (File)
Sep 15 2024, 9:07 PM
Unknown Object (File)
Sep 11 2024, 4:40 AM
Unknown Object (File)
Sep 10 2024, 2:36 AM
Unknown Object (File)
Sep 5 2024, 9:26 PM

Details

Summary

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.

This is part of the update of the DRM drivers to Linux 5.13.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Re-upload patch with context.

Maybe it will be easier/less problematic to include sched/mm.h in the problematic file in drm-kmod.

In D37912#861928, @manu wrote:

Maybe it will be easier/less problematic to include sched/mm.h in the problematic file in drm-kmod.

In fact, I did the same in D38154 (merged). I admit I would prefer to keep the problem where it is, in linuxkpi :-)

This revision is now accepted and ready to land.Jan 26 2023, 12:14 PM