Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130961
b: refs/heads/master
c: ac7b900
h: refs/heads/master
i:
  130959: 3981cd1
v: v3
  • Loading branch information
Peter Zijlstra authored and Linus Torvalds committed Feb 5, 2009
1 parent eb91819 commit 86096f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: c073b2db006ba9370be1eecc36a1be1d9ce31310
refs/heads/master: ac7b9004909d03d67016368093e81d37cae72895
3 changes: 2 additions & 1 deletion trunk/include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,8 @@ static inline char *pack_hex_byte(char *buf, u8 byte)
/*
* swap - swap value of @a and @b
*/
#define swap(a, b) ({ typeof(a) __tmp = (a); (a) = (b); (b) = __tmp; })
#define swap(a, b) \
do { typeof(a) __tmp = (a); (a) = (b); (b) = __tmp; } while (0)

/**
* container_of - cast a member of a structure out to the containing structure
Expand Down

0 comments on commit 86096f8

Please sign in to comment.