From patchwork Thu Jul 7 07:54:12 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: 9218073 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 080F96048B for ; Thu, 7 Jul 2016 07:58:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F0DDB2878F for ; Thu, 7 Jul 2016 07:58:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E57A328792; Thu, 7 Jul 2016 07:58:04 +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 656E72878F for ; Thu, 7 Jul 2016 07:58:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756689AbcGGH5o (ORCPT ); Thu, 7 Jul 2016 03:57:44 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33847 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756266AbcGGHyk (ORCPT ); Thu, 7 Jul 2016 03:54:40 -0400 Received: by mail-wm0-f68.google.com with SMTP id 187so3534407wmz.1 for ; Thu, 07 Jul 2016 00:54:40 -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=yAcTK5jCbb9QV+fIGFAACQwd+2FAcmTphg58AWN8N08=; b=ljWaIV0q2eDVbuCpAwKEaS+cbaKhSCRgjmF731bv/XX5EizJNtSURD5iM2hzTX61qp /31S44lmq9mKPi7aAM+O6BR30B6rr11hzhh7uy5OUOPT1g+2TwIyZa4vz2VQov605yle zFQEFufoVd1BDF5KyDeZ8+1JnFeKcA7ZUgOeI= 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=yAcTK5jCbb9QV+fIGFAACQwd+2FAcmTphg58AWN8N08=; b=VZUeepmvrpQmU1X3e3ZMypRX9JlDlclzW6ZPtHjruvVsbjYoWprcNWLx7v6pI2KWIP wIjeao4wN69El4nFPLXqgkvaPr7oc/VXEDW6gvOeppTplw/KjLmfm14ibY8IgIbS9b4x iECAEhI85OJ2MSfNPfIgtMG64iANEIRiPtcbA+4VRuC1IWkOFs7YxKjXQnjY5tzYe5ra 7VAjiNoCe1aWOAFjzXZ5LMdt7Gw9aRmtAhX7m5S2WGrqF5Tz8SxOyk1rgesRcIcIrrKh DXY8aj8dDdS9FQ5qyg5Q31LIP0U8x2sAOcfxpGJy9MzcrFEUFWa+tXl53k2s27cxaTe7 BoNQ== X-Gm-Message-State: ALyK8tKixmRZ7kT3Hg6iU+0NEpSqBsQn8EaQgoGXPNB/4EsmgsOOHp96RBOCjjyMOZU1Iw== X-Received: by 10.28.193.78 with SMTP id r75mr1332347wmf.83.1467878079323; Thu, 07 Jul 2016 00:54:39 -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.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jul 2016 00:54:38 -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 06/17] lightnvm: remove checkpatch warning for unsigned ints Date: Thu, 7 Jul 2016 09:54:12 +0200 Message-Id: <1467878063-22919-7-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 Checkpatch found two incidents where the type was preferred to be written out in full. ./drivers/lightnvm/rrpc.h:184: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' ./drivers/lightnvm/rrpc.h:209: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' ./drivers/lightnvm/rrpc.c:51: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Matias Bjørling --- drivers/lightnvm/rrpc.c | 2 +- drivers/lightnvm/rrpc.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/lightnvm/rrpc.c b/drivers/lightnvm/rrpc.c index 736e669..90c7cb4 100644 --- a/drivers/lightnvm/rrpc.c +++ b/drivers/lightnvm/rrpc.c @@ -48,7 +48,7 @@ static void rrpc_page_invalidate(struct rrpc *rrpc, struct rrpc_addr *a) } static void rrpc_invalidate_range(struct rrpc *rrpc, sector_t slba, - unsigned len) + unsigned int len) { sector_t i; diff --git a/drivers/lightnvm/rrpc.h b/drivers/lightnvm/rrpc.h index 87e84b5..5797343 100644 --- a/drivers/lightnvm/rrpc.h +++ b/drivers/lightnvm/rrpc.h @@ -188,7 +188,7 @@ static inline int request_intersects(struct rrpc_inflight_rq *r, } static int __rrpc_lock_laddr(struct rrpc *rrpc, sector_t laddr, - unsigned pages, struct rrpc_inflight_rq *r) + unsigned int pages, struct rrpc_inflight_rq *r) { sector_t laddr_end = laddr + pages - 1; struct rrpc_inflight_rq *rtmp; @@ -213,7 +213,7 @@ static int __rrpc_lock_laddr(struct rrpc *rrpc, sector_t laddr, } static inline int rrpc_lock_laddr(struct rrpc *rrpc, sector_t laddr, - unsigned pages, + unsigned int pages, struct rrpc_inflight_rq *r) { BUG_ON((laddr + pages) > rrpc->nr_sects);