summaryrefslogtreecommitdiff
path: root/arch/m68k/lib
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2023-10-11 09:16:33 +0200
committerGeert Uytterhoeven <geert@linux-m68k.org>2023-10-16 14:30:40 +0200
commit03191fb3db3d2585725bcffe0356d12fcfd27c4c (patch)
tree35134fa3308c361dd50295cd9570be69829160b1 /arch/m68k/lib
parent9faf1f1a55ee9363e3b7c5d9bba546c8d2c7fccc (diff)
m68k: lib: Include <linux/libgcc.h> for __muldi3()
When building with W=1: arch/m68k/lib/muldi3.c:82:1: warning: no previous prototype for ‘__muldi3’ [-Wmissing-prototypes] 82 | __muldi3 (DItype u, DItype v) | ^~~~~~~~ Fix this by including <linux/libgcc.h>. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/r/160c1fd14b4798f576d9649334b1d2c77db5cb07.1697008341.git.geert@linux-m68k.org
Diffstat (limited to 'arch/m68k/lib')
-rw-r--r--arch/m68k/lib/muldi3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/m68k/lib/muldi3.c b/arch/m68k/lib/muldi3.c
index eb7d9d86ff66..5012a9b218c7 100644
--- a/arch/m68k/lib/muldi3.c
+++ b/arch/m68k/lib/muldi3.c
@@ -16,6 +16,7 @@ GNU General Public License for more details. */
#include <linux/compiler.h>
#include <linux/export.h>
+#include <linux/libgcc.h>
#ifdef CONFIG_CPU_HAS_NO_MULDIV64