Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kcsan: Remove redundant zero-initialization of globals

They are implicitly zero-initialized, remove explicit initialization.
It keeps the upcoming additions to kcsan_ctx consistent with the rest.

No functional change intended.

Signed-off-by: Marco Elver <elver@google.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>

authored by

Marco Elver and committed by
Paul E. McKenney
71f8de70 12305abe

-10
-5
init/init_task.c
··· 182 182 #endif 183 183 #ifdef CONFIG_KCSAN 184 184 .kcsan_ctx = { 185 - .disable_count = 0, 186 - .atomic_next = 0, 187 - .atomic_nest_count = 0, 188 - .in_flat_atomic = false, 189 - .access_mask = 0, 190 185 .scoped_accesses = {LIST_POISON1, NULL}, 191 186 }, 192 187 #endif
-5
kernel/kcsan/core.c
··· 44 44 45 45 /* Per-CPU kcsan_ctx for interrupts */ 46 46 static DEFINE_PER_CPU(struct kcsan_ctx, kcsan_cpu_ctx) = { 47 - .disable_count = 0, 48 - .atomic_next = 0, 49 - .atomic_nest_count = 0, 50 - .in_flat_atomic = false, 51 - .access_mask = 0, 52 47 .scoped_accesses = {LIST_POISON1, NULL}, 53 48 }; 54 49