From patchwork Wed Jun 29 14:41:46 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: 9205459 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 E5894607D8 for ; Wed, 29 Jun 2016 14:42:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D843B28667 for ; Wed, 29 Jun 2016 14:42:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC8712866E; Wed, 29 Jun 2016 14:42:44 +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 A5ACE28667 for ; Wed, 29 Jun 2016 14:42:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752392AbcF2OmZ (ORCPT ); Wed, 29 Jun 2016 10:42:25 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33051 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752413AbcF2OmX (ORCPT ); Wed, 29 Jun 2016 10:42:23 -0400 Received: by mail-wm0-f66.google.com with SMTP id r201so14878139wme.0 for ; Wed, 29 Jun 2016 07:42:11 -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=QTfQMlVL6xTlC18k3Auy3aZKzTp64D/FP7Pnugbms9UeLX3H0n4Ob09AZBrdsIrxp4 63ynIIsbSW4nLBh+6tHKdV7f1vH/1mSWU/+oba9yBorAX2ibF3NSe8bZhK3L8B/lWGl3 8tyqlD/GEPU1P23h7jLHm0P9dd4JwqhcVUZgw= 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=cBIkWsdzZH8eLpQZ4NUZ0bvK31uOXz1AUlaBlyjgN8fLdVPaOcxumhWP+eCi3Z3Jwo xJRPPNjI20kOJslyZyI01s/eLonhGzEG4G1htn4x93D9v+Xc27Lb8dkN/K/oQhsyKuPg K4mIMah76Zy0FLLLRRlUg7beWLgl0JNsWP4w5f+Ab40eC5qkRZQd9P2s8BlTwJdUDtZj LFw6Nhwhugjantg60z7t00Wc29PTCXTtgzSEGm2cCEqLCiLu/s2ogmwyjbVQxg0Zhpkp iQa12YYTtpc7L809vqD+re/8ftMlaBIc3CFbLXQe27LgD0cyp95g7h6a2o/CGPSlX3y+ Va8g== X-Gm-Message-State: ALyK8tKwgl/THEAaVtlvCxYZE2Bxz3phamzKtonyCrX5Vor36DFTfPzjOhSA/VGb+CgAWA== X-Received: by 10.194.105.200 with SMTP id go8mr9412006wjb.83.1467211330405; Wed, 29 Jun 2016 07:42:10 -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.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Jun 2016 07:42:09 -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 01/11] lightnvm: remove checkpatch warning for unsigned ints Date: Wed, 29 Jun 2016 16:41:46 +0200 Message-Id: <1467211316-22373-2-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 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);