On Thu, 15 Aug 2024 08:56:45 +0200, Ahmad Fatoum wrote: > DIV_ROUND_DOWN_ULL promotes division arguments to 64-bit, but > DIV_ROUND_UP_ULL did so only for the division, not the addition for the > round up. This would lead to a wrong result when the 32-bit addition > wraps around. > > Linux has an explicit cast to fix this, so do likewise in barebox. > > [...] Applied, thanks! [1/2] include: linux/math.h: promote DIV_ROUND_UP_ULL args to 64-bit https://git.pengutronix.de/cgit/barebox/commit/?id=6866796d1ce0 (link may not be stable) [2/2] i2c: efi: use DIV_ROUND_UP_ULL instead of native division https://git.pengutronix.de/cgit/barebox/commit/?id=2c24ed8454a0 (link may not be stable) Best regards, -- Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>