Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/freebsd-src.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2022-11-11 22:59:40 +0300
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2022-11-11 22:59:40 +0300
commit42bb5861162f071708406a8f70bcc6da5b832dc3 (patch)
treec368b5c94988307128e42c6636e36492a2c5dc62
parent24c7853f39d0f68d92f97880df2428f9e78e165d (diff)
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
-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>