git: 45e00486d695 - main - linuxkpi: Include <linux/notifier.h> and <linux/device.h> from <linux/pm_qos.h>
Jean-Sébastien Pédron <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.src |
|---|---|
| Message-ID | <6a80afd0.361f3.64203da9__34790.8955694706$1786818706$gmane$org@gitrepo.freebsd.org> |
The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=45e00486d6954e6f0781a201b851455395db5e08 commit 45e00486d6954e6f0781a201b851455395db5e08 Author: Jean-Sébastien Pédron <[email protected]> AuthorDate: 2026-08-15 18:26:39 +0000 Commit: Jean-Sébastien Pédron <[email protected]> CommitDate: 2026-08-15 18:26:39 +0000 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 --- sys/compat/linuxkpi/common/include/linux/pm_qos.h | 4 +++- sys/compat/linuxkpi/dummy/include/linux/plist.h | 0 2 files changed, 3 insertions(+), 1 deletion(-) 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