Skip to contentSkip to conversation

ext2/xattr_security.c: local functions should be static

PATCH In review H Hartley Sweeten 2 participants 2 messages Sep 23, 2011 – Oct 4, 2011 ext2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext2/xattr_security.c: local functions should be static

This quiets the sparse noise:

warning: symbol 'ext2_initxattrs' was not declared. Should it be static?

---

fs/ext2/xattr_security.c +1 -1
index c922adc..ed1a5d5 100644
@@ -46,7 +46,7 @@ ext2_xattr_security_set(struct dentry *dentry, const char *name,
 			      value, size, flags);
 }
 
-int ext2_initxattrs(struct inode *inode, const struct xattr *xattr_array,
+static int ext2_initxattrs(struct inode *inode, const struct xattr *xattr_array,
 		    void *fs_info)
 {
 	const struct xattr *xattr;
#1 lore raw
Quoted 6 lines · H Hartley Sweeten

This quiets the sparse noise:

warning: symbol 'ext2_initxattrs' was not declared. Should it be static?

Hmm, this patch doesn't seem to be against latest Linus kernel... At
least I don't see ext2_initxattrs() there - although I remember seeing patches adding this function flying somewhere.

Honza

Quoted 13 lines
fs/ext2/xattr_security.c +1 -1
index c922adc..ed1a5d5 100644
@@ -46,7 +46,7 @@ ext2_xattr_security_set(struct dentry *dentry, const char *name,
 			      value, size, flags);
 }
 
-int ext2_initxattrs(struct inode *inode, const struct xattr *xattr_array,
+static int ext2_initxattrs(struct inode *inode, const struct xattr *xattr_array,
 		    void *fs_info)
 {
 	const struct xattr *xattr;
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR