diff options
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index eec0d13169a6..45353d757cd0 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -310,8 +310,8 @@ static inline int __attribute__ ((format (printf, 1, 2))) pr_debug(const char * | |||
310 | * | 310 | * |
311 | */ | 311 | */ |
312 | #define container_of(ptr, type, member) ({ \ | 312 | #define container_of(ptr, type, member) ({ \ |
313 | const typeof( ((type *)0)->member ) *__mptr = (ptr); \ | 313 | const typeof( ((type *)0)->member ) *__mptr = (ptr); \ |
314 | (type *)( (char *)__mptr - offsetof(type,member) );}) | 314 | (type *)( (char *)__mptr - offsetof(type,member) );}) |
315 | 315 | ||
316 | /* | 316 | /* |
317 | * Check at compile time that something is of a particular type. | 317 | * Check at compile time that something is of a particular type. |