]> git.karo-electronics.de Git - linux-beck.git/commitdiff
fs: Mark function as static in ext2/xattr_security.c
authorRashika Kheria <rashika.kheria@gmail.com>
Sun, 9 Feb 2014 13:04:10 +0000 (18:34 +0530)
committerJan Kara <jack@suse.cz>
Mon, 3 Mar 2014 10:30:59 +0000 (11:30 +0100)
Mark function as static in ext2/xattr_security.c because it is not
used outside this file.

This also elimiantes the following warning in ext2/xattr_security.c:
fs/ext2/xattr_security.c:45:5: warning: no previous prototype for ‘ext2_initxattrs’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/xattr_security.c

index cfedb2cb0d8c461e7283396d17ab0fd84d919423..c0ebc4db88492e343a4e4f37d8e26e2b9f4480b3 100644 (file)
@@ -42,8 +42,8 @@ ext2_xattr_security_set(struct dentry *dentry, const char *name,
                              value, size, flags);
 }
 
-int ext2_initxattrs(struct inode *inode, const struct xattr *xattr_array,
-                   void *fs_info)
+static int ext2_initxattrs(struct inode *inode, const struct xattr *xattr_array,
+                          void *fs_info)
 {
        const struct xattr *xattr;
        int err = 0;