Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127638
b: refs/heads/master
c: 91f68b7
h: refs/heads/master
v: v3
  • Loading branch information
Wu Fengguang authored and Linus Torvalds committed Jan 8, 2009
1 parent 03e8c4d commit fe99677
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b53907c0100a353a7ac53bed260e735e5ccbbbcc
refs/heads/master: 91f68b7359144aa40bb9668124543d15284750b4
6 changes: 6 additions & 0 deletions trunk/include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fe99677

Please sign in to comment.