From patchwork Thu Jul 7 07:54:13 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: 9218025 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 0EFA1607D9 for ; Thu, 7 Jul 2016 07:54:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 050C128780 for ; Thu, 7 Jul 2016 07:54:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE51B2878C; Thu, 7 Jul 2016 07:54:57 +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 58D582878D for ; Thu, 7 Jul 2016 07:54:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933149AbcGGHyp (ORCPT ); Thu, 7 Jul 2016 03:54:45 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33872 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756577AbcGGHyn (ORCPT ); Thu, 7 Jul 2016 03:54:43 -0400 Received: by mail-wm0-f67.google.com with SMTP id 187so3534560wmz.1 for ; Thu, 07 Jul 2016 00:54:42 -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=ZqCMDHoRVdl4GmN+uxneD6F9LXHItPueGRsHQtSwkbNXuOGqVuznLFMpWHwrEtHjQv wCZW7GXqmqaNYpJU4Diq7GpfsGFRG89Fkj3We5Nf9TQetifA2yapwnxnDB2D0SG97r/5 xz3UoeKxvDBzjogoXqTGGH0+Ox61UrXJQ/lqQ= 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=UUQsvK0504PJNtfF/Wduz8cl6iNr988be/OccOdKSJtl+6Q1LdOJNRIIr24o86RBrs K2JGsCdKBEW7Uh699IDtAkRvAWmBwVzdJ3cfl5EdGZdxWhBJm5gS7YbSqoE05VQUG8xD O/eWXto6QhGkZbYJ5zJ7JK6u0X4S69w/Ta0OpwVbqKUYxDUHWkyX5T2buAuAQiPFqO5x LtGwYZx0YVwxED3Wb8rj7mFAB1VUJVetPtM9nYEt5ejHsHxEm9FFyx8ni6wC1qaHyv29 ap6SLRDLf1pvYSE3k1ym5qKzqXDPREPg6X5/7obmhUxmCnYCLgZS80VbLxAAD9LxIwq/ nz2w== X-Gm-Message-State: ALyK8tJu8PmHFXORdStA6FYwBWMGrlwzqSJl+Cq61sAKEUB2rI7Ys5VfES48pzdM7bUlAQ== X-Received: by 10.194.88.65 with SMTP id be1mr24694254wjb.46.1467878081864; Thu, 07 Jul 2016 00:54:41 -0700 (PDT) Received: from Macroninja.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id i74sm1654796wmg.21.2016.07.07.00.54.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jul 2016 00:54:40 -0700 (PDT) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, axboe@fb.com Cc: =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [PATCH 07/17] lightnvm: fix checkpatch terse errors Date: Thu, 7 Jul 2016 09:54:13 +0200 Message-Id: <1467878063-22919-8-git-send-email-m@bjorling.me> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1467878063-22919-1-git-send-email-m@bjorling.me> References: <1467878063-22919-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];