Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1052100ybh; Tue, 21 Jul 2020 14:33:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+hG25JkHWGcUPoVCgodj84dM0iXg1zpYa4r44L4QJ0M6F2XLKez/6zqT4OhDbRcPKEhDW X-Received: by 2002:a17:906:dbed:: with SMTP id yd13mr26440108ejb.419.1595367211668; Tue, 21 Jul 2020 14:33:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595367211; cv=none; d=google.com; s=arc-20160816; b=Kkwbif5zcs/KLotz6DaR1h4qOJxuC2fvZZguq+35MoUVsJKemJXQ26pfSjUCg3u61f H80vNSh7lx7kNTzmlvMAUqve6Cr/mK5qBZsVeQJEfvm84/4cIMIjvzo/TAxyh+/dPvHU vmWQy5RW1YBjcJXjYcaEtBXf+sgJK/44GJ0p6ryfF8b1rK8uy2n5s00jHARE69hqSWM7 OsAWtZtA0VSFwEi7t9hgFeYF9FFpxQTrfaAsm0uMVCnK72XHBNuW7+/zxLUJeOHi2g0s zPxntV0n3GnisIk9wkamOlxWUjVeNDinZ+92lezNsNd051UhUSAL8XV6WQSveLWGjKwQ d9Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=BKMZlh6tthLWNqLcmh1tsgGHK6fKWJWy8gPOHXD3kC0=; b=J+FBjL4GAXMvhFza0Ni3+judGUtW6jAo4GUOh1/Q5hvzMBhMJNuCTaNT5auq3RurhZ IgJj/jv779BP/pmTnuIu7ePASE7/tU2HtKqE/6M5JrmzrXZkFJo6CpIbWdvV1V4wAyuv VZV5rE293IGgRIYlpDWGCsjzOS00h/HUnJ6bfFmEMY5F5M6hDH7wFnRxH8waX5HdS8d6 HBusY2i6srZs+8ke+sH2hoO/KQIzp2wE0vp1bs3hWFmYCeqtScSgu2995WcoIG+Ue0Yk Mho82KiskVsT8KXoXIB2NgSKOQmnYskJ3qTDqjpAyStUYHQHPaNbrn2/aLZEn7gufTGx +TbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lx8si13308841ejb.415.2020.07.21.14.33.08; Tue, 21 Jul 2020 14:33:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731280AbgGUVcU (ORCPT + 99 others); Tue, 21 Jul 2020 17:32:20 -0400 Received: from smtprelay0196.hostedemail.com ([216.40.44.196]:47834 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726658AbgGUVcT (ORCPT ); Tue, 21 Jul 2020 17:32:19 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 469E718224D68; Tue, 21 Jul 2020 21:32:18 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3868:4321:5007:10004:10400:10466:10471:10848:11026:11232:11657:11658:11914:12043:12048:12296:12297:12438:12555:12740:12760:12895:13069:13255:13311:13357:13439:13972:14181:14659:14721:21080:21433:21451:21627:30054:30056:30080:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: loaf72_4608e2426f30 X-Filterd-Recvd-Size: 2717 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA; Tue, 21 Jul 2020 21:32:16 +0000 (UTC) Message-ID: <11ac49bc33546ef9ebc4120878206bd882667d8a.camel@perches.com> Subject: Re: [PATCH v4 16/17] crypto: sun8i-ce: fix comparison of integer expressions of different signedness From: Joe Perches To: Corentin Labbe , davem@davemloft.net, herbert@gondor.apana.org.au, mripard@kernel.org, wens@csie.org Cc: linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 21 Jul 2020 14:32:15 -0700 In-Reply-To: <1595358391-34525-17-git-send-email-clabbe@baylibre.com> References: <1595358391-34525-1-git-send-email-clabbe@baylibre.com> <1595358391-34525-17-git-send-email-clabbe@baylibre.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.3-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-07-21 at 19:06 +0000, Corentin Labbe wrote: > This patch fixes the warning: > warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] I think these do not really need conversion. Are these useful compiler warnings ? > Signed-off-by: Corentin Labbe > --- > drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c b/drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c > index 3901e3401c6b..7b2a142c9b8d 100644 > --- a/drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c > +++ b/drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c > @@ -566,7 +566,7 @@ static struct sun8i_ce_alg_template ce_algs[] = { > static int sun8i_ce_dbgfs_read(struct seq_file *seq, void *v) > { > struct sun8i_ce_dev *ce = seq->private; > - int i; > + unsigned int i; > > for (i = 0; i < MAXFLOW; i++) > seq_printf(seq, "Channel %d: nreq %lu\n", i, ce->chanlist[i].stat_req); > @@ -778,7 +778,8 @@ static int sun8i_ce_get_clks(struct sun8i_ce_dev *ce) > > static int sun8i_ce_register_algs(struct sun8i_ce_dev *ce) > { > - int ce_method, err, id, i; > + int ce_method, err, id; > + unsigned int i; > > for (i = 0; i < ARRAY_SIZE(ce_algs); i++) { > ce_algs[i].ce = ce; > @@ -858,7 +859,7 @@ static int sun8i_ce_register_algs(struct sun8i_ce_dev *ce) > > static void sun8i_ce_unregister_algs(struct sun8i_ce_dev *ce) > { > - int i; > + unsigned int i; > > for (i = 0; i < ARRAY_SIZE(ce_algs); i++) { > if (!ce_algs[i].ce)