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=1796314968; b=3dad1vAG787EixBk7wo8Ve5XDFrz0oA+fNE0QcjQHMDxw12E3ZBPM/e220d7bFd6KtHa 8Xd31TGlmTtMY2PC1whTphH2DpP41HXAFMJu2vJyQWf0Lr2sJclMs2l77EWq/DWRdSTZt OP53zmLNw7TAPyuoczHvGubDTfPpuDWcsAy4GX9kJDBsDeT1p+iRGHPp1nwR1FYb1m8WH r102b/yaO53vcCPqDqbWD+Z/pFwQYPj5qOLhLLdm2puafBiFMc7t4lb60hPxh1pLUyuZt IN1IbRzoSB4bGboWu6y+7H2xbL/Z8qdlQOjFSdXY+NSEqxcAuiL6jFJv9cd7MUcNpWg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796314968; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=PJXWH2lOClmvFswrYqABMsX6ae6lOmyCD8wZzJebm4E=; b=lW/qBNeFMRul2pZLewxkK+zfffyNRp0gr+Ad2H0MUmy6k3eTtWJ5wAhP+Pq02GdeY0aG N5ZuiTZmg0wdu6ipU+Cw3lmNqnYU/F7hAk9WWsjZ3pLvrBUAIG5BK531i6Gmp9wr+5ztm KcFykqyKI+JaX5zJodPR/rHPuyEweo7jZRxco5c5biqWB+REbgvxpxo7vD6//K/3LQ37H I+9BhxvLvRsw2t0A8PCt2nvRwqgnzEQMhBcEb07siAff+aPfLZm0WnhMJk8rTmI94sVWZ kq0QOm2WiXOvpuXwVGo6zASxhrq6j7JMg2mi++KcP+NV2AODOgwjK8MzeXfynTzJxuw== 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=of2PkDIc; 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 2EC97606A322 for ; Thu, 3 Dec 2026 16:22:47 +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=of2PkDIc Received: by smtp.kernel.org (Postfix) with ESMTPSA id 924BB1F000C1; Thu, 3 Dec 2026 16:22:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796314967; bh=PJXWH2lOClmvFswrYqABMsX6ae6lOmyCD8wZzJebm4E=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=of2PkDIcoX8d/K3/VS+RHQvOiaZfgob1xWLecYmKq8RMret0isW7XC5AJlqDfDZ6a /kY6GmcHMrmrIUmxMeETGqT0R/w9sRN6IRJ3kFW0RtJrC4FudEumRDq9hkxokUY0v7 hRjadC0De/wfA1X4rD/18lEsxeIF6lzl+ogcBIdh+2HMBwj3vOI57v/FuS14iJEkkg 7RTjU5hJoST+u24DUeY519aE4SrxibZCyugtIDSsH/CmRvoMuKnNWDuA8a16jUuwHd auLsAw9jzBDKZ7qaWPWF0gTXhDPmXAVbt14tS3FWdqE6qvUWl7utZPY2ZS9XIcuPFZ 8irJOujy6WKOQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 07/18] iio: adc: ad4170-4: Fix overflow in sample rate fractional part Reply-To: sashiko-reviews@lists.linux.dev To: "Janani Sunil" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203-ad419x-release-v1-7-18578ab50524@analog.com> References: <20261203-ad419x-release-v1-0-18578ab50524@analog.com> <20261203-ad419x-release-v1-7-18578ab50524@analog.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 16:22:47 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] iio: ad4170-4: commit message misstates mult_frac() overflow type and scope -- commit 8496654d945dc5fa6e87112d8df24f14ce2e8f43 Author: Janani Sunil iio: adc: ad4170-4: Fix overflow in sample rate fractional part This commit replaces mult_frac() with 64-bit div_u64() arithmetic when computing the fractional part of sample rates in ad4170_fill_sps_tbl(). > ad4170_fill_sps_tbl() computes the fractional part of each sample rate > with mult_frac(), which works in the type of its first argument. The > remainder times MICRO overflows unsigned int for remainders above 4294, [Severity: Low] Is this description of the mult_frac() overflow accurate? mult_frac() in include/linux/math.h preserves typeof(n) in n_, and MICRO in include/linux/units.h is 1000000UL. Because r * n_ promotes r to unsigned long rather than unsigned int, the overflow only happens on 32-bit architectures where unsigned long is 32 bits. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-ad419x-rel= ease-v1-0-18578ab50524@analog.com?part=3D7