From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3AF86C433FE for ; Wed, 20 Oct 2021 13:31:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 0FD306128E for ; Wed, 20 Oct 2021 13:31:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0FD306128E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Date: Message-Id:From:Subject:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hEdNE28qiKtap6LXmvq3BVFSZJ4XPoo+9uHOAheeNdc=; b=F25nbHWVl5Rb2k wSDznZl6wtP/+BKCIbLoyR3qtUtNNF4L0QKgNRD0sUIxOkDiatezVvsAcF/tRDxLHIg9Ngs2l4JXJ 1dxUtR/lkLih4aE3FHW4tzGJ5ikN/OFIwhFKzbqs4dPMZwOZ7m5Oo3CTVLgmmbrTvMfN34xMfpwgM Ghj0bkK1K6VYxq0ynL02YCpD7sMPWIK4Vr4z0d5rI1FVmpRNV2tScHVOrZ4G8GidJobK8bNn7aqw8 PN01loX5pNYKjWhyps+01oDjJXkcUXUceKFJFfdZtd3BM5KF54kOAWKutEJi48P6DQQyX4awg6z1V FBg6KrAe6R28eBQ+9fcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdBfb-004bxW-FU; Wed, 20 Oct 2021 13:30:15 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdBfX-004bwR-LF for linux-arm-kernel@lists.infradead.org; Wed, 20 Oct 2021 13:30:13 +0000 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== MIME-Version: 1.0 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211020_063011_735444_08196EE9 X-CRM114-Status: UNSURE ( 8.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel