datapath: fix sparse warning.
authorPravin B Shelar <pshelar@nicira.com>
Sat, 20 Sep 2014 12:36:47 +0000 (05:36 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Sun, 21 Sep 2014 02:36:33 +0000 (19:36 -0700)
datapath/linux/datapath.c:1418:28: warning: symbol
'i' shadows an earlier one
datapath/linux/datapath.c:1396:18: originally declared here

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
datapath/linux/compat/include/linux/netdevice.h

index 5502288..35b04d0 100644 (file)
@@ -145,10 +145,10 @@ struct pcpu_sw_netstats {
 ({                                                             \
        typeof(type) __percpu *pcpu_stats = alloc_percpu(type); \
        if (pcpu_stats) {                                       \
-               int i;                                          \
-               for_each_possible_cpu(i) {                      \
+               int ____i;                                      \
+               for_each_possible_cpu(____i) {                  \
                        typeof(type) *stat;                     \
-                       stat = per_cpu_ptr(pcpu_stats, i);      \
+                       stat = per_cpu_ptr(pcpu_stats, ____i);  \
                        u64_stats_init(&stat->syncp);           \
                }                                               \
        }                                                       \