Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1711589ybe; Wed, 11 Sep 2019 20:53:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbjoKuHS/4+cn8GyyjBcIlciB6vhIO+8tyapL3mFZvz31ImHHVmeZm3BhKl0GfEE1m2mR2 X-Received: by 2002:a17:906:938f:: with SMTP id l15mr31752309ejx.225.1568260413147; Wed, 11 Sep 2019 20:53:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568260413; cv=none; d=google.com; s=arc-20160816; b=XOxkThz5fPGrkMMUcA7+4FXthK164erLIBzJu864X16MVe19alWSaR23wK9E60b1xv ukEorqeBKwBXvyqo34NO0ak7Y/lFcULroeBP0tMaNMDOSq0p2FygaHzTAMDYgSQTnuEe KuIYXkOW0FT6udIwuxQAvqqP64LRt2HBGhAXM4HfmlujeIFqXqUVqlhDsYoOmIG92xSK XJGf1eoiH0gqnQZ7k2AaSCnxfavNeIZoJ7jMD12OfYI6kIeuaa1viBCE2VEM0/sJ7dJH 0oh/CpckyUZ9abpMope10EkdNOpog6mXTMesEew75c5C1QdZY+gemi+hmhRA7c8wKd7p qJRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=GNW/9sPL2ZgeVCer34P3lFD8LNGRoDvSn874gEfYMpA=; b=hO3de06ACfZDSEvkS1qTzwOfjroWKUylAbFWvf2/yAyICW3R0qrlUVC0dur3rSlvzW DEC6Dcj3TZz0YPoaMEW+GBHNVKHYq+8MV6xXYKNklvHJivziLzM/dndTsy0E0UkVaDpz jSmffgHyXbhW+QJqHUVAf/h3gZ/X/wO6EEVf6iQorb6FRmDpatEPGb4pfBF1sXzDxAiX pgQwrVJRVHfaKUmGfg3ChXVfUlMbK/FbRIf3kVHcJiSopFo8OnkHBgyARhIbSJFaZI7F l5kaioX1G/vf14mEsApCwOOC9xs7CqXgWL3CdWMHi7IpIFdcIUOMOepGQ+VkPio/rXYj dGOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s2si1220089edr.121.2019.09.11.20.53.08; Wed, 11 Sep 2019 20:53:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729392AbfILCzN (ORCPT + 99 others); Wed, 11 Sep 2019 22:55:13 -0400 Received: from smtprelay0243.hostedemail.com ([216.40.44.243]:49321 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729363AbfILCzN (ORCPT ); Wed, 11 Sep 2019 22:55:13 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id CF71E8024B57; Thu, 12 Sep 2019 02:55:11 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1345:1359:1437:1534:1541:1711:1730:1747:1777:1792:2194:2199:2393:2559:2562:3138:3139:3140:3141:3142:3352:3865:3866:3868:3870:4321:5007:6261:10004:10848:11026:11658:11914:12048:12296:12297:12438:12555:12895:13069:13138:13231:13311:13357:14181:14384:14394:14721:21080:21324:21451:21627:30054,0,RBL:47.151.152.152:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: point24_847b19a4a084f X-Filterd-Recvd-Size: 2396 Received: from joe-laptop.perches.com (unknown [47.151.152.152]) (Authenticated sender: joe@perches.com) by omf16.hostedemail.com (Postfix) with ESMTPA; Thu, 12 Sep 2019 02:55:10 +0000 (UTC) From: Joe Perches To: Dan Williams , Vishal Verma , Dave Jiang , Keith Busch , Ira Weiny Cc: Dan Carpenter , linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/13] nvdimm: Use "unsigned int" in preference to "unsigned" Date: Wed, 11 Sep 2019 19:54:35 -0700 Message-Id: <11b118ab06da3d2c54fe3ec62f42bd89914878bc.1568256707.git.joe@perches.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the more common kernel type. Signed-off-by: Joe Perches --- drivers/nvdimm/label.c | 2 +- drivers/nvdimm/nd.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/nvdimm/label.c b/drivers/nvdimm/label.c index 2c780c5352dc..5700d9b35b8f 100644 --- a/drivers/nvdimm/label.c +++ b/drivers/nvdimm/label.c @@ -34,7 +34,7 @@ static u32 best_seq(u32 a, u32 b) return a; } -unsigned sizeof_namespace_label(struct nvdimm_drvdata *ndd) +unsigned int sizeof_namespace_label(struct nvdimm_drvdata *ndd) { return ndd->nslabel_size; } diff --git a/drivers/nvdimm/nd.h b/drivers/nvdimm/nd.h index c10a4b94d44a..1636061b1f93 100644 --- a/drivers/nvdimm/nd.h +++ b/drivers/nvdimm/nd.h @@ -81,7 +81,7 @@ static inline struct nd_namespace_index *to_next_namespace_index( return to_namespace_index(ndd, ndd->ns_next); } -unsigned sizeof_namespace_label(struct nvdimm_drvdata *ndd); +unsigned int sizeof_namespace_label(struct nvdimm_drvdata *ndd); #define namespace_label_has(ndd, field) \ (offsetof(struct nd_namespace_label, field) \ @@ -170,9 +170,9 @@ struct nd_blk_region { /* * Lookup next in the repeating sequence of 01, 10, and 11. */ -static inline unsigned nd_inc_seq(unsigned seq) +static inline unsigned int nd_inc_seq(unsigned int seq) { - static const unsigned next[] = { 0, 2, 3, 1 }; + static const unsigned int next[] = { 0, 2, 3, 1 }; return next[seq & 3]; } -- 2.15.0