Skip to content

Commit

Permalink
[JFFS2] make jffs2_get_acl() static
Browse files Browse the repository at this point in the history
jffs2_get_acl() can now become static again.

Signed-off-by: Adrian Bunk <[email protected]>
Acked-by: KaiGai Kohei <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
  • Loading branch information
AdrianBunk authored and dwmw2 committed Nov 6, 2007
1 parent 6d88202 commit 050416e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion fs/jffs2/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions fs/jffs2/acl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);
Expand All @@ -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)
Expand Down

0 comments on commit 050416e

Please sign in to comment.