X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fapi_gcc.h;h=be437cccba7d7a04458053a6a4506a1412051ad5;hp=17487d5c701e81b66349b798b7f7fade5b1d8a96;hb=453629a9317adef5b96c3d55e4dcd98db680997a;hpb=e90ad78457151a8faec9d77934b292f458082386 diff --git a/tests/api_gcc.h b/tests/api_gcc.h index 17487d5..be437cc 100644 --- a/tests/api_gcc.h +++ b/tests/api_gcc.h @@ -291,13 +291,6 @@ cmpxchg(volatile long *ptr, long oldval, long newval) #include /* #include "atomic.h" */ -/* - * Compiler magic. - */ -#define container_of(ptr, type, member) ({ \ - const typeof( ((type *)0)->member ) *__mptr = (ptr); \ - (type *)( (char *)__mptr - offsetof(type,member) );}) - /* * Default machine parameters. */ @@ -652,10 +645,6 @@ static void smp_init(void) #define LIST_POISON1 ((void *) 0x00100100) #define LIST_POISON2 ((void *) 0x00200200) -#define container_of(ptr, type, member) ({ \ - const typeof( ((type *)0)->member ) *__mptr = (ptr); \ - (type *)( (char *)__mptr - offsetof(type,member) );}) - #if 0 /* * Simple doubly linked list implementation.