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 2D684C433F5 for ; Tue, 5 Apr 2022 23:52:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1580219AbiDEXeF (ORCPT ); Tue, 5 Apr 2022 19:34:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444191AbiDEPlA (ORCPT ); Tue, 5 Apr 2022 11:41:00 -0400 Received: from conuserg-09.nifty.com (conuserg-09.nifty.com [210.131.2.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A1EC21A9; Tue, 5 Apr 2022 07:03:31 -0700 (PDT) Received: from grover.. (133-32-177-133.west.xps.vectant.ne.jp [133.32.177.133]) (authenticated) by conuserg-09.nifty.com with ESMTP id 235E2k8N021295; Tue, 5 Apr 2022 23:02:49 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com 235E2k8N021295 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1649167370; bh=OI5QjFeIIWR7CWjIMyrgsMsmmhThQ/JlR8Hn8H2SKxU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EwZqUy+YYd/uAs1mSb79ErncbVd8vd0QgR6mkWd4HA5gZvv357udq6kYxL9MhPTaw X5PrY/cQw2ypzn5vS9+v5dhNs0bOnIz82zlm3PGlDFhn/QNhqHvu8A4n/yK57mBiwu 4NLnkjINTALmXeMtb413wl+dn76sbLQjxrP4apyOuuJlXth1yxsnVXBVtTh6g/ueIc 5vgzAGwHkx97Gqq1LQiqrZlGufF8imzTbOk7/gy6031hQyL8PfYCe8lUpfluNpI7cg o6kTlg7N2dvVu5Zj1mLjuznXSldB+9lFJivPQVuKzXhvTeNa/hGnAkBoTVTEZd34fy fz1O+aHiHXM1g== X-Nifty-SrcIP: [133.32.177.133] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Michal Marek , Nick Desaulniers Subject: [PATCH v2 05/10] modpost: remove redundant initializes for static variables Date: Tue, 5 Apr 2022 23:02:24 +0900 Message-Id: <20220405140229.2895394-6-masahiroy@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220405140229.2895394-1-masahiroy@kernel.org> References: <20220405140229.2895394-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These are cleared without explicit initializes. Signed-off-by: Masahiro Yamada --- Changes in v2: - New scripts/mod/modpost.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index f9e54247ae1d..2a202764ff48 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -23,15 +23,15 @@ #include "../../include/linux/license.h" /* Are we using CONFIG_MODVERSIONS? */ -static int modversions = 0; +static int modversions; /* Is CONFIG_MODULE_SRCVERSION_ALL set? */ -static int all_versions = 0; +static int all_versions; /* If we are modposting external module set to 1 */ -static int external_module = 0; +static int external_module; /* Only warn about unresolved symbols */ -static int warn_unresolved = 0; +static int warn_unresolved; /* How a symbol is exported */ -static int sec_mismatch_count = 0; +static int sec_mismatch_count; static int sec_mismatch_warn_only = true; /* ignore missing files */ static int ignore_missing_files; -- 2.32.0