From patchwork Tue Nov 24 01:58:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Tang X-Patchwork-Id: 7687201 X-Patchwork-Delegate: axboe@kernel.dk Return-Path: X-Original-To: patchwork-linux-block@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B7D0DBF90C for ; Tue, 24 Nov 2015 02:08:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0A06420861 for ; Tue, 24 Nov 2015 02:08:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 37762207E7 for ; Tue, 24 Nov 2015 02:08:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752702AbbKXCIv (ORCPT ); Mon, 23 Nov 2015 21:08:51 -0500 Received: from n9-29.mail.139.com ([221.176.9.29]:38646 "EHLO n9-29.mail.139.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751568AbbKXCIu (ORCPT ); Mon, 23 Nov 2015 21:08:50 -0500 X-Greylist: delayed 590 seconds by postgrey-1.27 at vger.kernel.org; Mon, 23 Nov 2015 21:08:50 EST X-Richmail-Antispam: sCL2rVi0borhSzeOjpYxWEmrxqxSIjpgsIL2jVqxeZIR0RM= X-RM-SPAM-FLAG: 00000000 Received: from localhost (unknown[223.68.205.133]) by rmsmtp-rmapp-10-12026 (RichMail) with SMTP id 2efa5653c460d9c-603a7; Tue, 24 Nov 2015 09:58:58 +0800 (CST) X-RM-TRANSID: 2efa5653c460d9c-603a7 From: Wei Tang To: axboe@kernel.dk Cc: linux-block@vger.kernel.org, Wei Tang Subject: [PATCH v2 2/2] block: do not initialise statics to 0 or NULL Date: Tue, 24 Nov 2015 09:58:46 +0800 Message-Id: <1448330326-7646-3-git-send-email-tangwei@cmss.chinamobile.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448330326-7646-1-git-send-email-tangwei@cmss.chinamobile.com> References: <1448330326-7646-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 or NULL 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) {