genhd: overlapping variable definition

This fixes the sparse warning:
fs/ext4/super.c:2390:40: warning: symbol 'i' shadows an earlier one
fs/ext4/super.c:2368:22: originally declared here

Using 'i' in a macro is dubious practice.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

authored by Stephen Hemminger and committed by Jens Axboe 7af92f87 ce289321

+3 -3
+3 -3
include/linux/genhd.h
··· 256 #define part_stat_read(part, field) \ 257 ({ \ 258 typeof((part)->dkstats->field) res = 0; \ 259 - int i; \ 260 - for_each_possible_cpu(i) \ 261 - res += per_cpu_ptr((part)->dkstats, i)->field; \ 262 res; \ 263 }) 264
··· 256 #define part_stat_read(part, field) \ 257 ({ \ 258 typeof((part)->dkstats->field) res = 0; \ 259 + unsigned int _cpu; \ 260 + for_each_possible_cpu(_cpu) \ 261 + res += per_cpu_ptr((part)->dkstats, _cpu)->field; \ 262 res; \ 263 }) 264