mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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>
This commit is contained in:
parent
6831a8a3bd
commit
668a920208
1 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,9 @@
|
|||
__rem; \
|
||||
})
|
||||
|
||||
/* defining this stops the unused helper function from being built */
|
||||
#define __div64_32 __div64_32
|
||||
|
||||
#endif /* CONFIG_CPU_HAS_NO_MULDIV64 */
|
||||
|
||||
#endif /* _M68K_DIV64_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue