Commits

Fancy Fang committed f7b57dfff94
MLK-16755 video: fbdev: mipi_dsi_northwest: fix a linker error when do 64bit div Compiling the 64-bit integer direct division statement by 32-bit GCC compiler may trigger below linker error: " drivers/built-in.o: In function `mipi_dsi_enable': core.c:(.text+0x2ad48): undefined reference to `__aeabi_uldivmod' core.c:(.text+0x2ad60): undefined reference to `__aeabi_uldivmod' core.c:(.text+0x2ada4): undefined reference to `__aeabi_uldivmod' core.c:(.text+0x2ade8): undefined reference to `__aeabi_uldivmod' core.c:(.text+0x2aed4): undefined reference to `__aeabi_uldivmod' drivers/built-in.o:core.c:(.text+0x2af00): more undefined references to `__aeabi_uldivmod' follow make: *** [vmlinux] Error 1 " In this case, use 'do_div()' can solve this linker error. This patch changes all the 'DIV_ROUND_CLOSEST()' to its 64-bit version 'DIV_ROUND_CLOSEST_ULL()' and also uses 'do_div()' to replace all the direct division operations if required. Signed-off-by: Fancy Fang <chen.fang@nxp.com>