[PATCH v11 0/8] lib and lib/cmdline enhancements

Andrew Morton akpm at linux-foundation.org
Tue May 19 12:10:31 PDT 2026


On Tue, 19 May 2026 20:22:51 +0300 Dmitry Antipov <dmantipov at yandex.ru> wrote:

> This series is a merge of the recently posted [1] and [2]. The first
> one is intended to adjust '_parse_integer_limit()' and 'memparse()' to
> not ignore overflows, extend string to 64-bit integer conversion tests,
> add KUnit-based test for 'memparse()' and fix kernel-doc glitches found
> in lib/cmdline.c. The second one was originated from RISCV-specific
> build fixes needed to integrate the former and now aims to provide
> platform-specific double-word shifts and corresponding KUnit test.
> 
> This series was briefly tested on X86, RISCV32, ARM, and MIPS using QEMU,
> and compile-tested for LoongArch32 as well.
> 
> Getting feedback from RISCV core maintainers would be very helpful.
> 
> Special thanks to Andy Shevchenko, Charlie Jenkins, and Andrew Morton.
> 
> [1] https://lore.kernel.org/linux-riscv/20260403103338.1122415-1-dmantipov@yandex.ru
> [2] https://lore.kernel.org/linux-riscv/20260427090105.705529-1-dmantipov@yandex.ru

Thanks.  I updated mm.git's mm-nonmm-unstable branch to this version.

Below is how v11 altered mm.git.  Please note that it's conventional to
changelog the updates in the [0/N].  I see it there in the [6/8] and
[7/8] changelogs:

v11: add prototypes to arch/riscv/include/asm/asm-prototypes.h (Sashiko)
v11: explicitly depends on arm/xtensa/microblaze or 32-bit riscv/sparc (Sashiko)


 arch/riscv/include/asm/asm-prototypes.h |    4 ++++
 lib/Kconfig.debug                       |    2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

--- a/arch/riscv/include/asm/asm-prototypes.h~b
+++ a/arch/riscv/include/asm/asm-prototypes.h
@@ -5,6 +5,10 @@
 #include <linux/ftrace.h>
 #include <asm-generic/asm-prototypes.h>
 
+long long __lshrdi3(long long a, int b);
+long long __ashrdi3(long long a, int b);
+long long __ashldi3(long long a, int b);
+
 long long __lshrti3(long long a, int b);
 long long __ashrti3(long long a, int b);
 long long __ashlti3(long long a, int b);
--- a/lib/Kconfig.debug~b
+++ a/lib/Kconfig.debug
@@ -2974,7 +2974,7 @@ config BITS_TEST
 config SHDI3_KUNIT_TEST
 	tristate "KUnit test for __ashldi3(), __ashrdi3(), and __lshrdi3()"
 	depends on KUNIT
-	depends on (32BIT || ARM)
+	depends on ARM || XTENSA || MICROBLAZE || ((RISCV || SPARC) && !64BIT)
 	help
 	  This builds the unit test for __ashldi3(), __ashrdi3(), and
 	  __lshrdi3() helper functions used to implement 64-bit arithmetic
_




More information about the linux-riscv mailing list