diff --git a/[refs] b/[refs] index 5b0da9cd597c..f71339c3bc02 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b53907c0100a353a7ac53bed260e735e5ccbbbcc +refs/heads/master: 91f68b7359144aa40bb9668124543d15284750b4 diff --git a/trunk/include/linux/kernel.h b/trunk/include/linux/kernel.h index 6b8e2027165e..343df9ef2412 100644 --- a/trunk/include/linux/kernel.h +++ b/trunk/include/linux/kernel.h @@ -476,6 +476,12 @@ static inline char *pack_hex_byte(char *buf, u8 byte) __val = __val < __min ? __min: __val; \ __val > __max ? __max: __val; }) + +/* + * swap - swap value of @a and @b + */ +#define swap(a, b) ({ typeof(a) __tmp = (a); (a) = (b); (b) = __tmp; }) + /** * container_of - cast a member of a structure out to the containing structure * @ptr: the pointer to the member.