Skip to contentSkip to conversation

linux/futex.h: place kernel types behind __KERNEL__

PATCH New Mike Frysinger 1 participant 1 message Jul 20, 2009 Futex

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 include/linux/futex.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
include/linux/futex.h +5 -5
index 34956c8..8ec1799 100644
@@ -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);
 
Signature · 1 line
1.6.3.3