Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56321
b: refs/heads/master
c: 78db2ad
h: refs/heads/master
i:
  56319: 9c4eda5
v: v3
  • Loading branch information
Daniel Walker authored and Linus Torvalds committed May 13, 2007
1 parent 19d2bbd commit 5668461
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 07002e995638b83a6987180f43722a0eb39d4932
refs/heads/master: 78db2ad6f4df9145bfd6aab1c0f1c56d615288ec
4 changes: 2 additions & 2 deletions trunk/include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ static inline int __attribute__ ((format (printf, 1, 2))) pr_debug(const char *
*
*/
#define container_of(ptr, type, member) ({ \
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(type,member) );})
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(type,member) );})

/*
* Check at compile time that something is of a particular type.
Expand Down
8 changes: 4 additions & 4 deletions trunk/include/linux/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ static inline void list_del_init(struct list_head *entry)
*/
static inline void list_move(struct list_head *list, struct list_head *head)
{
__list_del(list->prev, list->next);
list_add(list, head);
__list_del(list->prev, list->next);
list_add(list, head);
}

/**
Expand All @@ -276,8 +276,8 @@ static inline void list_move(struct list_head *list, struct list_head *head)
static inline void list_move_tail(struct list_head *list,
struct list_head *head)
{
__list_del(list->prev, list->next);
list_add_tail(list, head);
__list_del(list->prev, list->next);
list_add_tail(list, head);
}

/**
Expand Down

0 comments on commit 5668461

Please sign in to comment.