aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2022-11-11 19:59:40 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2022-11-11 19:59:40 +0000
commit42bb5861162f071708406a8f70bcc6da5b832dc3 (patch)
treec368b5c94988307128e42c6636e36492a2c5dc62 /sys/compat/linuxkpi/common/include/linux
parent24c7853f39d0f68d92f97880df2428f9e78e165d (diff)
downloadsrc-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.h2
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>