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:
parent
bf6f665081
commit
54606590df
@ -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)
|
||||
{
|
||||
|
@ -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 *));
|
||||
|
Loading…
Reference in New Issue
Block a user