]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - fs/namei.c
vfs: fix check_acl compile error when CONFIG_FS_POSIX_ACL is not set
[~shefty/rdma-dev.git] / fs / namei.c
index ef00b984fb20fe4dbbb023d927b93afdd3839905..f8c69d37379348973d2a12e055dbc6c61dc4cbf4 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;
 }