]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Conditionalise a new unused variable
authorArnd Bergmann <arnd@arndb.de>
Fri, 13 Jan 2017 14:46:19 +0000 (14:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jan 2017 18:30:52 +0000 (13:30 -0500)
commit632715971fa49e61ea5f208e2019540de04672f3
treec77cbdcbaf695adfb44269390dd668a96b834b86
parent3f39980b4a1ab5fab6f8360efe9d871d38fd129c
afs: Conditionalise a new unused variable

The bulk readpages support introduced a harmless warning:

fs/afs/file.c: In function 'afs_readpages_page_done':
fs/afs/file.c:270:20: error: unused variable 'vnode' [-Werror=unused-variable]

This adds an #ifdef to match the user of that variable.  The user of the
variable has to be conditional because it accesses a member of a struct
that is also conditional.

Fixes: 0d2d78d15088 ("afs: Make afs_readpages() fetch data in bulk")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/afs/file.c