diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/kernel.h | 4 | ||||
-rw-r--r-- | include/linux/list.h | 8 |
2 files changed, 6 insertions, 6 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. |
diff --git a/include/linux/list.h b/include/linux/list.h index 9202703be2a4..f29fc9c1a964 100644 --- a/include/linux/list.h +++ b/include/linux/list.h | |||
@@ -264,8 +264,8 @@ static inline void list_del_init(struct list_head *entry) | |||
264 | */ | 264 | */ |
265 | static inline void list_move(struct list_head *list, struct list_head *head) | 265 | static inline void list_move(struct list_head *list, struct list_head *head) |
266 | { | 266 | { |
267 | __list_del(list->prev, list->next); | 267 | __list_del(list->prev, list->next); |
268 | list_add(list, head); | 268 | list_add(list, head); |
269 | } | 269 | } |
270 | 270 | ||
271 | /** | 271 | /** |
@@ -276,8 +276,8 @@ static inline void list_move(struct list_head *list, struct list_head *head) | |||
276 | static inline void list_move_tail(struct list_head *list, | 276 | static inline void list_move_tail(struct list_head *list, |
277 | struct list_head *head) | 277 | struct list_head *head) |
278 | { | 278 | { |
279 | __list_del(list->prev, list->next); | 279 | __list_del(list->prev, list->next); |
280 | list_add_tail(list, head); | 280 | list_add_tail(list, head); |
281 | } | 281 | } |
282 | 282 | ||
283 | /** | 283 | /** |