From: Tobias Klauser Date: Tue, 10 Jan 2017 08:30:51 +0000 (+0100) Subject: net: socket: Make unnecessarily global sockfs_setattr() static X-Git-Tag: Ubuntu-5.0.0-8.9~5713^2~16 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=dc647ec88e029307e60e6bf9988056605f11051a;p=mirror_ubuntu-disco-kernel.git net: socket: Make unnecessarily global sockfs_setattr() static Make sockfs_setattr() static as it is not used outside of net/socket.c This fixes the following GCC warning: net/socket.c:534:5: warning: no previous prototype for ‘sockfs_setattr’ [-Wmissing-prototypes] Fixes: 86741ec25462 ("net: core: Add a UID field to struct sock.") Cc: Lorenzo Colitti Signed-off-by: Tobias Klauser Acked-by: Lorenzo Colitti Signed-off-by: David S. Miller --- diff --git a/net/socket.c b/net/socket.c index a8c2307590b8..0758e13754e2 100644 --- a/net/socket.c +++ b/net/socket.c @@ -533,7 +533,7 @@ static ssize_t sockfs_listxattr(struct dentry *dentry, char *buffer, return used; } -int sockfs_setattr(struct dentry *dentry, struct iattr *iattr) +static int sockfs_setattr(struct dentry *dentry, struct iattr *iattr) { int err = simple_setattr(dentry, iattr);