diff options
| author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2026-08-15 18:26:39 +0000 |
|---|---|---|
| committer | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2026-08-15 18:26:39 +0000 |
| commit | 45e00486d6954e6f0781a201b851455395db5e08 (patch) | |
| tree | 63c71411949320a551536f553f17f1e490d27118 | |
| parent | 087d722624c7293c2cbc5ab2bc1e20b6a68aae96 (diff) | |
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
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/pm_qos.h | 4 | ||||
| -rw-r--r-- | sys/compat/linuxkpi/dummy/include/linux/plist.h | 0 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/pm_qos.h b/sys/compat/linuxkpi/common/include/linux/pm_qos.h index 97d16369a704..15799053f30f 100644 --- a/sys/compat/linuxkpi/common/include/linux/pm_qos.h +++ b/sys/compat/linuxkpi/common/include/linux/pm_qos.h @@ -28,7 +28,9 @@ #ifndef _LINUXKPI_LINUX_PM_QOS_H #define _LINUXKPI_LINUX_PM_QOS_H -#include <linux/types.h> +#include <linux/plist.h> +#include <linux/notifier.h> +#include <linux/device.h> #define PM_QOS_DEFAULT_VALUE (-1) diff --git a/sys/compat/linuxkpi/dummy/include/linux/plist.h b/sys/compat/linuxkpi/dummy/include/linux/plist.h new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/sys/compat/linuxkpi/dummy/include/linux/plist.h |
