From 7491cd4c22601eb0c3bedfea740f2aec3b8372ed Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 25 Oct 2017 17:13:46 +0200 Subject: 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. --- src/queueing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/queueing.c') diff --git a/src/queueing.c b/src/queueing.c index fa50511..bce406a 100644 --- a/src/queueing.c +++ b/src/queueing.c @@ -10,7 +10,7 @@ struct multicore_worker __percpu *packet_alloc_percpu_multicore_worker(work_func if (!worker) return NULL; - for_each_possible_cpu (cpu) { + for_each_possible_cpu(cpu) { per_cpu_ptr(worker, cpu)->ptr = ptr; INIT_WORK(&per_cpu_ptr(worker, cpu)->work, function); } -- cgit v1.2.3-59-g8ed1b