From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8886EC433F5 for ; Tue, 14 Dec 2021 22:05:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237987AbhLNWEy (ORCPT ); Tue, 14 Dec 2021 17:04:54 -0500 Received: from sin.source.kernel.org ([145.40.73.55]:58658 "EHLO sin.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232627AbhLNWEp (ORCPT ); Tue, 14 Dec 2021 17:04:45 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 721EACE1AEA for ; Tue, 14 Dec 2021 22:04:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98898C34600; Tue, 14 Dec 2021 22:04:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639519481; bh=IGN8ReT2YMdmmonjEhHHzK/Gd2DYRPVNl2TypuNTbRA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EWYhAJOBo+z+JpdFOKquQCGyj8LBp2p7ZUNEhLrbE9AwPVdLYUgCLkUIwNGI9iOvu ucf4Vu/jML8Xgn5p+MlBVJtd9YJyM9t5fxjBuo1UbZOws/IIprgXVhPFfDYsP+J2S9 00z7181HANCHcBrqdIKs148nLmUH8UVTpcQwxle3a0JnTjdhRHd9RNDNOrCT+J2XEf TVzjCL+IZa36XznR42lhOvWcs22jryzDaMLWuWHVgUcZSpJteiijJIiJCR/a/2/UYW FymLVw4Hl/ByQ/S9FoEqvaormGWfCf4a55qnPrpQwXybO8v4MWr5DXmA+/3cJ9Pqf7 UFwFrrFgG/+4w== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 5C1485C0556; Tue, 14 Dec 2021 14:04:41 -0800 (PST) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, kernel-team@fb.com, mingo@kernel.org Cc: elver@google.com, andreyknvl@google.com, glider@google.com, dvyukov@google.com, cai@lca.pw, boqun.feng@gmail.com, Mark Rutland , "Paul E . McKenney" Subject: [PATCH kcsan 02/29] kcsan: Remove redundant zero-initialization of globals Date: Tue, 14 Dec 2021 14:04:12 -0800 Message-Id: <20211214220439.2236564-2-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20211214220356.GA2236323@paulmck-ThinkPad-P17-Gen-1> References: <20211214220356.GA2236323@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marco Elver 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 Acked-by: Mark Rutland Signed-off-by: Paul E. McKenney --- init/init_task.c | 5 ----- kernel/kcsan/core.c | 5 ----- 2 files changed, 10 deletions(-) diff --git a/init/init_task.c b/init/init_task.c index 2d024066e27bd..73cc8f03511a3 100644 --- a/init/init_task.c +++ b/init/init_task.c @@ -182,11 +182,6 @@ struct task_struct init_task #endif #ifdef CONFIG_KCSAN .kcsan_ctx = { - .disable_count = 0, - .atomic_next = 0, - .atomic_nest_count = 0, - .in_flat_atomic = false, - .access_mask = 0, .scoped_accesses = {LIST_POISON1, NULL}, }, #endif diff --git a/kernel/kcsan/core.c b/kernel/kcsan/core.c index 6bfd3040f46be..e34a1710b7bcc 100644 --- a/kernel/kcsan/core.c +++ b/kernel/kcsan/core.c @@ -44,11 +44,6 @@ bool kcsan_enabled; /* Per-CPU kcsan_ctx for interrupts */ 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}, }; -- 2.31.1.189.g2e36527f23