diff options
-rw-r--r-- | include/linux/netdevice.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index dae106a3a998..dbad4d728b4b 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -2025,10 +2025,10 @@ struct pcpu_sw_netstats { | |||
2025 | ({ \ | 2025 | ({ \ |
2026 | typeof(type) __percpu *pcpu_stats = alloc_percpu(type); \ | 2026 | typeof(type) __percpu *pcpu_stats = alloc_percpu(type); \ |
2027 | if (pcpu_stats) { \ | 2027 | if (pcpu_stats) { \ |
2028 | int i; \ | 2028 | int __cpu; \ |
2029 | for_each_possible_cpu(i) { \ | 2029 | for_each_possible_cpu(__cpu) { \ |
2030 | typeof(type) *stat; \ | 2030 | typeof(type) *stat; \ |
2031 | stat = per_cpu_ptr(pcpu_stats, i); \ | 2031 | stat = per_cpu_ptr(pcpu_stats, __cpu); \ |
2032 | u64_stats_init(&stat->syncp); \ | 2032 | u64_stats_init(&stat->syncp); \ |
2033 | } \ | 2033 | } \ |
2034 | } \ | 2034 | } \ |