Re: [PATCH v9 0/6] lib and lib/cmdline enhancements

Andrew Morton
2026-04-03T17:09:59Z

On Fri, 3 Apr 2026 13:33:32 +0300 Dmitry Antipov <dmantipov@yandex.ru> wrote:

> Adjust '_parse_integer_limit()' and 'memparse()' to not ignore overflows,
> extend string to 64-bit integer conversion tests, add KUnit-based test
> for 'memparse()', fix kernel-doc glitches found in lib/cmdline.c and
> adjust riscv32 linker script to export symbols needed for EFI stub.

Thanks, Dmitry.

I've updated mm.git's mm-nonmm-unstable with this version. I'll aim to
upstream this series during the upcoming merge window.

Here's how the v9 series altered mm.git:

arch/riscv/kernel/image-vars.h | 9 +++++++++
1 file changed, 9 insertions(+)

--- a/arch/riscv/kernel/image-vars.h~b
+++ a/arch/riscv/kernel/image-vars.h
@@ -32,6 +32,15 @@ __efistub___init_text_end = __init_text_
__efistub_sysfb_primary_display = sysfb_primary_display;
#endif

+#ifdef CONFIG_CC_IS_GCC
+/*
+ * Double-word integer shifts are used by the library code and so EFI stub as
+ * well. Not needed for clang and please let me know if anyone understands why.
+ */
+PROVIDE(__efistub___lshrdi3 = __lshrdi3);
+PROVIDE(__efistub___ashldi3 = __ashldi3);
+#endif /* CONFIG_CC_IS_GCC */
+
#endif

#endif /* __RISCV_KERNEL_IMAGE_VARS_H */
_