X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fapi_x86.h;fp=tests%2Fapi_x86.h;h=cdd46675f8ac194e35c190afc23d73a2863992f2;hp=eba0613d45682206c246a88c2bf7a38a824c9915;hb=453629a9317adef5b96c3d55e4dcd98db680997a;hpb=e90ad78457151a8faec9d77934b292f458082386 diff --git a/tests/api_x86.h b/tests/api_x86.h index eba0613..cdd4667 100644 --- a/tests/api_x86.h +++ b/tests/api_x86.h @@ -352,13 +352,6 @@ __asm__ __volatile__(LOCK_PREFIX "orl %0,%1" \ #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. */ @@ -713,10 +706,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 /*