Skip to contentSkip to conversation

clean-up: fixes "shadows global" warning

PATCH New Riina Kikas 1 participant 1 message Dec 6, 2004 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clean-up: fixes "shadows global" warning

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

mm/swap.c +2 -2
@@ -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);
 }