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
This commit is contained in:
Jean-Sébastien Pédron 2023-02-09 13:11:34 +01:00
parent bf6f665081
commit 54606590df
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC
2 changed files with 8 additions and 8 deletions

View File

@ -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)
{

View File

@ -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 *));