X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=flist.h;h=5437cd80da85ab7581b2282f52669510ef682d20;hb=2fbe1e195999e23c95b08d03eadac0b5f95330e7;hp=2ca3d7771232b6d3031d3c73cff118ef2c5dbd50;hpb=deb728c66d3f745abca5afc4eebcf0d5049d50fd;p=fio.git diff --git a/flist.h b/flist.h index 2ca3d777..5437cd80 100644 --- a/flist.h +++ b/flist.h @@ -4,8 +4,8 @@ #include #include -#define container_of(ptr, type, member) ({ \ - const typeof( ((type *)0)->member ) *__mptr = (ptr); \ +#define container_of(ptr, type, member) ({ \ + const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,member) );}) /*