git: 42bb5861162f - main - linuxkpi: Include <linux/list.h> and <linux/kernel.h> from <linux/mutex.h>
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 11 Nov 2022 20:05:05 UTC
The branch main has been updated by dumbbell (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=42bb5861162f071708406a8f70bcc6da5b832dc3 commit 42bb5861162f071708406a8f70bcc6da5b832dc3 Author: Jean-Sébastien Pédron <dumbbell@FreeBSD.org> AuthorDate: 2022-11-11 19:59:40 +0000 Commit: Jean-Sébastien Pédron <dumbbell@FreeBSD.org> CommitDate: 2022-11-11 19:59:40 +0000 linuxkpi: Include <linux/list.h> and <linux/kernel.h> from <linux/mutex.h> They are not really used in this header. However they are included in Linux and at least the DRM drivers unfortunately rely on this namespace pollution. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D37365 --- sys/compat/linuxkpi/common/include/linux/mutex.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/mutex.h b/sys/compat/linuxkpi/common/include/linux/mutex.h index 7af95e9d2dc5..3490c6e59a70 100644 --- a/sys/compat/linuxkpi/common/include/linux/mutex.h +++ b/sys/compat/linuxkpi/common/include/linux/mutex.h @@ -36,6 +36,8 @@ #include <sys/lock.h> #include <sys/sx.h> +#include <linux/kernel.h> +#include <linux/list.h> #include <linux/spinlock.h> #include <asm/atomic.h>