X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Fust%2Fkcompat%2Fsimple.h;h=38a9be5988d7dd17581e318ea3131dbb106809ad;hb=1e4b909b682cc34aaa51ee13432c1c23f7e70bab;hp=762d802920a6c0be6d65c530015b2b700e4823a4;hpb=4723ca096d740ff93da400df304c9902e9834e5f;p=ust.git diff --git a/include/ust/kcompat/simple.h b/include/ust/kcompat/simple.h index 762d802..38a9be5 100644 --- a/include/ust/kcompat/simple.h +++ b/include/ust/kcompat/simple.h @@ -21,18 +21,6 @@ #ifndef KCOMPAT_SIMPLE_H #define KCOMPAT_SIMPLE_H -/** - * container_of - cast a member of a structure out to the containing structure - * @ptr: the pointer to the member. - * @type: the type of the container struct this is embedded in. - * @member: the name of the member within the struct. - * - */ -#define container_of(ptr, type, member) ({ \ - const typeof( ((type *)0)->member ) *__mptr = (ptr); \ - (type *)( (char *)__mptr - offsetof(type,member) );}) - - /* libkcompat: from rcupdate.h */ struct rcu_head {