History

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;".

Alexey Dobriyan committed 10 years ago

Commit db3f6001 parent bd721ea4 files · +2 −4Browse files

Showing the changes to include/uapi/linux (2 of 4 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/capability.h +0 −2
  2. include/uapi/linux/sysctl.h +0 −2
include/uapi/linux/capability.h+0−2
@@ -15,8 +15,6 @@ · 14 unmodified lines
1515
1616 #include <linux/types.h>
1717
18−struct task_struct;
19−
2018 /* User-level do most of the mapping between kernel and user
2119 capabilities based on the version tag given by the kernel. The
2220 kernel might be somewhat backwards compatible, but don't bet on
include/uapi/linux/sysctl.h+0−2
@@ -26,8 +26,6 @@ · 25 unmodified lines
2626 #include <linux/types.h>
2727 #include <linux/compiler.h>
2828
29−struct completion;
30−
3129 #define CTL_MAXNAME 10 /* how many path components do we allow in a
3230 call to sysctl? In other words, what is
3331 the largest acceptable value for the nlen

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t