diff options
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 |
