diff options
author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2022-11-11 19:59:40 +0000 |
---|---|---|
committer | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2022-11-11 19:59:40 +0000 |
commit | 42bb5861162f071708406a8f70bcc6da5b832dc3 (patch) | |
tree | c368b5c94988307128e42c6636e36492a2c5dc62 /sys/compat/linuxkpi/common/include/linux | |
parent | 24c7853f39d0f68d92f97880df2428f9e78e165d (diff) | |
download | src-42bb5861162f071708406a8f70bcc6da5b832dc3.tar.gz src-42bb5861162f071708406a8f70bcc6da5b832dc3.zip |
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
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux')
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/mutex.h | 2 |
1 files changed, 2 insertions, 0 deletions
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> |