From patchwork Fri Sep 18 07:23:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11784175 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 7FBAA59D for ; Fri, 18 Sep 2020 07:28:47 +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 4311B20795 for ; Fri, 18 Sep 2020 07:28:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LjsQi67J"; 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="HkHU/RuO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4311B20795 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=qxvcwSY2axHGA2uqYy4PRqxmn672PLb6/gNTT2Gdxls=; b=LjsQi67Jy/Pinwm/F/dbJN5394 TmtQd8EaM84TLQ5h+/PAnoXa9ym6fTUe2m2YBfp/onC2PjcY8QFOO6r09sncg+7HLCJB4A/ch9dPB 9OriLSudiy7f5XBhNxVWPGGLfMq+aXTv4oMn2qLZFov/BlLm5Z3e0j/eX9/0spHut0o7L6EGPpKNj c4vVg6lpfeBr0wr9v2wyg9ICziHkgSEcazj8R1mY1GjAJIOF9r5afRtPXktYYTg5adXCd6nBXPQI/ r8v3oDISB79OTDJ+3ZtnRwRCyWqK30R/fZdP7tcQ3RZPuyKElSxfMfPLCb6CLO8Ds3ruK9BqlEoth dbq6HKuw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJAmu-0001mv-La; Fri, 18 Sep 2020 07:26:32 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJAkD-0000cV-BM for linux-arm-kernel@lists.infradead.org; Fri, 18 Sep 2020 07:23:47 +0000 Received: by mail-wr1-x441.google.com with SMTP id a17so4510287wrn.6 for ; Fri, 18 Sep 2020 00:23:45 -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=RREMgoQ10AgEzpG5x2JxpJp9Y6xrNHTkcUblYPCMXMg=; b=HkHU/RuOacOBTr1v8pD8gw93Dk2xa6hsEqa7Aoe3HIk27GD5wjUQWn2ZA8+ROdU8m/ MS2gTneDwTjM3HCO1qogpjmczY5egH9fMNsIfUQx1FHdd09JuZ9LZgXzbKSM7bfoIrNP WRqOe16IK9Fw3sfbmR0jUCAtvPxZUrmNpzqN8+GiK4Q8hfGUACdAwPmsVOWbGCtbyI3n MJnTFiz5W/kJh0dbKd5n5kxMIfvcSDN1+7XHjg5uR7mJPTP1RXcSbcY8bf/o/7tLAj9u Cz27U2rGSi/5ovHw5xhNVYYgQ7Ghj1ffW6VHdiJ2Uj7o3gvpCbWTcPMEvyz4ckSbSuyf wG5w== 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=RREMgoQ10AgEzpG5x2JxpJp9Y6xrNHTkcUblYPCMXMg=; b=mCdXSlmw3tbMYRiTZOWo8rfhbD/N/WLiu3VEdZ21rVdMEo5VYll/PbSmVdD4JIZlrb n2weYShLjs9dXpFtQyE/NNMW1bIKr6h/uhJDUgF4O90Q9cLxws6E4XA5cyU/B1EzZ7+p 0N7rPgMW8gvu+bl5IGuQ4depMeCEMoRcMwjDsQG1ew1gKOXaAHMtfWX5AszRovzux9j3 L4m6uLoRIsrNDiOmjKAocTUE/SGq7fB7QUpWMXxmHIUr9iZhuOftERF3/Efqjebpyui2 oJkXDBPCWPQzm8g4Ygrzb6E4go0bjcweoYMmvSOsF4fwD9d3QHaTCoQqhWMKEYDLGGa6 gVfw== X-Gm-Message-State: AOAM533Sy2JVnAABiHbGBW+Rxbt3klqaO3kHXraCaBVCThwYTghGebK4 nwQFPNOW92+ZndfCuuPH3+vgQVzlpFTe9Q== X-Google-Smtp-Source: ABdhPJzrtZkV7XKdpdogHscJqjSpplrsVfnghJi5052mVZFzVZtfCQHBIG2VdoJST/XZhQKA27wCxA== X-Received: by 2002:adf:ed12:: with SMTP id a18mr38252772wro.178.1600413824201; Fri, 18 Sep 2020 00:23:44 -0700 (PDT) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id z19sm3349546wmi.3.2020.09.18.00.23.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Sep 2020 00:23:43 -0700 (PDT) From: Corentin Labbe To: davem@davemloft.net, herbert@gondor.apana.org.au, mripard@kernel.org, wens@csie.org Subject: [PATCH v7 17/17] crypto: sun8i-ss: fix comparison of integer expressions of different signedness Date: Fri, 18 Sep 2020 07:23:15 +0000 Message-Id: <1600413795-39256-18-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600413795-39256-1-git-send-email-clabbe@baylibre.com> References: <1600413795-39256-1-git-send-email-clabbe@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200918_032345_438656_48C5191E X-CRM114-Status: GOOD ( 15.75 ) 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:441 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-ss/sun8i-ss-core.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c index 739874596c72..c9cfe20b383d 100644 --- a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c +++ b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c @@ -414,7 +414,7 @@ static struct sun8i_ss_alg_template ss_algs[] = { static int sun8i_ss_dbgfs_read(struct seq_file *seq, void *v) { struct sun8i_ss_dev *ss = seq->private; - int i; + unsigned int i; for (i = 0; i < MAXFLOW; i++) seq_printf(seq, "Channel %d: nreq %lu\n", i, ss->flows[i].stat_req); @@ -571,7 +571,8 @@ static void sun8i_ss_pm_exit(struct sun8i_ss_dev *ss) static int sun8i_ss_register_algs(struct sun8i_ss_dev *ss) { - int ss_method, err, id, i; + int ss_method, err, id; + unsigned int i; for (i = 0; i < ARRAY_SIZE(ss_algs); i++) { ss_algs[i].ss = ss; @@ -642,7 +643,7 @@ static int sun8i_ss_register_algs(struct sun8i_ss_dev *ss) static void sun8i_ss_unregister_algs(struct sun8i_ss_dev *ss) { - int i; + unsigned int i; for (i = 0; i < ARRAY_SIZE(ss_algs); i++) { if (!ss_algs[i].ss)