Created attachment 29908 [details] full source file I get this error: elist.h:184:10: error: expected expression before ‘)’ token ((type *)((char *)(ptr)-(intptr_t)(&((type *)0)->member))) ^ Full code snippet: #define list_entry(ptr, type, member) \ ((type *)((char *)(ptr)-(intptr_t)(&((type *)0)->member)))
This is not the full source which is having issues. This is only the header file where the #define is located. I suspect you are using list_entry incorrectly. Though the error message could be better.
Please provide a minimal self-contained testcase showing the problem.
Testcase not coming.