remainder = do_div(rate, prate);
- if ((remainder * 2) / prate)
+ if ((remainder * 2) >= prate)
*l = *l + 1;
*l = rate + (u32)(remainder * 2 >= prate);
The above change does fix this build error for me.
Satya, did you intend this to be a fix? Can we get this into -next?
Yes, I have posted a v2 for this last week, but there are few open comments on that, I'll address them and post V3 including the build error you reported in commit-text.
[v2] https://lore.kernel.org/linux-clk/20240814102005.33493-1-quic_skakitap@xxxxxxxxxxx/
Have you push a V3 yet?