History

tags: Fix DEFINE_PER_CPU expansions

$ make tags GEN tags ctags: Warning: drivers/acpi/processor_idle.c:64: null expansion of name pattern "\1" ctags: Warning: drivers/xen/events/events_2l.c:41: null expansion of name pattern "\1" ctags: Warning: kernel/locking/lockdep.c:151: null expansion of name pattern "\1" ctags: Warning: kernel/rcu/rcutorture.c:133: null expansion of name pattern "\1" ctags: Warning: kernel/rcu/rcutorture.c:135: null expansion of name pattern "\1" ctags: Warning: kernel/workqueue.c:323: null expansion of name pattern "\1" ctags: Warning: net/ipv4/syncookies.c:53: null expansion of name pattern "\1" ctags: Warning: net/ipv6/syncookies.c:44: null expansion of name pattern "\1" ctags: Warning: net/rds/page.c:45: null expansion of name pattern "\1" Which are all the result of the DEFINE_PER_CPU pattern: scripts/tags.sh:200: '/\<DEFINE_PER_CPU([^,]*, *\([[:alnum:]_]*\)/\1/v/' scripts/tags.sh:201: '/\<DEFINE_PER_CPU_SHARED_ALIGNED([^,]*, *\([[:alnum:]_]*\)/\1/v/' The below cures them. All except the workqueue one are within reasonable distance of the 80 char limit. TJ do you have any preference on how to fix the wq one, or shall we just not care its too long?

Peter Zijlstra committed 10 years ago

Commit 25528211 parent e6fd1fb8 files · +13 −18Browse files

Showing the changes to kernel/workqueue.c (1 of 8 files). Show all

Unified · Split

kernel/workqueue.c+1−2
@@ -320,8 +320,7 @@ static bool wq_debug_force_rr_cpu = false; · 319 unmodified lines
320320 module_param_named(debug_force_rr_cpu, wq_debug_force_rr_cpu, bool, 0644);
321321
322322 /* the per-cpu worker pools */
323−static DEFINE_PER_CPU_SHARED_ALIGNED(struct worker_pool [NR_STD_WORKER_POOLS],
324− cpu_worker_pools);
323+static DEFINE_PER_CPU_SHARED_ALIGNED(struct worker_pool [NR_STD_WORKER_POOLS], cpu_worker_pools);
325324
326325 static DEFINE_IDR(worker_pool_idr); /* PR: idr of all pools */
327326