[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20170111134245.3850771-1-arnd@arndb.de>
Date: Wed, 11 Jan 2017 14:42:27 +0100
From: Arnd Bergmann <arnd@...db.de>
To: David Howells <dhowells@...hat.com>
Cc: Arnd Bergmann <arnd@...db.de>, linux-afs@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] afs: hide a new unused variable
The buld 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.
Fixes: 91b467e0a3f5 ("afs: Make afs_readpages() fetch data in bulk")
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
fs/afs/file.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/afs/file.c b/fs/afs/file.c
index 82897a78abc7..ba7b71fba34b 100644
--- a/fs/afs/file.c
+++ b/fs/afs/file.c
@@ -267,7 +267,9 @@ static int afs_readpage(struct file *file, struct page *page)
*/
static void afs_readpages_page_done(struct afs_call *call, struct afs_read *req)
{
+#ifdef CONFIG_AFS_FSCACHE
struct afs_vnode *vnode = call->reply;
+#endif
struct page *page = req->pages[req->index];
req->pages[req->index] = NULL;
--
2.9.0
Powered by blists - more mailing lists