linuxkpi: Include <linux/page-flags.h> from <linux/mm.h>
This reproduces the same namespace pollution as Linux.
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D58761
linuxkpi: Create empty <linux/sprintf.h>
The DRM drivers generic code started to include this header in Linux
6.15, though nothing from it is used apparently.
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D58253
linuxkpi: Fix return type of `kobject_uevent_env()`
The function returns an int on Linux. Let's return 0 (success).
Sponsored by: The FreeBSD Foundation
Differential Revision: reviews.freebsd.org/D58252
linuxkpi: Define `PCI_CLASS_BRIDGE_HOST`
The i915 DRM driver started to use it in Linux 6.15.
Sponsored by: The FreeBSD Foundation
Differential Revision: reviews.freebsd.org/D58250
linuxkpi: Add `kunit_fail_current_test()`
This is part of some unit testing framework.
The DRM drivers generic code started to use it in Linux 6.15.
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D58249
linuxkpi: Define `__GFP_HIGH` in <linux/gfp.h>
The DRM drivers TTM memory manager started to use it in Linux 6.15.
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D58760
linuxkpi: Include <linux/notifier.h> and <linux/device.h> from <linux/pm_qos.h>
The i915 DRM driver started to depend on the `bool` type implicitly
imported through these headers in Linux 6.13.
The previous fix committed in 67df313015906d84d90df8e37795885e81cf8da5
did not reproduce the same includes as Linux. This may have led to other
missing implicit definitions later.
To prevent another missing include in the future, we already include
<linux/plist.h> from <linux/pm_qos.h> and add it as a dummy header. This
will be easier to add a proper implementation in the future once we
actually need it.
Reviewed by: bz, emaste
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57570