aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2016-08-02 17:03:36 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-08-02 17:31:41 -0400
commitdb3f60012482756f46cc4d7d9ad7d793ae30360c (patch)
tree0302d9abc9b15368ba84a68d221d9c8a144b0fc0 /include/uapi/linux
parentbd721ea73e1f965569b40620538c942001f76294 (diff)
uapi: move forward declarations of internal structures
Don't user forward declarations of internal kernel structures in headers exported to userspace. Move "struct completion;". Move "struct task_struct;". Link: http://lkml.kernel.org/r/20160713215808.GA22486@p183.telecom.by Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/capability.h2
-rw-r--r--include/uapi/linux/sysctl.h2
2 files changed, 0 insertions, 4 deletions
diff --git a/include/uapi/linux/capability.h b/include/uapi/linux/capability.h
index 12c37a197d24..49bc06295398 100644
--- a/include/uapi/linux/capability.h
+++ b/include/uapi/linux/capability.h
@@ -15,8 +15,6 @@
15 15
16#include <linux/types.h> 16#include <linux/types.h>
17 17
18struct task_struct;
19
20/* User-level do most of the mapping between kernel and user 18/* User-level do most of the mapping between kernel and user
21 capabilities based on the version tag given by the kernel. The 19 capabilities based on the version tag given by the kernel. The
22 kernel might be somewhat backwards compatible, but don't bet on 20 kernel might be somewhat backwards compatible, but don't bet on
diff --git a/include/uapi/linux/sysctl.h b/include/uapi/linux/sysctl.h
index 0956373b56db..d2b12152e358 100644
--- a/include/uapi/linux/sysctl.h
+++ b/include/uapi/linux/sysctl.h
@@ -26,8 +26,6 @@
26#include <linux/types.h> 26#include <linux/types.h>
27#include <linux/compiler.h> 27#include <linux/compiler.h>
28 28
29struct completion;
30
31#define CTL_MAXNAME 10 /* how many path components do we allow in a 29#define CTL_MAXNAME 10 /* how many path components do we allow in a
32 call to sysctl? In other words, what is 30 call to sysctl? In other words, what is
33 the largest acceptable value for the nlen 31 the largest acceptable value for the nlen