]> git.itanic.dy.fi Git - linux-stable/commitdiff
m68k: lib: Include <linux/libgcc.h> for __muldi3()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 11 Oct 2023 07:16:33 +0000 (09:16 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 16 Oct 2023 12:30:40 +0000 (14:30 +0200)
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
arch/m68k/lib/muldi3.c

index eb7d9d86ff6697a5f6e35a12b7d3f5c445e6e39f..5012a9b218c7824c2ffbc24c8db2f3e03588e4ea 100644 (file)
@@ -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