[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2b04a34e-d049-497b-8d5c-3602d889ab83@p183>
Date: Tue, 23 Jan 2024 13:14:07 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com
Cc: netdev@...r.kernel.org
Subject: [PATCH 1/2] connector: fix #include <linux/cn_proc.h>
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@...il.com>
---
include/linux/cn_proc.h | 2 ++
1 file changed, 2 insertions(+)
--- 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);
Powered by blists - more mailing lists