Message ID | 2b04a34e-d049-497b-8d5c-3602d889ab83@p183 (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
Series | [1/2] connector: fix #include <linux/cn_proc.h> | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
--- a/include/linux/cn_proc.h +++ b/include/linux/cn_proc.h @@ -19,6 +19,8 @@ #include <uapi/linux/cn_proc.h> +struct task_struct; + #ifdef CONFIG_PROC_EVENTS void proc_fork_connector(struct task_struct *task); void proc_exec_connector(struct task_struct *task);
Including <linux/cn_proc.h> first line doesn't work because of missing forward declaration: In file included from kernel/foo.c:1: include/linux/cn_proc.h:32:47: error: ‘struct task_struct’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 32 | static inline void proc_fork_connector(struct task_struct *task) | ^~~~~~~~~~~ Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> --- include/linux/cn_proc.h | 2 ++ 1 file changed, 2 insertions(+)