Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6a80699 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Greg Kroah-Hartman
Browse files

staging: lustre: hide unused variable



After a code cleanup, we get a harmless warning about a variable
that is unused when CONFIG_FS_POSIX_ACL is disabled:

drivers/staging/lustre/lustre/llite/xattr.c: In function 'll_xattr_get_common':
drivers/staging/lustre/lustre/llite/xattr.c:312:24: error: unused variable 'lli' [-Werror=unused-variable]

This puts the variable declaration into the same #ifdef.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: 1e1f9ff4 ("staging: lustre: llite: break ll_getxattr_common into 2 functions")
Reviewed-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7894c263
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -309,7 +309,9 @@ static int ll_xattr_get_common(const struct xattr_handler *handler,
{
{
	char fullname[strlen(handler->prefix) + strlen(name) + 1];
	char fullname[strlen(handler->prefix) + strlen(name) + 1];
	struct ll_sb_info *sbi = ll_i2sbi(inode);
	struct ll_sb_info *sbi = ll_i2sbi(inode);
#ifdef CONFIG_FS_POSIX_ACL
	struct ll_inode_info *lli = ll_i2info(inode);
	struct ll_inode_info *lli = ll_i2info(inode);
#endif
	int rc;
	int rc;


	CDEBUG(D_VFSTRACE, "VFS Op:inode="DFID"(%p)\n",
	CDEBUG(D_VFSTRACE, "VFS Op:inode="DFID"(%p)\n",