[PATCH 2.6] clean-up: fixes "shadows global" warning

From: Riina Kikas
Date: Mon Dec 06 2004 - 16:07:03 EST


This patch fixes warning "declaration of `index' shadows a global declaration"
occuring on line 384

Signed-off-by: Riina Kikas <Riina.Kikas@xxxxxxx>

--- a/mm/swap.c 2004-08-14 10:55:19.000000000 +0000
+++ b/mm/swap.c 2004-12-02 20:56:43.000000000 +0000
@@ -381,9 +381,9 @@
}

unsigned pagevec_lookup_tag(struct pagevec *pvec, struct address_space *mapping,
- pgoff_t *index, int tag, unsigned nr_pages)
+ pgoff_t *asc_index, int tag, unsigned nr_pages)
{
- pvec->nr = find_get_pages_tag(mapping, index, tag,
+ pvec->nr = find_get_pages_tag(mapping, asc_index, tag,
nr_pages, pvec->pages);
return pagevec_count(pvec);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/