git: 98a8abd1118c - stable/13 - linuxkpi: Include <linux/list.h> and <linux/kernel.h> from <linux/mutex.h>

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Tue, 24 Jan 2023 08:54:07 UTC
The branch stable/13 has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=98a8abd1118c33b9c9d7afe042f536f38db2221c

commit 98a8abd1118c33b9c9d7afe042f536f38db2221c
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2022-11-11 19:59:40 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2023-01-24 09:08:00 +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
    
    (cherry picked from commit 42bb5861162f071708406a8f70bcc6da5b832dc3)
---
 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>