diff options
| author | 2009-02-11 10:17:42 +0100 | |
|---|---|---|
| committer | 2009-02-11 10:17:42 +0100 | |
| commit | f437e8b53eab92a5829e65781e29aed23d8ffd0c (patch) | |
| tree | 48982c8818a4ac5cddb84ca6a1d55620eb9680ee /include/linux/kernel.h | |
| parent | Merge branches 'sched/rt' and 'sched/urgent' into sched/core (diff) | |
| parent | Linux 2.6.29-rc4 (diff) | |
| download | wireguard-linux-f437e8b53eab92a5829e65781e29aed23d8ffd0c.tar.xz wireguard-linux-f437e8b53eab92a5829e65781e29aed23d8ffd0c.zip | |
Merge commit 'v2.6.29-rc4' into sched/core
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 343df9ef2412..7fa371898e3e 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -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 |
