From patchwork Fri Sep 4 11:10:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 11756725 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 54F2114F9 for ; Fri, 4 Sep 2020 11:14:01 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2936F20684 for ; Fri, 4 Sep 2020 11:14:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="feiHoDc0"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="obW31qxL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2936F20684 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=A3poEiU6Q3zHJ5S4ueq7tifSOPUDISRjt+ZFXIzdPm0=; b=feiHoDc0eplaaCeQmKowQAAqss gzXmliejH3L+SgVvK0GrCpFMWdECgITWM3m9dzsmdyf0h1HIcawi1AzTCSS+8Zu19jmWd3J1ryh7u vGBUsNOBZ/CET0lUkEsHQsNJUs0b4F/OtAPi/qoXw6VT21Ix33hz9kQxfob5UKb3csTjq4wg9zVfp 1hYpxyDF1DJ4UP6g1DFepBxX2oYcMkoExlVX0uLb+M6jn9b0ptlaYtPE/Q1du9kM2q7QvMmRAXxq3 c2dWlw1tNJKmD1US95Wr8RqQ4/UsCDZiZrawUh4vGCG+w3IKZXqx1TkIAOCwamsaEBGu6gGLQA+gq fkVkJtFw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kE9db-0002gX-28; Fri, 04 Sep 2020 11:12:11 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kE9bx-0001uE-Hw for linux-arm-kernel@lists.infradead.org; Fri, 04 Sep 2020 11:10:33 +0000 Received: by mail-wm1-x341.google.com with SMTP id q9so5701585wmj.2 for ; Fri, 04 Sep 2020 04:10:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=agXVF0ms/CfrT8LzQj5/+SUtzz/nXnxAuE96neqmqJI=; b=obW31qxLoN9OWZSj19gPQwd7o4se0XnSLbfRoYBvDVsFoX10sLfJOIKX9+EVAheFpY +CsJz7XMeRft3mfBqCcS+QfxleHYsfYtrBkYvCZXVAPD73YoxN/68frT48xZoXiaZBsC Yp+PTCDEVtkr57JKapdh6bOR9Zm92eorU/Mor5owv8PWj+h3OjrgnAhrHw59735YeuY+ L2Gc3FjQ73fP7WIjzIK6q0SlloEhQADpTJg25jE/ZqbEvE7i15FYp1NU+xtiCgcHTntr fw5lJGW9e/1uef2+HjK1eDmPYty4cJeoGGUD6IA/u2i5wke9t2AZLNCwvRvVQ2WyNM0j JC5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=agXVF0ms/CfrT8LzQj5/+SUtzz/nXnxAuE96neqmqJI=; b=BrdUd88MnQHEXYDx50kiHUpYAQn50ZRlEgY4eYP8fU9hq5EVYxVyJvaFFyeFcT2wDu jtQgZOBANLHL8mhzxcd27OPcimKrKhDCIomXDxNyUotkDPORl9/YxroHU+Vk5NjVFs5M fJ8CkhGrenFURoArzKmbOXd40WjchgN7AeXfK80GEeih/wlD/Yyzd1jp3pWL+Un2B2Wx F0g2NH9HjkQfqiFoKb4a3oIHN3jJNpPVYILlivk3kHm4YfmAsqSH3lhDfJliLNlGqh6c uGTBLiQZKZQkfciaTaUh63ZxqMSlzQqB6xWVBLklIP5Zgh0SWEePntcqfugDqpBW4wSb /YPA== X-Gm-Message-State: AOAM5301KIdOZLvvYCq/gL54eUm2a4c4vEDUf6rXC23x0eI6oybwMV93 A26+yo11eSOWUORnYUFkFkqEhDfnWPehDg== X-Google-Smtp-Source: ABdhPJyWFAoPovD5D/ikwYMEEU7ftuFRGS2vCfDVOayt1KIOtg4sPOpAYrFsB25tqCpU9RbGj92kHg== X-Received: by 2002:a7b:c753:: with SMTP id w19mr6906296wmk.157.1599217828670; Fri, 04 Sep 2020 04:10:28 -0700 (PDT) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id m3sm10622743wmb.26.2020.09.04.04.10.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Sep 2020 04:10:28 -0700 (PDT) From: Corentin Labbe To: davem@davemloft.net, herbert@gondor.apana.org.au, mripard@kernel.org, wens@csie.org Subject: [PATCH v6 16/18] crypto: sun8i-ce: fix comparison of integer expressions of different signedness Date: Fri, 4 Sep 2020 11:10:01 +0000 Message-Id: <1599217803-29755-17-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1599217803-29755-1-git-send-email-clabbe@baylibre.com> References: <1599217803-29755-1-git-send-email-clabbe@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200904_071029_684101_1D8BC22E X-CRM114-Status: GOOD ( 15.82 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:341 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Corentin Labbe , linux-sunxi@googlegroups.com, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch fixes the warning: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 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 116425e3d2b9..cf320898a4b1 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)