diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-17 11:21:20 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-17 11:21:20 -0400 |
commit | 47239561e39bceefecc3cd67f71fcf86a198a8ff (patch) | |
tree | 9823d0973494ea8acabb744bc3aba42b610fb434 /include/linux/kernel.h | |
parent | ed681a91ab805341675d166a9592551093c0a2d9 (diff) | |
parent | 5bee17f18b595937e6beafeee5197868a3f74a06 (diff) |
Merge branch 'linus' into core/printk
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 3c183d9864ae..2755165bb291 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -497,7 +497,8 @@ static inline char *pack_hex_byte(char *buf, u8 byte) | |||
497 | /* | 497 | /* |
498 | * swap - swap value of @a and @b | 498 | * swap - swap value of @a and @b |
499 | */ | 499 | */ |
500 | #define swap(a, b) ({ typeof(a) __tmp = (a); (a) = (b); (b) = __tmp; }) | 500 | #define swap(a, b) \ |
501 | do { typeof(a) __tmp = (a); (a) = (b); (b) = __tmp; } while (0) | ||
501 | 502 | ||
502 | /** | 503 | /** |
503 | * container_of - cast a member of a structure out to the containing structure | 504 | * container_of - cast a member of a structure out to the containing structure |