7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Namjae Jeon commit 146c3fc6540e24eef6296395a35bf5b924182e8b upstream. With CONFIG_HZ=1024, msecs_to_jiffies(1200) includes an overflow check that calls jiffies_to_msecs(MAX_JIFFY_OFFSET). Its saturation branch returns MAX_JIFFY_OFFSET, which exceeds the six-second upper bound. GCC 10.5 carries that branch into clamp_t()'s bounds check and fails to build ksmbd_tcp_writev() on MIPS. Compute the 1200 ms lower bound with DIV_ROUND_UP() instead, so both bounds are compile-time constants. The lower bound still rounds up to the next jiffy, and the retry interval remains between 1.2 and 6 seconds. Fixes: c0632d2010ff ("ksmbd: track delivery of queued TCP writes") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202610251743.jztr17Ib-lkp@intel.com/ Signed-off-by: Namjae Jeon Signed-off-by: Greg Kroah-Hartman --- fs/smb/server/transport_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/smb/server/transport_tcp.c +++ b/fs/smb/server/transport_tcp.c @@ -696,7 +696,7 @@ accepted: lock_sock(sk); tx->tracking->retry_after = clamp_t(unsigned long, 6UL * inet_csk(sk)->icsk_rto, - msecs_to_jiffies(1200), 6 * HZ); + DIV_ROUND_UP(1200 * HZ, MSEC_PER_SEC), 6 * HZ); release_sock(sk); tx->tracking->valid = true; }