Don't user forward declarations of internal kernel structures in headers exported to userspace. Move "struct completion;". Move "struct task_struct;".
Showing the changes to include/uapi/linux (2 of 4 files). Show all
Unified · Split
| @@ -15,8 +15,6 @@ · 14 unmodified lines | ||
| 15 | 15 | |
| 16 | 16 | #include <linux/types.h> |
| 17 | 17 | |
| 18 | −struct task_struct; | |
| 19 | − | |
| 20 | 18 | /* User-level do most of the mapping between kernel and user |
| 21 | 19 | capabilities based on the version tag given by the kernel. The |
| 22 | 20 | kernel might be somewhat backwards compatible, but don't bet on |
| @@ -26,8 +26,6 @@ · 25 unmodified lines | ||
| 26 | 26 | #include <linux/types.h> |
| 27 | 27 | #include <linux/compiler.h> |
| 28 | 28 | |
| 29 | −struct completion; | |
| 30 | − | |
| 31 | 29 | #define CTL_MAXNAME 10 /* how many path components do we allow in a |
| 32 | 30 | call to sysctl? In other words, what is |
| 33 | 31 | the largest acceptable value for the nlen |