Skip to content

Commit 4c6c45d

Browse files
committed
fix: list def
1 parent 5f7eeff commit 4c6c45d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

core/include/linux/list.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212
*
1313
* WARNING: any const qualifier of @ptr is lost.
1414
*/
15+
#ifndef container_of
1516
#define container_of(ptr, type, member) \
1617
({ \
1718
void *__mptr = (void *)(ptr); \
1819
((type *)(__mptr - offsetof(type, member))); \
1920
})
21+
#endif
2022

2123
/*
2224
* These are non-NULL pointers that will result in page faults

0 commit comments

Comments
 (0)