Skip to content

Commit

Permalink
fs: Mark function as static in ext3/xattr_security.c
Browse files Browse the repository at this point in the history
Mark function as static in ext3/xattr_security.c because it is not used
outside this file.

This eliminates the following warning in ext3/xattr_security.c:
fs/ext3/xattr_security.c:46:5: warning: no previous prototype for ‘ext3_initxattrs’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <[email protected]>
Reviewed-by: Josh Triplett <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
  • Loading branch information
rashika authored and jankara committed Mar 3, 2014
1 parent 8ccb154 commit 7d6c211
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/ext3/xattr_security.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ ext3_xattr_security_set(struct dentry *dentry, const char *name,
name, value, size, flags);
}

int ext3_initxattrs(struct inode *inode, const struct xattr *xattr_array,
void *fs_info)
static int ext3_initxattrs(struct inode *inode,
const struct xattr *xattr_array,
void *fs_info)
{
const struct xattr *xattr;
handle_t *handle = fs_info;
Expand Down

0 comments on commit 7d6c211

Please sign in to comment.