Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5809404imw; Wed, 20 Jul 2022 13:02:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u5/ytykJPoRIXJzcRx+AktiY40xeIx6lOG36eek29/97rZYD468JuFlvBvE+9+JAyfCRem X-Received: by 2002:a4a:b38b:0:b0:428:7f89:d3fc with SMTP id p11-20020a4ab38b000000b004287f89d3fcmr14142402ooo.61.1658347351065; Wed, 20 Jul 2022 13:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658347351; cv=none; d=google.com; s=arc-20160816; b=ty6p9QyErA5rO260WxrahYMJoMa7Poqw7FZlPV1ewVqDbPrMCm34A0VNjsgLiR7W/e QcyW45+lJjb99Cq2wJtSnSEYhjIVWHoHZYwfZMTg5j7NcpYTQJXdO4hZk/TkzKXljW58 u7jAB4ZFTNB4ldxJnZd0/GgL3hfNlHwwxT4rquRKa5UpT/swawIdxtgmUQqDFvD6KBSu Q7zMKatEXhIu2iq6Fq6CL88qFs5AWTFIlcf5oTlS/s3zSojuQsxEGZfrCdFoafdQX8IC 7XXAacp9hE1UHmH8s6crwJP7UvMhv8lzZMslFyQAvraEo+iqlD5UejIf81XbZa9ew0nS VOoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=NMl4NJcX4jIv74soU3y6aOViVuel7voUsiHJTe0OTwU=; b=L14PXSaauohuembJGUdOnQ77+pqZqOxyF3wHOs2lEK4Dnq70+axWSiXfNnJwaJ4MQa 3TvLb4jS4eE77e6Y8ZW7irFti3bmHXi7o7ullLrdh6ryjsMP38YaQC3jVTIH/sSSXbaw REdenz5UX8EqQVM2gR8wEbZrVodLyvhjloG58xiCRHu2gsUxqvUdFobcY+L1YFmWa1ZA MTQCSnJK5+5AgHjGuhetEBMDO0lDyxS9k+5ShXgb4sgN422dxfVVX7EyUIsJ6QwpiGPX XWqKsixt87fFsATnKErn6ZbTjonYnEs3KddMcKNEOKrqv1+EyNYPv8wHtsopiRFzy9NX 0Ztg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h206-20020aca3ad7000000b00331576b6d57si17321534oia.219.2022.07.20.13.02.16; Wed, 20 Jul 2022 13:02:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233861AbiGTTcG (ORCPT + 99 others); Wed, 20 Jul 2022 15:32:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231135AbiGTTcF (ORCPT ); Wed, 20 Jul 2022 15:32:05 -0400 Received: from smtpbg.qq.com (biz-43-154-54-12.mail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A5064C60F for ; Wed, 20 Jul 2022 12:31:59 -0700 (PDT) X-QQ-mid: bizesmtp79t1658345371tlldvzkb Received: from harry-jrlc.. ( [125.70.163.183]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 21 Jul 2022 03:29:18 +0800 (CST) X-QQ-SSF: 0100000000200030C000B00A0000000 X-QQ-FEAT: eSZ1CZgv+JBwvEJ1SHKfm2QxE6P9LIKgQPgHFaX8SnIXr7PdBiCjAqywFYKH9 5WJF1aFA230+piHtPRcekobU+PYuyQ66GnB/iD/wJuY/kbGKAlUoGKCYSYu0QJwD1Q+KEv2 uhHAc6X8g/fqgAxWBe8FH4chjmdi7MCVwDoUT3CVsbDJLDFS+Ul/7v9bMc32vaPv7IbcveF H9uejwoAf/IuA2vlqcv9RIGxS5DpRnmjlsSWSuQ+1uQf+49R26mLvTrXbMKhnbC+Flbwpgn 51mgo0dTxndmGlYxSfj72UCy28mgljsla1jA2Gtzidl7am+KJNw+KDWh2qVW/np5srFUxSn fUdW26oPB5uYIQulB1PJ8Wu+tUHL5ty5v5OPnxtVTIyz+JkRVI= X-QQ-GoodBg: 0 From: Xin Gao To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: axboe@kernel.dk, martin.petersen@oracle.com, hoeppner@linux.ibm.com, kch@nvidia.com, frederic.danis@collabora.com, mcgrof@kernel.org, linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, Xin Gao Subject: [PATCH] ubd:do not initialise statics to 0. Date: Thu, 21 Jul 2022 03:29:16 +0800 Message-Id: <20220720192916.7564-1-gaoxin@cdjrlc.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybglogicsvr:qybglogicsvr6 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,RDNS_DYNAMIC, SPF_PASS,T_SPF_HELO_TEMPERROR autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org do not initialise statics to 0. Signed-off-by: Xin Gao --- arch/um/drivers/ubd_kern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index c4344b67628d..ae2fb671ba72 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c @@ -1555,7 +1555,7 @@ static void do_io(struct io_thread_req *req, struct io_desc *desc) int kernel_fd = -1; /* Only changed by the io thread. XXX: currently unused. */ -static int io_count = 0; +static int io_count; int io_thread(void *arg) { -- 2.30.2