* [PATCH] fs/bio.c: fix shadows sparse warning.
@ 2010-01-19 1:13 Thiago Farina
2010-01-19 17:40 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Thiago Farina @ 2010-01-19 1:13 UTC (permalink / raw)
To: linux-kernel
Cc: Alexander Viro, Jens Axboe, Martin K. Petersen, Tejun Heo,
Alberto Bertogli, Jiri Kosina, linux-fsdevel
fs/bio.c:81:33: warning: symbol 'bslab' shadows an earlier one
fs/bio.c:74:25: originally declared here
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
---
fs/bio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/bio.c b/fs/bio.c
index 76e6713..12429c9 100644
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -78,7 +78,7 @@ static struct kmem_cache *bio_find_or_create_slab(unsigned int extra_size)
i = 0;
while (i < bio_slab_nr) {
- struct bio_slab *bslab = &bio_slabs[i];
+ bslab = &bio_slabs[i];
if (!bslab->slab && entry == -1)
entry = i;
--
1.6.6.201.g56119
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fs/bio.c: fix shadows sparse warning.
2010-01-19 1:13 [PATCH] fs/bio.c: fix shadows sparse warning Thiago Farina
@ 2010-01-19 17:40 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2010-01-19 17:40 UTC (permalink / raw)
To: Thiago Farina
Cc: linux-kernel, Alexander Viro, Martin K. Petersen, Tejun Heo,
Alberto Bertogli, Jiri Kosina, linux-fsdevel
On Mon, Jan 18 2010, Thiago Farina wrote:
> fs/bio.c:81:33: warning: symbol 'bslab' shadows an earlier one
> fs/bio.c:74:25: originally declared here
Thanks, added.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-19 17:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-19 1:13 [PATCH] fs/bio.c: fix shadows sparse warning Thiago Farina
2010-01-19 17:40 ` Jens Axboe
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).