Patchwork jffs2: make jffs2_initxattrs() static

login
register
mail settings
Submitter Nikola Pajkovsky
Date Feb. 19, 2012, 6:51 p.m.
Message ID <f9b5e6546e83e808193657a574801ba60471cc9d.1329677282.git.n.pajkovsky@gmail.com>
Download mbox | patch
Permalink /patch/142066/
State New
Headers show

Comments

Nikola Pajkovsky - Feb. 19, 2012, 6:51 p.m.
Signed-off-by: Nikola Pajkovsky <n.pajkovsky@gmail.com>
---
 fs/jffs2/security.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Artem Bityutskiy - Feb. 29, 2012, 11:12 a.m.
On Sun, 2012-02-19 at 19:51 +0100, Nikola Pajkovsky wrote:
> Signed-off-by: Nikola Pajkovsky <n.pajkovsky@gmail.com>
> ---
>  fs/jffs2/security.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

I've amended your patch to fix the following checkpatch.pl warning:

--------------------------------------------------------------------------------

checkpatch.pl results for patch "[PATCH] jffs2: make jffs2_initxattrs() static"

WARNING:LONG_LINE: line over 80 characters
#20: FILE: fs/jffs2/security.c:26:
+static int jffs2_initxattrs(struct inode *inode, const struct xattr *xattr_array,

total: 0 errors, 1 warnings, 8 lines checked

--------------------------------------------------------------------------------

and pushed to l2-mtd.git, thanks.

Patch

diff --git a/fs/jffs2/security.c b/fs/jffs2/security.c
index 0f20208..304710c 100644
--- a/fs/jffs2/security.c
+++ b/fs/jffs2/security.c
@@ -23,7 +23,7 @@ 
 #include "nodelist.h"
 
 /* ---- Initial Security Label(s) Attachment callback --- */
-int jffs2_initxattrs(struct inode *inode, const struct xattr *xattr_array,
+static int jffs2_initxattrs(struct inode *inode, const struct xattr *xattr_array,
 		     void *fs_info)
 {
 	const struct xattr *xattr;