vfs: fix check_acl compile error when CONFIG_FS_POSIX_ACL is not set
[pandora-kernel.git] / fs / namei.c
index ef00b98..f8c69d3 100644 (file)
@@ -176,6 +176,7 @@ EXPORT_SYMBOL(putname);
 
 static int check_acl(struct inode *inode, int mask)
 {
+#ifdef CONFIG_FS_POSIX_ACL
        struct posix_acl *acl;
 
        /*
@@ -219,6 +220,7 @@ static int check_acl(struct inode *inode, int mask)
                posix_acl_release(acl);
                return error;
        }
+#endif
 
        return -EAGAIN;
 }