From 3b2bbceb56ce4bbc679a31a0877e396db2c845d9 Mon Sep 17 00:00:00 2001 From: Pravin B Shelar Date: Sat, 20 Sep 2014 05:36:47 -0700 Subject: [PATCH] datapath: fix sparse warning. 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 --- datapath/linux/compat/include/linux/netdevice.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datapath/linux/compat/include/linux/netdevice.h b/datapath/linux/compat/include/linux/netdevice.h index 55022882f..35b04d0c7 100644 --- a/datapath/linux/compat/include/linux/netdevice.h +++ b/datapath/linux/compat/include/linux/netdevice.h @@ -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); \ } \ } \ -- 2.20.1