* [PATCH] libgcc: Add forward declarations for generic library routines
@ 2023-04-21 14:54 Geert Uytterhoeven
2023-04-21 20:38 ` Arnd Bergmann
2023-05-08 14:41 ` patchwork-bot+linux-riscv
0 siblings, 2 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2023-04-21 14:54 UTC (permalink / raw)
To: Andrew Morton, Arnd Bergmann
Cc: linux-csky, loongarch, linux-mips, linux-riscv, linux-sh,
Chris Zankel, Max Filippov, Geert Uytterhoeven, kernel test robot
With W=1 on platforms that use the generic gcc library routines
(csky/loongarch/mips/riscv/sh/xtensa):
lib/ashldi3.c:9:19: warning: no previous prototype for '__ashldi3' [-Wmissing-prototypes]
9 | long long notrace __ashldi3(long long u, word_type b)
| ^~~~~~~~~
CC lib/ashrdi3.o
lib/ashrdi3.c:9:19: warning: no previous prototype for '__ashrdi3' [-Wmissing-prototypes]
9 | long long notrace __ashrdi3(long long u, word_type b)
| ^~~~~~~~~
CC lib/cmpdi2.o
lib/cmpdi2.c:9:19: warning: no previous prototype for '__cmpdi2' [-Wmissing-prototypes]
9 | word_type notrace __cmpdi2(long long a, long long b)
| ^~~~~~~~
CC lib/lshrdi3.o
lib/lshrdi3.c:9:19: warning: no previous prototype for '__lshrdi3' [-Wmissing-prototypes]
9 | long long notrace __lshrdi3(long long u, word_type b)
| ^~~~~~~~~
CC lib/muldi3.o
lib/muldi3.c:49:19: warning: no previous prototype for '__muldi3' [-Wmissing-prototypes]
49 | long long notrace __muldi3(long long u, long long v)
| ^~~~~~~~
CC lib/ucmpdi2.o
lib/ucmpdi2.c:8:19: warning: no previous prototype for '__ucmpdi2' [-Wmissing-prototypes]
8 | word_type notrace __ucmpdi2(unsigned long long a, unsigned long long b)
| ^~~~~~~~~
Fix this by adding forward declarations to the common libgcc header
file.
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202303272214.RxzpA6bP-lkp@intel.com/
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
include/linux/libgcc.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/linux/libgcc.h b/include/linux/libgcc.h
index b8dc75f0c8308bd4..fc388da6a027faaf 100644
--- a/include/linux/libgcc.h
+++ b/include/linux/libgcc.h
@@ -27,4 +27,11 @@ typedef union {
long long ll;
} DWunion;
+long long notrace __ashldi3(long long u, word_type b);
+long long notrace __ashrdi3(long long u, word_type b);
+word_type notrace __cmpdi2(long long a, long long b);
+long long notrace __lshrdi3(long long u, word_type b);
+long long notrace __muldi3(long long u, long long v);
+word_type notrace __ucmpdi2(unsigned long long a, unsigned long long b);
+
#endif /* __ASM_LIBGCC_H */
--
2.34.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] libgcc: Add forward declarations for generic library routines
2023-04-21 14:54 [PATCH] libgcc: Add forward declarations for generic library routines Geert Uytterhoeven
@ 2023-04-21 20:38 ` Arnd Bergmann
2023-04-29 20:20 ` Palmer Dabbelt
2023-05-08 14:41 ` patchwork-bot+linux-riscv
1 sibling, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2023-04-21 20:38 UTC (permalink / raw)
To: Geert Uytterhoeven, Andrew Morton
Cc: linux-csky@vger.kernel.org, loongarch, linux-mips, linux-riscv,
linux-sh, Chris Zankel, Max Filippov, kernel test robot
On Fri, Apr 21, 2023, at 16:54, Geert Uytterhoeven wrote:
> With W=1 on platforms that use the generic gcc library routines
> (csky/loongarch/mips/riscv/sh/xtensa):
>
> Reported-by: kernel test robot <lkp@intel.com>
> Link: https://lore.kernel.org/oe-kbuild-all/202303272214.RxzpA6bP-lkp@intel.com/
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Nice, this is one I don't have in my series,
Acked-by: Arnd Bergmann <arnd@arndb.de>
I have patches for a lot of other missing prototype warnings, plan
to send them out after -rc1.
Arnd
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] libgcc: Add forward declarations for generic library routines
2023-04-21 20:38 ` Arnd Bergmann
@ 2023-04-29 20:20 ` Palmer Dabbelt
2023-04-30 13:03 ` Geert Uytterhoeven
0 siblings, 1 reply; 5+ messages in thread
From: Palmer Dabbelt @ 2023-04-29 20:20 UTC (permalink / raw)
To: Arnd Bergmann
Cc: geert+renesas, akpm, linux-csky, loongarch, linux-mips,
linux-riscv, linux-sh, chris, jcmvbkbc, lkp
On Fri, 21 Apr 2023 13:38:52 PDT (-0700), Arnd Bergmann wrote:
> On Fri, Apr 21, 2023, at 16:54, Geert Uytterhoeven wrote:
>> With W=1 on platforms that use the generic gcc library routines
>> (csky/loongarch/mips/riscv/sh/xtensa):
>>
>> Reported-by: kernel test robot <lkp@intel.com>
>> Link: https://lore.kernel.org/oe-kbuild-all/202303272214.RxzpA6bP-lkp@intel.com/
>> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>
> Nice, this is one I don't have in my series,
>
> Acked-by: Arnd Bergmann <arnd@arndb.de>
>
> I have patches for a lot of other missing prototype warnings, plan
> to send them out after -rc1.
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
I think I've merged some stuff around here before, but it's probably
better for some more generic tree? LMK if you guys wanted me to pick
these up, though, I've got a smattering of small stuff already so I'll
have another PR either way.
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] libgcc: Add forward declarations for generic library routines
2023-04-29 20:20 ` Palmer Dabbelt
@ 2023-04-30 13:03 ` Geert Uytterhoeven
0 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2023-04-30 13:03 UTC (permalink / raw)
To: Palmer Dabbelt
Cc: Arnd Bergmann, geert+renesas, akpm, linux-csky, loongarch,
linux-mips, linux-riscv, linux-sh, chris, jcmvbkbc, lkp
Hi Palmer,
On Sat, Apr 29, 2023 at 10:20 PM Palmer Dabbelt <palmer@dabbelt.com> wrote:
> On Fri, 21 Apr 2023 13:38:52 PDT (-0700), Arnd Bergmann wrote:
> > On Fri, Apr 21, 2023, at 16:54, Geert Uytterhoeven wrote:
> >> With W=1 on platforms that use the generic gcc library routines
> >> (csky/loongarch/mips/riscv/sh/xtensa):
> >>
> >> Reported-by: kernel test robot <lkp@intel.com>
> >> Link: https://lore.kernel.org/oe-kbuild-all/202303272214.RxzpA6bP-lkp@intel.com/
> >> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> >
> > Nice, this is one I don't have in my series,
> >
> > Acked-by: Arnd Bergmann <arnd@arndb.de>
> >
> > I have patches for a lot of other missing prototype warnings, plan
> > to send them out after -rc1.
>
> Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
> Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Thanks!
> I think I've merged some stuff around here before, but it's probably
> better for some more generic tree? LMK if you guys wanted me to pick
> these up, though, I've got a smattering of small stuff already so I'll
> have another PR either way.
Too late ;-) Already upstream via akpm's tree.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] libgcc: Add forward declarations for generic library routines
2023-04-21 14:54 [PATCH] libgcc: Add forward declarations for generic library routines Geert Uytterhoeven
2023-04-21 20:38 ` Arnd Bergmann
@ 2023-05-08 14:41 ` patchwork-bot+linux-riscv
1 sibling, 0 replies; 5+ messages in thread
From: patchwork-bot+linux-riscv @ 2023-05-08 14:41 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: linux-riscv, akpm, arnd, linux-csky, loongarch, linux-mips,
linux-sh, chris, jcmvbkbc, lkp
Hello:
This patch was applied to riscv/linux.git (fixes)
by Andrew Morton <akpm@linux-foundation.org>:
On Fri, 21 Apr 2023 16:54:24 +0200 you wrote:
> With W=1 on platforms that use the generic gcc library routines
> (csky/loongarch/mips/riscv/sh/xtensa):
>
> lib/ashldi3.c:9:19: warning: no previous prototype for '__ashldi3' [-Wmissing-prototypes]
> 9 | long long notrace __ashldi3(long long u, word_type b)
> | ^~~~~~~~~
> CC lib/ashrdi3.o
> lib/ashrdi3.c:9:19: warning: no previous prototype for '__ashrdi3' [-Wmissing-prototypes]
> 9 | long long notrace __ashrdi3(long long u, word_type b)
> | ^~~~~~~~~
> CC lib/cmpdi2.o
> lib/cmpdi2.c:9:19: warning: no previous prototype for '__cmpdi2' [-Wmissing-prototypes]
> 9 | word_type notrace __cmpdi2(long long a, long long b)
> | ^~~~~~~~
> CC lib/lshrdi3.o
> lib/lshrdi3.c:9:19: warning: no previous prototype for '__lshrdi3' [-Wmissing-prototypes]
> 9 | long long notrace __lshrdi3(long long u, word_type b)
> | ^~~~~~~~~
> CC lib/muldi3.o
> lib/muldi3.c:49:19: warning: no previous prototype for '__muldi3' [-Wmissing-prototypes]
> 49 | long long notrace __muldi3(long long u, long long v)
> | ^~~~~~~~
> CC lib/ucmpdi2.o
> lib/ucmpdi2.c:8:19: warning: no previous prototype for '__ucmpdi2' [-Wmissing-prototypes]
> 8 | word_type notrace __ucmpdi2(unsigned long long a, unsigned long long b)
> | ^~~~~~~~~
>
> [...]
Here is the summary with links:
- libgcc: Add forward declarations for generic library routines
https://git.kernel.org/riscv/c/4f20b7471c57
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-05-08 14:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-21 14:54 [PATCH] libgcc: Add forward declarations for generic library routines Geert Uytterhoeven
2023-04-21 20:38 ` Arnd Bergmann
2023-04-29 20:20 ` Palmer Dabbelt
2023-04-30 13:03 ` Geert Uytterhoeven
2023-05-08 14:41 ` patchwork-bot+linux-riscv
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox