2011-04-01 04:27:40

by Liu Yuan

[permalink] [raw]
Subject: [PATCH] xfs: Remove unused variable ‘bdi’

From: Liu Yuan <[email protected]>

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 <[email protected]>
---
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


2011-04-01 07:14:54

by Dave Chinner

[permalink] [raw]
Subject: Re: [PATCH] xfs: Remove unused v ariable ‘bdi’

On Fri, Apr 01, 2011 at 12:27:30PM +0800, [email protected] wrote:
> From: Liu Yuan <[email protected]>
>
> 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
[email protected]