Re: [PATCH] net: tipc: fix general protection fault in tipc_conn_delete_sub

From: David Miller
Date: Mon Jul 27 2020 - 15:38:59 EST


From: kernel test robot <lkp@xxxxxxxxx>
Date: Mon, 27 Jul 2020 23:52:50 +0800

> All warnings (new ones prefixed by >>):
>
> net/tipc/topsrv.c: In function 'tipc_conn_send_to_sock':
>>> net/tipc/topsrv.c:259:10: warning: 'return' with a value, in function returning void [-Wreturn-type]
> 259 | return -EINVAL;
> | ^
> net/tipc/topsrv.c:247:13: note: declared here
> 247 | static void tipc_conn_send_to_sock(struct tipc_conn *con)
> | ^~~~~~~~~~~~~~~~~~~~~~

Please look at the compiler output when you submit changes.