提交 71f8de70 编写于 作者: M Marco Elver 提交者: Paul E. McKenney

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: NMarco Elver <elver@google.com>
Acked-by: NMark Rutland <mark.rutland@arm.com>
Signed-off-by: NPaul E. McKenney <paulmck@kernel.org>
上级 12305abe
...@@ -182,11 +182,6 @@ struct task_struct init_task ...@@ -182,11 +182,6 @@ struct task_struct init_task
#endif #endif
#ifdef CONFIG_KCSAN #ifdef CONFIG_KCSAN
.kcsan_ctx = { .kcsan_ctx = {
.disable_count = 0,
.atomic_next = 0,
.atomic_nest_count = 0,
.in_flat_atomic = false,
.access_mask = 0,
.scoped_accesses = {LIST_POISON1, NULL}, .scoped_accesses = {LIST_POISON1, NULL},
}, },
#endif #endif
......
...@@ -44,11 +44,6 @@ bool kcsan_enabled; ...@@ -44,11 +44,6 @@ bool kcsan_enabled;
/* Per-CPU kcsan_ctx for interrupts */ /* Per-CPU kcsan_ctx for interrupts */
static DEFINE_PER_CPU(struct kcsan_ctx, kcsan_cpu_ctx) = { static DEFINE_PER_CPU(struct kcsan_ctx, kcsan_cpu_ctx) = {
.disable_count = 0,
.atomic_next = 0,
.atomic_nest_count = 0,
.in_flat_atomic = false,
.access_mask = 0,
.scoped_accesses = {LIST_POISON1, NULL}, .scoped_accesses = {LIST_POISON1, NULL},
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册