linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs: fix ext4 unused-variable warning
@ 2020-01-07 20:02 Arnd Bergmann
  2020-01-07 23:19 ` Darrick J. Wong
  2020-01-10 12:25 ` kbuild test robot
  0 siblings, 2 replies; 3+ messages in thread
From: Arnd Bergmann @ 2020-01-07 20:02 UTC (permalink / raw)
  To: Theodore Ts'o, Andreas Dilger, Darrick J. Wong
  Cc: Arnd Bergmann, Andreas Gruenbacher, David Sterba,
	Richard Weinberger, Jan Kara, Ritesh Harjani, Eric Biggers,
	Matthew Bobrowski, Chandan Rajendra, Eric Whitney, linux-ext4,
	linux-kernel

A bugfix introduce a harmless warning:

fs/ext4/inode.c: In function 'ext4_page_mkwrite':
fs/ext4/inode.c:5910:24: error: unused variable 'mapping' [-Werror=unused-variable]

Remove the now-unused variable.

Fixes: 4a58d8158f6d ("fs: Fix page_mkwrite off-by-one errors")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 fs/ext4/inode.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 9a3e8d075cd0..d0049fd0bfd4 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -5907,7 +5907,6 @@ vm_fault_t ext4_page_mkwrite(struct vm_fault *vmf)
 	vm_fault_t ret;
 	struct file *file = vma->vm_file;
 	struct inode *inode = file_inode(file);
-	struct address_space *mapping = inode->i_mapping;
 	handle_t *handle;
 	get_block_t *get_block;
 	int retries = 0;
-- 
2.20.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-10 12:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-07 20:02 [PATCH] fs: fix ext4 unused-variable warning Arnd Bergmann
2020-01-07 23:19 ` Darrick J. Wong
2020-01-10 12:25 ` kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).