Il 27/01/26 09:45, Cristian Ciocaltea ha scritto:
Currently DIV_ROUND_CLOSEST() is only available for the kernel via
include/linux/math.h.

Expose it to userland as well by adding __KERNEL_DIV_ROUND_CLOSEST() as
a common definition in uapi.

Additionally, ensure it allows building ISO C applications by switching
from the 'typeof' GNU extension to the ISO-friendly __typeof__.

Reviewed-by: NĂ­colas F. R. A. Prado <[email protected]>
Tested-by: Diederik de Haas <[email protected]>
Signed-off-by: Cristian Ciocaltea <[email protected]>

Reviewed-by: AngeloGioacchino Del Regno 
<[email protected]>


Reply via email to