Skip to contentSkip to conversation

ext4/xattr_security.c: local functions should be static

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

lore
Share & tools
lore
#0 lore raw

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

Quiets the sparse noise:

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

Cc "Theodore Ts'o" <[email protected]>
Cc Andreas Dilger <[email protected]>

---

fs/ext4/xattr_security.c +1 -1
index 34e4350..827fbfd 100644
@@ -48,7 +48,7 @@ ext4_xattr_security_set(struct dentry *dentry, const char *name,
 			      name, value, size, flags);
 }
 
-int ext4_initxattrs(struct inode *inode, const struct xattr *xattr_array,
+static int ext4_initxattrs(struct inode *inode, const struct xattr *xattr_array,
 		    void *fs_info)
 {
 	const struct xattr *xattr;
maintainer
#1 lore raw
Quoted 3 lines · H Hartley Sweeten

Quiets the sparse noise:

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

What version of the kernel was this from? I can't find ext4_initxattrs in any kernel version that I can find in git...

- Ted