Skip to contentSkip to conversation

uapi-move-forward-declarations-of-internal-structures.patch removed from -mm tree

merged [email protected] 1 participant 1 message Aug 3, 2016

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: uapi: move forward declarations of internal structures
has been removed from the -mm tree. Its filename was
uapi-move-forward-declarations-of-internal-structures.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Alexey Dobriyan <[email protected]>
Subject: 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;".

---

 include/linux/capability.h      |    1 +
 include/linux/sysctl.h          |    1 +
 include/uapi/linux/capability.h |    2 --
 include/uapi/linux/sysctl.h     |    2 --
 4 files changed, 2 insertions(+), 4 deletions(-)
include/linux/capability.h renamed from include/linux/capability.h~uapi-move-forward-declarations-of-internal-structures +1 -0
diff -puN include/linux/capability.h~uapi-move-forward-declarations-of-internal-structures include/linux/capability.h
@@ -38,6 +38,7 @@ struct cpu_vfs_cap_data {
 struct file;
 struct inode;
 struct dentry;
+struct task_struct;
 struct user_namespace;
 
 extern const kernel_cap_t __cap_empty_set;
include/linux/sysctl.h renamed from include/linux/sysctl.h~uapi-move-forward-declarations-of-internal-structures +1 -0
diff -puN include/linux/sysctl.h~uapi-move-forward-declarations-of-internal-structures include/linux/sysctl.h
@@ -28,6 +28,7 @@
 #include <uapi/linux/sysctl.h>
 
 /* For the /proc/sys support */
+struct completion;
 struct ctl_table;
 struct nsproxy;
 struct ctl_table_root;
include/uapi/linux/capability.h renamed from include/uapi/linux/capability.h~uapi-move-forward-declarations-of-internal-structures +0 -2
diff -puN include/uapi/linux/capability.h~uapi-move-forward-declarations-of-internal-structures include/uapi/linux/capability.h
@@ -15,8 +15,6 @@
 
 #include <linux/types.h>
 
-struct task_struct;
-
 /* User-level do most of the mapping between kernel and user
    capabilities based on the version tag given by the kernel. The
    kernel might be somewhat backwards compatible, but don't bet on
include/uapi/linux/sysctl.h renamed from include/uapi/linux/sysctl.h~uapi-move-forward-declarations-of-internal-structures +0 -1
diff -puN include/uapi/linux/sysctl.h~uapi-move-forward-declarations-of-internal-structures include/uapi/linux/sysctl.h
@@ -26,8 +26,6 @@
 #include <linux/types.h>
 #include <linux/compiler.h>
 
-struct completion;