Skip to content

Commit

Permalink
UPSTREAM: net: socket: Make unnecessarily global sockfs_setattr() static
Browse files Browse the repository at this point in the history
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: 86741ec ("net: core: Add a UID field to struct sock.")
Cc: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Change-Id: Ie613c441b3fe081bdaec8c480d3aade482873bf8
Fixes: Change-Id: Idbc3e9a0cec91c4c6e01916b967b6237645ebe59
       ("net: core: Add a UID field to struct sock.")
(cherry picked from commit dc647ec)
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
  • Loading branch information
tklauser authored and pundiramit committed May 15, 2017
1 parent 49ab74f commit 07ba7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,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);

Expand Down

0 comments on commit 07ba7cd

Please sign in to comment.