Skip to content

Commit 668a920

Browse files
arndbgeertu
authored andcommitted
m68k: Define __div64_32() to avoid a warning
The generic __div64_32() definition is built on all architectures that don't provide this as a macro. m68k however neither defines nor requires __div64_32, so it should define an empty one to avoid the warning: lib/math/div64.c:31:32: error: no previous prototype for '__div64_32' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/r/20230809211057.60514-1-arnd@kernel.org Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
1 parent 6831a8a commit 668a920

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/m68k/include/asm/div64.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
__rem; \
3232
})
3333

34+
/* defining this stops the unused helper function from being built */
35+
#define __div64_32 __div64_32
36+
3437
#endif /* CONFIG_CPU_HAS_NO_MULDIV64 */
3538

3639
#endif /* _M68K_DIV64_H */

0 commit comments

Comments
 (0)