Commit db3f6001 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

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.bySigned-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bd721ea7
...@@ -38,6 +38,7 @@ struct cpu_vfs_cap_data { ...@@ -38,6 +38,7 @@ struct cpu_vfs_cap_data {
struct file; struct file;
struct inode; struct inode;
struct dentry; struct dentry;
struct task_struct;
struct user_namespace; struct user_namespace;
extern const kernel_cap_t __cap_empty_set; extern const kernel_cap_t __cap_empty_set;
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <uapi/linux/sysctl.h> #include <uapi/linux/sysctl.h>
/* For the /proc/sys support */ /* For the /proc/sys support */
struct completion;
struct ctl_table; struct ctl_table;
struct nsproxy; struct nsproxy;
struct ctl_table_root; struct ctl_table_root;
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
#include <linux/types.h> #include <linux/types.h>
struct task_struct;
/* User-level do most of the mapping between kernel and user /* User-level do most of the mapping between kernel and user
capabilities based on the version tag given by the kernel. The capabilities based on the version tag given by the kernel. The
kernel might be somewhat backwards compatible, but don't bet on kernel might be somewhat backwards compatible, but don't bet on
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/compiler.h> #include <linux/compiler.h>
struct completion;
#define CTL_MAXNAME 10 /* how many path components do we allow in a #define CTL_MAXNAME 10 /* how many path components do we allow in a
call to sysctl? In other words, what is call to sysctl? In other words, what is
the largest acceptable value for the nlen the largest acceptable value for the nlen
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment