public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfs: Remove unused variable ‘bdi’
@ 2011-04-01  4:27 namei.unix
  2011-04-01  7:14 ` Dave Chinner
  0 siblings, 1 reply; 2+ messages in thread
From: namei.unix @ 2011-04-01  4:27 UTC (permalink / raw)
  To: Alex Elder
  Cc: Liu Yuan, supporter:XFS FILESYSTEM, open list:XFS FILESYSTEM,
	open list

From: Liu Yuan <tailai.ly@taobao.com>

When building kernel, I met a warning:
...
fs/xfs/linux-2.6/xfs_buf.c:660: warning: unused variable ‘bdi’
...

So just remove it.

Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
---
 fs/xfs/linux-2.6/xfs_buf.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c
index 596bb2c..d917146 100644
--- a/fs/xfs/linux-2.6/xfs_buf.c
+++ b/fs/xfs/linux-2.6/xfs_buf.c
@@ -657,8 +657,6 @@ xfs_buf_readahead(
 	xfs_off_t		ioff,
 	size_t			isize)
 {
-	struct backing_dev_info *bdi;
-
 	if (bdi_read_congested(target->bt_bdi))
 		return;
 
-- 
1.7.1


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

* Re: [PATCH] xfs: Remove unused variable ‘bdi’
  2011-04-01  4:27 [PATCH] xfs: Remove unused variable ‘bdi’ namei.unix
@ 2011-04-01  7:14 ` Dave Chinner
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Chinner @ 2011-04-01  7:14 UTC (permalink / raw)
  To: namei.unix
  Cc: Alex Elder, Liu Yuan, supporter:XFS FILESYSTEM,
	open list:XFS FILESYSTEM, open list

On Fri, Apr 01, 2011 at 12:27:30PM +0800, namei.unix@gmail.com wrote:
> From: Liu Yuan <tailai.ly@taobao.com>
> 
> When building kernel, I met a warning:
> ...
> fs/xfs/linux-2.6/xfs_buf.c:660: warning: unused variable ‘bdi’
> ...

There is alreayd a patch in the XFS tree to fix this:

http://oss.sgi.com/archives/xfs/2011-03/msg00397.html

Cheers,

Dave.

-- 
Dave Chinner
david@fromorbit.com

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

end of thread, other threads:[~2011-04-01  7:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-01  4:27 [PATCH] xfs: Remove unused variable ‘bdi’ namei.unix
2011-04-01  7:14 ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox