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
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 user18/* User-level do most of the mapping between kernel and user
21 capabilities based on the version tag given by the kernel. The19 capabilities based on the version tag given by the kernel. The
22 kernel might be somewhat backwards compatible, but don't bet on20 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
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 a29#define CTL_MAXNAME 10 /* how many path components do we allow in a
32 call to sysctl? In other words, what is30 call to sysctl? In other words, what is
33 the largest acceptable value for the nlen31 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