diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-25 17:13:46 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-31 17:25:23 +0100 |
commit | 336c7135b81dd4c458bb508b0e85d422e748fd15 (patch) | |
tree | 130b1723f6812fab06b57dd93975089146edd020 /src/compat/compat.h | |
parent | peer: store total number of peers instead of iterating (diff) | |
download | wireguard-linux-compat-336c7135b81dd4c458bb508b0e85d422e748fd15.tar.xz wireguard-linux-compat-336c7135b81dd4c458bb508b0e85d422e748fd15.zip |
global: infuriating kernel iterator style
One types:
for (i = 0 ...
So one should also type:
for_each_obj (obj ...
But the upstream kernel style guidelines are insane, and so we must
instead do:
for_each_obj(obj ...
Ugly, but one must choose his battles wisely.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r-- | src/compat/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index e8076db..34353ea 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -162,7 +162,7 @@ static inline void netif_keep_dst(struct net_device *dev) typeof(type) __percpu *pcpu_stats = alloc_percpu(type); \ if (pcpu_stats) { \ int __cpu; \ - for_each_possible_cpu (__cpu) { \ + for_each_possible_cpu(__cpu) { \ typeof(type) *stat; \ stat = per_cpu_ptr(pcpu_stats, __cpu); \ u64_stats_init(&stat->syncp); \ |