Commit 9064a6787aa1d8ceaf5ba16fe1dfedb0755dc7eb
Committed by
Linus Torvalds
1 parent
e5a4738699
Exists in
master
and in
4 other branches
linux/futex.h: place kernel types behind __KERNEL__
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 <vapier@gentoo.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 5 additions and 5 deletions Side-by-side Diff
include/linux/futex.h
... | ... | @@ -4,11 +4,6 @@ |
4 | 4 | #include <linux/compiler.h> |
5 | 5 | #include <linux/types.h> |
6 | 6 | |
7 | -struct inode; | |
8 | -struct mm_struct; | |
9 | -struct task_struct; | |
10 | -union ktime; | |
11 | - | |
12 | 7 | /* Second argument to futex syscall */ |
13 | 8 | |
14 | 9 | |
... | ... | @@ -129,6 +124,11 @@ |
129 | 124 | #define FUTEX_BITSET_MATCH_ANY 0xffffffff |
130 | 125 | |
131 | 126 | #ifdef __KERNEL__ |
127 | +struct inode; | |
128 | +struct mm_struct; | |
129 | +struct task_struct; | |
130 | +union ktime; | |
131 | + | |
132 | 132 | long do_futex(u32 __user *uaddr, int op, u32 val, union ktime *timeout, |
133 | 133 | u32 __user *uaddr2, u32 val2, u32 val3); |
134 | 134 |