Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jan 2022 19:36:28 GMT
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: df10d8c66781 - stable/13 - LinuxKPI: Add some typical header pollution
Message-ID:  <202201221936.20MJaSu7000170@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by wulf:

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

commit df10d8c66781b4190fb1f03faafa247b1576fb8e
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2021-12-04 10:00:53 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2022-01-22 19:34:36 +0000

    LinuxKPI: Add some typical header pollution
    
    To reduce amount of drm-kmod patching
    
    MFC after:      1 week
    Reviewed by:    hselasky, manu
    Differential Revision:  https://reviews.freebsd.org/D33297
    
    (cherry picked from commit f1a7639a165d2ef945c0fdac5862167da671c7c4)
---
 sys/compat/linuxkpi/common/include/linux/device.h   | 3 +++
 sys/compat/linuxkpi/common/include/linux/fs.h       | 2 ++
 sys/compat/linuxkpi/common/include/linux/lockdep.h  | 1 +
 sys/compat/linuxkpi/common/include/linux/slab.h     | 1 +
 sys/compat/linuxkpi/common/include/linux/spinlock.h | 1 +
 5 files changed, 8 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/device.h b/sys/compat/linuxkpi/common/include/linux/device.h
index 04217fa8b35f..83d007b2988d 100644
--- a/sys/compat/linuxkpi/common/include/linux/device.h
+++ b/sys/compat/linuxkpi/common/include/linux/device.h
@@ -42,6 +42,9 @@
 #include <linux/workqueue.h>
 #include <linux/kdev_t.h>
 #include <linux/backlight.h>
+#include <linux/pm.h>
+#include <linux/idr.h>
+#include <linux/ratelimit.h>	/* via linux/dev_printk.h */
 #include <asm/atomic.h>
 
 #include <sys/bus.h>
diff --git a/sys/compat/linuxkpi/common/include/linux/fs.h b/sys/compat/linuxkpi/common/include/linux/fs.h
index f1892352d598..c1097748cbf4 100644
--- a/sys/compat/linuxkpi/common/include/linux/fs.h
+++ b/sys/compat/linuxkpi/common/include/linux/fs.h
@@ -43,6 +43,8 @@
 #include <linux/semaphore.h>
 #include <linux/spinlock.h>
 #include <linux/dcache.h>
+#include <linux/capability.h>
+#include <linux/wait_bit.h>
 
 struct module;
 struct kiocb;
diff --git a/sys/compat/linuxkpi/common/include/linux/lockdep.h b/sys/compat/linuxkpi/common/include/linux/lockdep.h
index 25dad8698c74..84cfbf652dbd 100644
--- a/sys/compat/linuxkpi/common/include/linux/lockdep.h
+++ b/sys/compat/linuxkpi/common/include/linux/lockdep.h
@@ -32,6 +32,7 @@
 #ifndef _LINUX_LOCKDEP_H_
 #define	_LINUX_LOCKDEP_H_
 
+#include <sys/types.h>
 #include <sys/lock.h>
 
 struct lock_class_key {
diff --git a/sys/compat/linuxkpi/common/include/linux/slab.h b/sys/compat/linuxkpi/common/include/linux/slab.h
index 23ba8b9c8ae7..e29dd064ff23 100644
--- a/sys/compat/linuxkpi/common/include/linux/slab.h
+++ b/sys/compat/linuxkpi/common/include/linux/slab.h
@@ -39,6 +39,7 @@
 #include <linux/types.h>
 #include <linux/gfp.h>
 #include <linux/llist.h>
+#include <linux/overflow.h>
 
 MALLOC_DECLARE(M_KMALLOC);
 
diff --git a/sys/compat/linuxkpi/common/include/linux/spinlock.h b/sys/compat/linuxkpi/common/include/linux/spinlock.h
index 56eaecfb4cd6..c020c7d1df6e 100644
--- a/sys/compat/linuxkpi/common/include/linux/spinlock.h
+++ b/sys/compat/linuxkpi/common/include/linux/spinlock.h
@@ -41,6 +41,7 @@
 #include <linux/compiler.h>
 #include <linux/rwlock.h>
 #include <linux/bottom_half.h>
+#include <linux/lockdep.h>
 
 typedef struct {
 	struct mtx m;



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