Skip to contentSkip to conversation

jffs2/security.c: local functions should be static

PATCH In review H Hartley Sweeten 2 participants 2 messages Sep 23, 2011 – Oct 1, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jffs2/security.c: local functions should be static

Quiets the sparse noise:

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

---

fs/jffs2/security.c +2 -2
index 0f20208..aca97f3 100644
@@ -23,8 +23,8 @@
 #include "nodelist.h"
 
 /* ---- Initial Security Label(s) Attachment callback --- */
-int jffs2_initxattrs(struct inode *inode, const struct xattr *xattr_array,
-		     void *fs_info)
+static int jffs2_initxattrs(struct inode *inode,
+			    const struct xattr *xattr_array, void *fs_info)
 {
 	const struct xattr *xattr;
 	int err = 0;
#1 lore raw
Quoted 6 lines · H Hartley Sweeten

Quiets the sparse noise:

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

Against which tree is this patch? My l2-mtd-2.6 tree does not have this function, and it is based on Linux 3.1-rc2.

Signature · 2 lines
Best Regards,
Artem Bityutskiy