New naming convention for internal macros
[ust.git] / include / ust / kcompat / simple.h
index 762d802920a6c0be6d65c530015b2b700e4823a4..38a9be5988d7dd17581e318ea3131dbb106809ad 100644 (file)
 #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 {
This page took 0.022661 seconds and 4 git commands to generate.