Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2023 08:54:07 GMT
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 98a8abd1118c - stable/13 - linuxkpi: Include <linux/list.h> and <linux/kernel.h> from <linux/mutex.h>
Message-ID:  <202301240854.30O8s7vJ036075@gitrepo.freebsd.org>

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



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