[JFFS2] make jffs2_get_acl() static
authorAdrian Bunk <bunk@kernel.org>
Tue, 6 Nov 2007 08:36:49 +0000 (08:36 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 6 Nov 2007 08:36:49 +0000 (08:36 +0000)
jffs2_get_acl() can now become static again.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: KaiGai Kohei <kaigai@ak.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/acl.c
fs/jffs2/acl.h

index 77fc5838609ce3d3a3246abdeb8910ab593f782a..993ddfce031836d67abe98b611e4392eda549b90 100644 (file)
@@ -176,7 +176,7 @@ static void jffs2_iset_acl(struct inode *inode, struct posix_acl **i_acl, struct
        spin_unlock(&inode->i_lock);
 }
 
-struct posix_acl *jffs2_get_acl(struct inode *inode, int type)
+static struct posix_acl *jffs2_get_acl(struct inode *inode, int type)
 {
        struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode);
        struct posix_acl *acl;
index 76c6ebd1acd975840d303ddc65b0ecde54091579..0bb7f003fd80bb8b64909fedf420c3af327198c9 100644 (file)
@@ -28,7 +28,6 @@ struct jffs2_acl_header {
 
 #define JFFS2_ACL_NOT_CACHED ((void *)-1)
 
-extern struct posix_acl *jffs2_get_acl(struct inode *inode, int type);
 extern int jffs2_permission(struct inode *, int, struct nameidata *);
 extern int jffs2_acl_chmod(struct inode *);
 extern int jffs2_init_acl_pre(struct inode *, struct inode *, int *);
@@ -40,7 +39,6 @@ extern struct xattr_handler jffs2_acl_default_xattr_handler;
 
 #else
 
-#define jffs2_get_acl(inode, type)             (NULL)
 #define jffs2_permission                       (NULL)
 #define jffs2_acl_chmod(inode)                 (0)
 #define jffs2_init_acl_pre(dir_i,inode,mode)   (0)