staging/lustre/llite: Fix unused variable warning if !CONFIG_FS_POSIX_ACL
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 2 May 2014 16:28:35 +0000 (18:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 May 2014 23:38:08 +0000 (19:38 -0400)
If CONFIG_FS_POSIX_ACL=n:

drivers/staging/lustre/lustre/llite/xattr.c: In function 'll_setxattr_common':
drivers/staging/lustre/lustre/llite/xattr.c:115:27: warning: unused variable 'rce' [-Wunused-variable]

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/xattr.c

index 67a1de4..c6c27bb 100644 (file)
@@ -112,8 +112,8 @@ int ll_setxattr_common(struct inode *inode, const char *name,
        struct ptlrpc_request *req = NULL;
        int xattr_type, rc;
        struct obd_capa *oc;
-       struct rmtacl_ctl_entry *rce = NULL;
 #ifdef CONFIG_FS_POSIX_ACL
+       struct rmtacl_ctl_entry *rce = NULL;
        posix_acl_xattr_header *new_value = NULL;
        ext_acl_xattr_header *acl = NULL;
 #endif