Skip to contentSkip to conversation

xfs: fix unused variable warning

PATCH In review Dave Chinner 2 participants 3 messages Oct 6, 2011 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs: fix unused variable warning

From: Dave Chinner <[email protected]>

Fix this warning:

fs/xfs/xfs_aops.c: In function 'xfs_end_io_direct_write':
fs/xfs/xfs_aops.c:1280:17: warning: unused variable 'inode' [-Wunused-variable]

---
 fs/xfs/xfs_aops.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
fs/xfs/xfs_aops.c +0 -1
index 462e937..11b2aad 100644
@@ -1277,7 +1277,6 @@ xfs_end_io_direct_write(
 	bool			is_async)
 {
 	struct xfs_ioend	*ioend = iocb->private;
-	struct inode		*inode = ioend->io_inode;
 
 	/*
 	 * blockdev_direct_IO can return an error even after the I/O
Signature · 6 lines
1.7.5.4

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#1 lore raw
Quoted 8 lines · Dave Chinner

From: Dave Chinner <[email protected]>

Fix this warning:

fs/xfs/xfs_aops.c: In function 'xfs_end_io_direct_write':
fs/xfs/xfs_aops.c:1280:17: warning: unused variable 'inode' [-Wunused-variable]

That line of code is not present in the current XFS master branch on oss.sgi.com.

-Alex

Quoted 9 lines
---
 fs/xfs/xfs_aops.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
fs/xfs/xfs_aops.c +0 -0
index 462e937..11b2aad 100644

fs/xfs/xfs_aops.c xfs_end_io_direct_write( · line 1282

Quoted 7 lines
fs/xfs/xfs_aops.c +0 -1
@@ -1277,7 +1277,6 @@ xfs_end_io_direct_write(
 	bool			is_async)
 {
 	struct xfs_ioend	*ioend = iocb->private;
-	struct inode		*inode = ioend->io_inode;
 
 	/*
 	 * blockdev_direct_IO can return an error even after the I/O

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#2 lore raw
Quoted 5 lines · Alex Elder
Quoted 4 lines · Dave Chinner

From: Dave Chinner <[email protected]>

Fix this warning:

Quoted 7 lines
Quoted 4 lines

fs/xfs/xfs_aops.c: In function 'xfs_end_io_direct_write':
fs/xfs/xfs_aops.c:1280:17: warning: unused variable 'inode' [-Wunused-variable]

That line of code is not present in the current XFS master branch on oss.sgi.com.

I've got a 3.1-rc9 kernel that I merged the current XFS tree in. There were a couple of merge conflicts that I fixed, so maybe that's where it came from. I'll check.

Cheers,

Dave.

Signature · 7 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs