Re: [PATCH net-next v3] net: can: Fix compiling warnings for two functions

2019-08-05 Thread David Miller
From: Mao Wenan Date: Mon, 5 Aug 2019 19:57:44 +0800 > @@ -1680,7 +1680,7 @@ static int bcm_recvmsg(struct socket *sock, struct > msghdr *msg, size_t size, > return size; > } > > -int bcm_sock_no_ioctlcmd(struct socket *sock, unsigned int cmd, > +static int bcm_sock_no_ioctlcmd(struct s

[PATCH net-next v3] net: can: Fix compiling warnings for two functions

2019-08-05 Thread Mao Wenan
There are two warnings in net/can, fix them by setting bcm_sock_no_ioctlcmd and raw_sock_no_ioctlcmd as static. net/can/bcm.c:1683:5: warning: symbol 'bcm_sock_no_ioctlcmd' was not declared. Should it be static? net/can/raw.c:840:5: warning: symbol 'raw_sock_no_ioctlcmd' was not declared. Should