Message ID | 20220720193323.7848-1-gaoxin@cdjrlc.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=2xDMEQB8; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Lp5Xp4hy4z9s1l for <incoming@patchwork.ozlabs.org>; Thu, 21 Jul 2022 05:36:10 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=5Ip2xFQ9hVb4MB1HcNjX8J2TQDwoXskesXh/nDjTPOM=; b=2xDMEQB8SUKhyv Hvf/BCX6fCjC0p1evY7xkHAQSsx10/5MVsYHSoyvNqDLrCt8O7FjoE88iWRp9TRxmcSt5bt0CS32z zPArFmMZ4M1sop+IrOTo9SDVLWprtBG3uXKurB+6GK5yfWc+4u0Mxe49zCe/e+VeH6sLlx99LVgVD DIxe4punPhbgsQgst6+juYWEQx6OuiwtJgrV0iHjUKMD+dUwEC9Ntp6OJnOuSQL6VKlQVMEe9QNhd Cu89qOlAjDxXeWDs3lETaEQpdhsIpCi/VTZQH+rOIsJ9OzpGeXvTo+JX9JyW88yysRNaHVmvfhMyK /HKVfwN6LEAdv6folnEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEFUH-009yKK-6p; Wed, 20 Jul 2022 19:36:01 +0000 Received: from [43.155.65.254] (helo=smtpbg.qq.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEFUB-009yAO-0B for linux-um@lists.infradead.org; Wed, 20 Jul 2022 19:36:00 +0000 X-QQ-mid: bizesmtp91t1658345619tlxc36xd Received: from harry-jrlc.. ( [125.70.163.183]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 21 Jul 2022 03:33:26 +0800 (CST) X-QQ-SSF: 0100000000200030C000B00A0000020 X-QQ-FEAT: +bXiSo2NuBdrFYQDLwG0mkbTmkYoUp0G4ZKwN7IgFJwdFj8YlnEZ78Ce/Npke nw39G9HLqWuqKsFNKux4+eVnuakvTR7zG8DVV5Q6G4Yp3SzyxrROZp+bXDnakoHb0kgkqP/ ew8aEhDI7hdvPYIToPyaaC0tV5NGiT5C8RiaqvMCgpmrBCqh5Fqt+E56fTSmwUt6v1I8lJh eHtvWBG0U8WmD0Khe/o8GT5gaPodJnbxfBEO0uMg+ZTIv0H9I7j37TZz7bmVyGo+V1jEv/O GHjAmYdDGpuKEcCJITsOSl3w9V9FQCG31/pgOkIscXTYTRG51jK4P9hUtyR3fxCyZwzthyp 4mUH9/cMVdZ/kUHd5xD+K7sMfCEFtg4/rWTiEUJomYP8B5LB/nOmtKNbaG8qw== X-QQ-GoodBg: 0 From: Xin Gao <gaoxin@cdjrlc.com> To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, Xin Gao <gaoxin@cdjrlc.com> Subject: [PATCH] kernel:do not initialise statics to 0. Date: Thu, 21 Jul 2022 03:33:23 +0800 Message-Id: <20220720193323.7848-1-gaoxin@cdjrlc.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybglogicsvr:qybglogicsvr6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220720_123555_362632_C9B281B0 X-CRM114-Status: UNSURE ( 7.72 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: do not initialise statics to 0. Signed-off-by: Xin Gao <gaoxin@cdjrlc.com> --- arch/um/drivers/mconsole_kern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c index 8ca67a692683..de40e7822fa6 100644 --- a/arch/um/drivers/mconsole_kern.c +++ b/arch/um/drivers/mconsole_kern.c @@ -2 [...] Content analysis details: (1.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 T_SPF_HELO_TEMPERROR SPF: test of HELO record failed (temperror) 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-um.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-um>, <mailto:linux-um-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-um/> List-Post: <mailto:linux-um@lists.infradead.org> List-Help: <mailto:linux-um-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-um>, <mailto:linux-um-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-um" <linux-um-bounces@lists.infradead.org> Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
kernel:do not initialise statics to 0.
|
expand
|
diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c index 8ca67a692683..de40e7822fa6 100644 --- a/arch/um/drivers/mconsole_kern.c +++ b/arch/um/drivers/mconsole_kern.c @@ -283,7 +283,7 @@ struct unplugged_pages { }; static DEFINE_MUTEX(plug_mem_mutex); -static unsigned long long unplugged_pages_count = 0; +static unsigned long long unplugged_pages_count; static LIST_HEAD(unplugged_pages); static int unplug_index = UNPLUGGED_PER_PAGE;
do not initialise statics to 0. Signed-off-by: Xin Gao <gaoxin@cdjrlc.com> --- arch/um/drivers/mconsole_kern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)