From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796510859; b=CuioDP4cR65MKKg6HrrigmyADLfltC9l7mkZqQACMwu0SXjLzq7Bo59A5pRTBktq8UmO Gjc8LWTL7NvqVAC2wRsr2qH3zWysSLRDEeCgIL0R7o89u1v22prTj+MXHJQYxMJ7Qis8M v+KGsL2Erg9PJK2RI7+kPPeLBZyoBGgyzIemik1UPcgmAvodZYePykyhLme4Owkf5ZEMt RMc8mvWVCal7Wg0pIjq0uookObd4oRjvoMVWbzL3OD000WvH29vIEwFdAWuYkf5a1zAX6 X7oii4IZv8K4Cc6RX8QCZqgx/2VCIqdyG3+Dx+4kI4NhzH4S3OO3KL8lizjmZfS0WBw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796510859; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=ohR517/fFdmfAWZq1nsG4snZUrulwjyu6lskroUNZ2k=; b=U50cA/NV3TaUAVwk8noHFtnsPmP86GdMKzlJ21XnLsTMLde7LgOwAShUTa3etl4DD5ZZ BO1+iC8wj++F+Qdz/DPI9UAwoXcOVkuGZUL+kNh244DFyrjltfooeyZ7TF8U83QeJIM3y DltNwyINxdOgPydC1Cff3zBmc27KE5eHgGmPw4tt95kbd2xF6FYW86JJnhjkFcqMUtneG i4hjc+guBlYnDx0WKZkRbVaVEk7QoTxCY3/PgcyI5lYZv5n8XKRf5sgybW6/1uD6fn0bR loPHaAHo+He13Gu2LCph1WE4TROY/MXns8hJ+ndVigNmQelECnDfCZ/+Grcm3+468Cg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fZURL3wC; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC19C606A337 for ; Sat, 5 Dec 2026 22:47:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fZURL3wC Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC8811F0092B; Sat, 5 Dec 2026 22:47:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796510859; bh=ohR517/fFdmfAWZq1nsG4snZUrulwjyu6lskroUNZ2k=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=fZURL3wC2SJA0WGy54AsTS3oWxmwcEdPgH2hDV+QVvDMzUQLSLW1rNTlTQLR2fWXt Oq2HzI14UBfm0F/py91L+BAsgSyt4qJNmmn2HaZ7r+qLRR8kQcGziioPAY0zNM0znG 7zIOSqEc4SPWjEHlyZWoadAEAlNNN83EC6nIaKEqwRdS147cShJG6oO1dWTgvwhDJ+ K+eV6P3aVFY+Hz1jM8xzu//QsWKmvonnpBJ9nrNJU4HisdocVIngBFMctYX+jwzD0n hly2Rp9oh6jzV2vqYURlT56wl0etjB6s4IKRoqP90dE/r2gb79DOuxLSpBlocpci5i QJu56ozJ4AZBA== Subject: Re: [PATCH net-next 3/5] ixgbe: use int instead of u32 for error code variables From: netdev-bot+sashiko@kernel.org To: anthony.l.nguyen@intel.com Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, edumazet@kernel.org, andrew+netdev@lunn.ch, willemb@google.com, netdev@vger.kernel.org, adiyenga@cisco.com, jedrzej.jagielski@intel.com, jacob.e.keller@intel.com, aleksandr.loktionov@intel.com, rafal.romanowski@intel.com Date: Sat, 05 Dec 2026 22:47:38 +0000 Message-ID: <179651085848.3148.2212941005956083948@kernel.org> In-Reply-To: <20261204223807.3920143-4-anthony.l.nguyen@intel.com> References: <20261204223807.3920143-4-anthony.l.nguyen@intel.com> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] The rationale in the commit message for "ixgbe: use int instead of u32 for error code variables" is factually wrong, and it reads as… -- ixgbe: use int instead of u32 for error code variables This commit changes ten local variables in ixgbe_main.c, ixgbe_phy.c and ixgbe_x550.c from u32 to int, because they hold negative errno return values. The commit message says there is no functional change. > Storing them in an unsigned > u32 silently wraps the value: -EIO (0xFFFFFFF7) stored in u32 becomes a > large positive number, so any "if (status)" truthiness check still works > by accident, but comparisons against specific negative error codes or > propagation up the call stack produce wrong results. [Severity: Low] Is the hex value here correct? EIO is 5, so -EIO as a 32-bit value is 0xFFFFFFFB. 0xFFFFFFF7 is -9, which is -EBADF. Does the rest of this paragraph match the code being changed? Each changed variable is returned from a function declared to return int. Converting from u32 back to int gives the original negative errno. Equality checks such as status == -EIO also still work, because -EIO is converted to unsigned for the comparison. Only a relational check such as status < 0 would give a wrong result. None of the ten functions touched here does a relational comparison on these variables. For example, ixgbe_resume() only tests err for truth and returns it: err = pci_enable_device_mem(pdev); if (err) { e_dev_err("Cannot enable PCI device from suspend\n"); return err; } ... if (!err) netif_device_attach(netdev); rtnl_unlock(); return err; The other functions follow the same if (status) / return status pattern. That appears to contradict the later statement: > No functional change. Could the rationale be limited to type correctness and readability, so that it doesn't read as though an existing runtime bug is being fixed? -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261204223807.3920143-1-anthony.l.nguyen%40intel.com