Commit 9a8ad9ac authored by Andrew Lunn's avatar Andrew Lunn Committed by David S. Miller

net: socket: Move kerneldoc next to function it documents

Fix the warning "Function parameter or member 'inode' not described in
'__sock_release'' due to the kerneldoc being placed before
__sock_release() not sock_release(), which does not take an inode
parameter.
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 90ac5d03
...@@ -586,15 +586,6 @@ struct socket *sock_alloc(void) ...@@ -586,15 +586,6 @@ struct socket *sock_alloc(void)
} }
EXPORT_SYMBOL(sock_alloc); EXPORT_SYMBOL(sock_alloc);
/**
* sock_release - close a socket
* @sock: socket to close
*
* The socket is released from the protocol stack if it has a release
* callback, and the inode is then released if the socket is bound to
* an inode not a file.
*/
static void __sock_release(struct socket *sock, struct inode *inode) static void __sock_release(struct socket *sock, struct inode *inode)
{ {
if (sock->ops) { if (sock->ops) {
...@@ -620,6 +611,14 @@ static void __sock_release(struct socket *sock, struct inode *inode) ...@@ -620,6 +611,14 @@ static void __sock_release(struct socket *sock, struct inode *inode)
sock->file = NULL; sock->file = NULL;
} }
/**
* sock_release - close a socket
* @sock: socket to close
*
* The socket is released from the protocol stack if it has a release
* callback, and the inode is then released if the socket is bound to
* an inode not a file.
*/
void sock_release(struct socket *sock) void sock_release(struct socket *sock)
{ {
__sock_release(sock, NULL); __sock_release(sock, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment