Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1507093pxb; Wed, 20 Oct 2021 06:32:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUoqUh+ybsAs3LX7ZjrbGaTfNr7RhW3Gpvr+TTy1yNcz68XGigzh35NMtE1yr37Ps83gYC X-Received: by 2002:aa7:cb41:: with SMTP id w1mr63427606edt.327.1634736762030; Wed, 20 Oct 2021 06:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634736762; cv=none; d=google.com; s=arc-20160816; b=tuBkLMr99fUMwVjD2yCQtdRlosvFrrYexOv6CrjkJplaJVlmeOeGkc+TYgA41kM0WG xDFpWvKDNtMw24jJ/0AMDg3EA2Xbr3RQBbMnr0TQ5hJSy0EStNPOSyQ4SXFdfrsQ0RIp zTmvSX1OL0cEPFSvkIhtZ8AeCYT9yyUPvyfA6f6h1aKBxQAuJKm6eBvR3UYabpkGzjRb QKR0GQgFoK8qE6D9l0LPmTSvSJyzZLrCzniaOh3lozMw0oXojmQaQFAU7/8IVmAwv50s Pm4iVmbggN4sdBN+9poOMhePvhnqh6nG/WMY78JpRfU2d6A5Sn0yw5m5klEfoCnUgc8w AYzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=t9lT9VHiArQZu0HCzGmUyCIHdohEA4mcuMoa7fqwm5A=; b=JFGpR+JIekN4aPfnx8bGo9SfopRHexI/vaWnrGfQf2sZ9seGHKJBb0AcKeqw61bzwc WrcjhDIxbasdenavvNAo4N6rPv2pSqRpe1m0gkd7x8yG/aUTIanzqsRa1dPo8YOnJyXH PLTXMEfmM/SsdVKnJNbveIrfm1duL7ECX89dJtOJ7wSnigJkRdJR6MFrYOg6VcB0uVN6 Msy6UoytEXWdcgUmRtavy9zbio0/QjtOAdmyV7nS1P9ZzH81/Pe5AP0/SKBkWXFgEYqE zw2vg18gPXSxZoYx3CcIoQYvZdVQn1H1F2ADLDDjp1FG0pYJJMr4aZ4gNHsJE9zj9xKE 8vZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c4avvLs2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u19si2650456ejf.631.2021.10.20.06.32.13; Wed, 20 Oct 2021 06:32:42 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c4avvLs2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230219AbhJTNc0 (ORCPT + 99 others); Wed, 20 Oct 2021 09:32:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:41872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbhJTNcY (ORCPT ); Wed, 20 Oct 2021 09:32:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPS id 9CC2261361; Wed, 20 Oct 2021 13:30:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634736610; bh=6I3JhA8kct0T7Sf/e1uYQ89v6jVxVnPog828pVq1ED0=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=c4avvLs2rSalsFpmSKmdSBaqRxqgBM5BIxrKqqT0kKh1c44t0k1JlJN4MhU8SfXR/ HPSgPQblA83SnofKc0ibeI1SnNikJKw63GjOtTixPN/ZFmVe9V4D4HpLYr7Jx3l7/S AqVXpgrZlIarVq4WgQETbOtxMmvyuepntD/rB7nfmIN2P/LpOp4rcxkQQLhv/jTIXg 8VEbhFhYjrRG6rcUWhQw1at5ZFiIBPfqkKSLv5HpT2EWuJYSE2Q+O4nAEjpwAZ6dYz DmOlNCIH8nG3Yr0tkfe4BaA6NMVQtQkaBVlWeRmfF2xCnr7Acf0o9CtMCKRQKl4Il/ 0+Y2wCpnm1Kyw== Received: from pdx-korg-docbuild-2.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by pdx-korg-docbuild-2.ci.codeaurora.org (Postfix) with ESMTP id 8A544609F7; Wed, 20 Oct 2021 13:30:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v2][net-next] soc: fsl: dpio: Unsigned compared against 0 in qbman_swp_set_irq_coalescing() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <163473661056.3411.12683931306376167461.git-patchwork-notify@kernel.org> Date: Wed, 20 Oct 2021 13:30:10 +0000 References: <20211019121925.8910-1-tim.gardner@canonical.com> In-Reply-To: <20211019121925.8910-1-tim.gardner@canonical.com> To: Tim Gardner Cc: netdev@vger.kernel.org, ioana.ciornei@nxp.com, Roy.Pledge@nxp.com, leoyang.li@nxp.com, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net-next.git (master) by David S. Miller : On Tue, 19 Oct 2021 06:19:25 -0600 you wrote: > Coverity complains of unsigned compare against 0. There are 2 cases in > this function: > > 1821 itp = (irq_holdoff * 1000) / p->desc->qman_256_cycles_per_ns; > > CID 121131 (#1 of 1): Unsigned compared against 0 (NO_EFFECT) > unsigned_compare: This less-than-zero comparison of an unsigned value is never true. itp < 0U. > 1822 if (itp < 0 || itp > 4096) { > 1823 max_holdoff = (p->desc->qman_256_cycles_per_ns * 4096) / 1000; > 1824 pr_err("irq_holdoff must be between 0..%dus\n", max_holdoff); > 1825 return -EINVAL; > 1826 } > 1827 > unsigned_compare: This less-than-zero comparison of an unsigned value is never true. irq_threshold < 0U. > 1828 if (irq_threshold >= p->dqrr.dqrr_size || irq_threshold < 0) { > 1829 pr_err("irq_threshold must be between 0..%d\n", > 1830 p->dqrr.dqrr_size - 1); > 1831 return -EINVAL; > 1832 } > > [...] Here is the summary with links: - [v2,net-next] soc: fsl: dpio: Unsigned compared against 0 in qbman_swp_set_irq_coalescing() https://git.kernel.org/netdev/net-next/c/818a76a55d6e You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html