Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -767,11 +767,11 @@ static inline void ftrace_dump(enum ftrace_dump_mode oops_dump_mode) { }


/*
* swap - swap value of @a and @b
* swap - swap value of @a and @b using xor
*/
#define swap(a, b) \
do { typeof(a) __tmp = (a); (a) = (b); (b) = __tmp; } while (0)

(((a) ^= (b)), ((b) ^= (a)), ((a) ^= (b)))
/**
* container_of - cast a member of a structure out to the containing structure
* @ptr: the pointer to the member.
Expand Down