diff options
author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2023-02-09 12:11:34 +0000 |
---|---|---|
committer | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2023-02-16 11:55:19 +0000 |
commit | 8240c14d2e80ac73e7bfa7f2ee12f17d8020da3d (patch) | |
tree | cd7baa6e4df46bc8e9de807d1791772374e42223 | |
parent | 8fa54d4e40f0cb3bb4b5c92ecc1a0c26a7289851 (diff) | |
download | src-8240c14d2e80ac73e7bfa7f2ee12f17d8020da3d.tar.gz src-8240c14d2e80ac73e7bfa7f2ee12f17d8020da3d.zip |
linuxkpi: Move definition of `struct list_head` to <linux/types.h>
This is the case on Linux.
Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D38537
(cherry picked from commit 54606590dffcd23136af1c26da38206f4d3a6269)
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/list.h | 8 | ||||
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/types.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h index 6ec715291807..46da7cc7bc8e 100644 --- a/sys/compat/linuxkpi/common/include/linux/list.h +++ b/sys/compat/linuxkpi/common/include/linux/list.h @@ -86,14 +86,6 @@ #define LINUX_LIST_HEAD(name) \ struct list_head name = LINUX_LIST_HEAD_INIT(name) -#ifndef LIST_HEAD_DEF -#define LIST_HEAD_DEF -struct list_head { - struct list_head *next; - struct list_head *prev; -}; -#endif - static inline void INIT_LIST_HEAD(struct list_head *list) { diff --git a/sys/compat/linuxkpi/common/include/linux/types.h b/sys/compat/linuxkpi/common/include/linux/types.h index dab5e6ddce42..aa19163ddd26 100644 --- a/sys/compat/linuxkpi/common/include/linux/types.h +++ b/sys/compat/linuxkpi/common/include/linux/types.h @@ -79,6 +79,14 @@ typedef unsigned long kernel_ulong_t; typedef unsigned long irq_hw_number_t; +#ifndef LIST_HEAD_DEF +#define LIST_HEAD_DEF +struct list_head { + struct list_head *next; + struct list_head *prev; +}; +#endif + struct rcu_head { void *raw[2]; } __aligned(sizeof(void *)); |