Thread (6 messages) 6 messages, 4 authors, 2015-01-19

container_of

From: Mike Krinkin <hidden>
Date: 2015-01-17 19:53:10

Hi, Simon
I compiled the kernel two times, one time with the original code and
one time with
#define container_of(ptr, type, member) ({			\
	(type *)( (char *)ptr - offsetof(type,member) );})
try with following version:

#define container_of(ptr, type, member) ({ \
	(type *)((char *)(ptr) - offsetof(type, member));})
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help