|
|
@@ -11,6 +11,8 @@
|
|
|
* using the generic single-entry routines.
|
|
|
*/
|
|
|
|
|
|
+#include <stdint.h>
|
|
|
+
|
|
|
struct list_head {
|
|
|
struct list_head *next, *prev;
|
|
|
};
|
|
|
@@ -181,7 +183,7 @@ static inline void list_splice_init(struct list_head *list,
|
|
|
* @member: the name of the list_struct within the struct.
|
|
|
*/
|
|
|
#define list_entry(ptr, type, member) \
|
|
|
- ((type *)((char *)(ptr)-(intptr_t)(&((type *)0)->member)))
|
|
|
+ ((type *)((char *)(ptr)-(uintptr_t)(&((type *)0)->member)))
|
|
|
|
|
|
/**
|
|
|
* list_for_each - iterate over a list
|