projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5a4738
)
linux/futex.h: place kernel types behind __KERNEL__
author
Mike Frysinger
<
[email protected]
>
Wed, 23 Sep 2009 22:57:23 +0000
(15:57 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 24 Sep 2009 14:21:04 +0000
(07:21 -0700)
The forward decls for some kernel types are only needed by the code behind
__KERNEL__, so don't bleed these types to userspace.
Signed-off-by: Mike Frysinger <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/futex.h
patch
|
blob
|
history
diff --git
a/include/linux/futex.h
b/include/linux/futex.h
index 34956c8fdebf8df63ab44c1f84b136406b3d0f34..8ec17997d94fa0aafeaab5cc95824194c9e913f3 100644
(file)
--- a/
include/linux/futex.h
+++ b/
include/linux/futex.h
@@
-4,11
+4,6
@@
#include <linux/compiler.h>
#include <linux/types.h>
-struct inode;
-struct mm_struct;
-struct task_struct;
-union ktime;
-
/* Second argument to futex syscall */
@@
-129,6
+124,11
@@
struct robust_list_head {
#define FUTEX_BITSET_MATCH_ANY 0xffffffff
#ifdef __KERNEL__
+struct inode;
+struct mm_struct;
+struct task_struct;
+union ktime;
+
long do_futex(u32 __user *uaddr, int op, u32 val, union ktime *timeout,
u32 __user *uaddr2, u32 val2, u32 val3);