From patchwork Wed Jun 29 14:41:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matias_Bj=C3=B8rling?= X-Patchwork-Id: 9205505 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C3091607D8 for ; Wed, 29 Jun 2016 14:45:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B54F128666 for ; Wed, 29 Jun 2016 14:45:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA1C228669; Wed, 29 Jun 2016 14:45:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45CCB28666 for ; Wed, 29 Jun 2016 14:45:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752537AbcF2Opj (ORCPT ); Wed, 29 Jun 2016 10:45:39 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36182 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752417AbcF2OmX (ORCPT ); Wed, 29 Jun 2016 10:42:23 -0400 Received: by mail-wm0-f68.google.com with SMTP id c82so14899935wme.3 for ; Wed, 29 Jun 2016 07:42:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bjorling.me; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9u2Fx6VY7eUWYo3iH5d32BYU/h3ua68SkinhSqYKkaQ=; b=XwRxwkgkLJJ5RDMUW02A+775FwDEq3A5DMUtvaQmtWGvAZSTAO0+JVIQmu0HQkMM7C CnF2QRsJNN8zKJ8wHVjSO2DPJQlvwzFXCtO/we9RzDNwIh8mPhxQD+zh4tF1ov/v86Ok i/C0+ROFsTImtWcwrn2jktcoyGay3JtOV96/U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9u2Fx6VY7eUWYo3iH5d32BYU/h3ua68SkinhSqYKkaQ=; b=MM/ihmaLVFRuxQsuVjnD9gNz2GuHtbGzs5UeyF7SHNLZ6nOwtBnjUGb9M7lBsVMpSs JAN6SC4+vjEZEcqg6MNkujsoVACFLd3g49hjCbpAab7iasicxS3wxJ9qu/ZqLZ9VUAF8 jscC1C1h+9yKqdFZGaE4uJGocvxO6xvuGSghlCo7WILP7Q9EI5CSwl0BPQW4E6PPy0nD 2V0Fad/JGwuodgyBGMJv/a+MTbAo54wqlVZEG3IHqUSVoAk9O6hXzKJ7Is6oJDlvAqsH gIbEYq9B7gTcj0TfXoU1LTidGjB0WHgQ4588+Zxl+wu7ysUzFZVyNWxXdLRfbEvqd9Kh d3Dg== X-Gm-Message-State: ALyK8tKvtYagxEoRYXmILjZL2gTVchWArJOsdpkqh9IijQPE+MSdbsrHPl/DqJ2CjclB4Q== X-Received: by 10.194.117.35 with SMTP id kb3mr9692117wjb.136.1467211331223; Wed, 29 Jun 2016 07:42:11 -0700 (PDT) Received: from Macroninja.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id t190sm5472766wmt.24.2016.06.29.07.42.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Jun 2016 07:42:10 -0700 (PDT) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [RFC PATCH 02/11] lightnvm: fix checkpatch terse errors Date: Wed, 29 Jun 2016 16:41:47 +0200 Message-Id: <1467211316-22373-3-git-send-email-m@bjorling.me> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1467211316-22373-1-git-send-email-m@bjorling.me> References: <1467211316-22373-1-git-send-email-m@bjorling.me> MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A couple of small checkpatch fixups to stop it from complaining. ./drivers/lightnvm/core.c:360: WARNING: line over 80 characters ./drivers/lightnvm/core.c:360: ERROR: trailing statements should be on next line ./drivers/lightnvm/core.c:503: WARNING: Block comments use a trailing */ on a separate line Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/core.c index 8beb9c0..0da196f 100644 --- a/drivers/lightnvm/core.c +++ b/drivers/lightnvm/core.c @@ -373,7 +373,9 @@ int __nvm_submit_ppa(struct nvm_dev *dev, struct nvm_rq *rqd, int opcode, /* Prevent hang_check timer from firing at us during very long I/O */ hang_check = sysctl_hung_task_timeout_secs; if (hang_check) - while (!wait_for_completion_io_timeout(&wait, hang_check * (HZ/2))); + while (!wait_for_completion_io_timeout(&wait, + hang_check * (HZ/2))) + ; else wait_for_completion_io(&wait); @@ -516,7 +518,8 @@ static int nvm_init_mlc_tbl(struct nvm_dev *dev, struct nvm_id_group *grp) /* The lower page table encoding consists of a list of bytes, where each * has a lower and an upper half. The first half byte maintains the * increment value and every value after is an offset added to the - * previous incrementation value */ + * previous incrementation value + */ dev->lptbl[0] = mlc->pairs[0] & 0xF; for (i = 1; i < dev->lps_per_blk; i++) { p = mlc->pairs[i >> 1];