Skip to content

Commit

Permalink
make xattr_getsecurity() static
Browse files Browse the repository at this point in the history
many years overdue...

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed May 14, 2018
1 parent f6ddc16 commit 2220c5b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions fs/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ vfs_setxattr(struct dentry *dentry, const char *name, const void *value,
}
EXPORT_SYMBOL_GPL(vfs_setxattr);

ssize_t
static ssize_t
xattr_getsecurity(struct inode *inode, const char *name, void *value,
size_t size)
{
Expand All @@ -254,7 +254,6 @@ xattr_getsecurity(struct inode *inode, const char *name, void *value,
out_noalloc:
return len;
}
EXPORT_SYMBOL_GPL(xattr_getsecurity);

/*
* vfs_getxattr_alloc - allocate memory, if necessary, before calling getxattr
Expand Down
1 change: 0 additions & 1 deletion include/linux/xattr.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ struct xattr {
size_t value_len;
};

ssize_t xattr_getsecurity(struct inode *, const char *, void *, size_t);
ssize_t __vfs_getxattr(struct dentry *, struct inode *, const char *, void *, size_t);
ssize_t vfs_getxattr(struct dentry *, const char *, void *, size_t);
ssize_t vfs_listxattr(struct dentry *d, char *list, size_t size);
Expand Down

0 comments on commit 2220c5b

Please sign in to comment.