Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Nov 2022 20:05:05 GMT
From:      =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 42bb5861162f - main - linuxkpi: Include <linux/list.h> and <linux/kernel.h> from <linux/mutex.h>
Message-ID:  <202211112005.2ABK55CG033779@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211112005.2ABK55CG033779>