]> Git Repo - linux.git/commitdiff
net: socket: Make unnecessarily global sockfs_setattr() static
authorTobias Klauser <[email protected]>
Tue, 10 Jan 2017 08:30:51 +0000 (09:30 +0100)
committerDavid S. Miller <[email protected]>
Tue, 10 Jan 2017 16:29:50 +0000 (11:29 -0500)
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 <[email protected]>
Signed-off-by: Tobias Klauser <[email protected]>
Acked-by: Lorenzo Colitti <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/socket.c

index a8c2307590b87ce5774f275fcbc1397f095d4c27..0758e13754e2faccb257d2f6ba9cca7b2da1baab 100644 (file)
@@ -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);
 
This page took 0.056904 seconds and 4 git commands to generate.