From patchwork Mon Nov 23 03:31:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Tang X-Patchwork-Id: 7677501 X-Patchwork-Delegate: axboe@kernel.dk Return-Path: X-Original-To: patchwork-linux-block@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EE0FF9FCA2 for ; Mon, 23 Nov 2015 03:41:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 34203206BD for ; Mon, 23 Nov 2015 03:41:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8DDD320643 for ; Mon, 23 Nov 2015 03:41:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753104AbbKWDl2 (ORCPT ); Sun, 22 Nov 2015 22:41:28 -0500 Received: from n9-34.mail.139.com ([221.176.9.34]:62287 "EHLO n9-34.mail.139.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752985AbbKWDl1 (ORCPT ); Sun, 22 Nov 2015 22:41:27 -0500 X-Greylist: delayed 588 seconds by postgrey-1.27 at vger.kernel.org; Sun, 22 Nov 2015 22:41:27 EST X-Richmail-Antispam: sCL2rVi0borhSzeOjpYxWEmrxqxSIjpgsIL2jVqxeZIR0RM= X-RM-SPAM-FLAG: 00000000 Received: from localhost (unknown[223.68.205.133]) by rmsmtp-rmapp-15-12033 (RichMail) with SMTP id 2f0156528899f38-d17bf; Mon, 23 Nov 2015 11:31:38 +0800 (CST) X-RM-TRANSID: 2f0156528899f38-d17bf From: Wei Tang To: axboe@kernel.dk Cc: linux-block@vger.kernel.org, Wei Tang Subject: [PATCH 2/2] block: fix error in genhd.c Date: Mon, 23 Nov 2015 11:31:26 +0800 Message-Id: <1448249486-8922-3-git-send-email-tangwei@cmss.chinamobile.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448249486-8922-1-git-send-email-tangwei@cmss.chinamobile.com> References: <1448249486-8922-1-git-send-email-tangwei@cmss.chinamobile.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the checkpatch.pl error to genhd.c: ERROR: do not initialise statics to 0 Signed-off-by: Wei Tang --- block/genhd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/genhd.c b/block/genhd.c index e5cafa5..78140b4 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -1421,7 +1421,7 @@ static DEFINE_MUTEX(disk_events_mutex); static LIST_HEAD(disk_events); /* disable in-kernel polling by default */ -static unsigned long disk_events_dfl_poll_msecs = 0; +static unsigned long disk_events_dfl_poll_msecs; static unsigned long disk_events_poll_jiffies(struct gendisk *disk) {