The patch titled Subject: lib/math: hook up tests/Makefile has been added to the -mm mm-nonmm-unstable branch. Its filename is lib-math-hook-up-tests-makefile.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/lib-math-hook-up-tests-makefile.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Tamir Duberstein <tamird@xxxxxxxxx> Subject: lib/math: hook up tests/Makefile Date: Fri, 07 Feb 2025 17:32:59 -0500 Patch series "lib/prime_numbers: convert self-test to KUnit". This is a clear example of a unit test. I tested this using: $ tools/testing/kunit/kunit.py run --arch arm64 --make_options LLVM=1 math-prime_numbers ; KTAP version 1 ; 1..1 ; KTAP version 1 ; # Subtest: math-prime_numbers ; # module: prime_numbers_kunit ; 1..1 ; # prime_numbers_test: prime_numbers_test(65536) passed, last prime was 65521 ; # prime_numbers_test: primes.{last=61, .sz=64, .primes[]=...x28208a20a08a28ac} = 2-3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61 ; ; ok 1 prime_numbers_test ; ok 1 math-prime_numbers This patch (of 2): This Makefile has been dead code since it was added in commit 7fcc9b53216c ("lib/math: Add int_pow test suite"); the tests worked because of the duplicated rules in the parent directory's Makefile. Wire up tests/Makefile and remove the duplication. Link: https://lkml.kernel.org/r/20250207-prime_numbers-kunit-convert-v1-0-6067f2b7c713@xxxxxxxxx Link: https://lkml.kernel.org/r/20250207-prime_numbers-kunit-convert-v1-1-6067f2b7c713@xxxxxxxxx Fixes: 7fcc9b53216c ("lib/math: Add int_pow test suite") Signed-off-by: Tamir Duberstein <tamird@xxxxxxxxx> Cc: David Gow <davidgow@xxxxxxxxxx> Cc: Luis Felipe Hernandez <luis.hernandez093@xxxxxxxxx> Cc: Shuah Khan <shuah@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/math/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/lib/math/Makefile~lib-math-hook-up-tests-makefile +++ a/lib/math/Makefile @@ -5,9 +5,8 @@ obj-$(CONFIG_CORDIC) += cordic.o obj-$(CONFIG_PRIME_NUMBERS) += prime_numbers.o obj-$(CONFIG_RATIONAL) += rational.o -obj-$(CONFIG_INT_POW_TEST) += tests/int_pow_kunit.o obj-$(CONFIG_TEST_DIV64) += test_div64.o obj-$(CONFIG_TEST_MULDIV64) += test_mul_u64_u64_div_u64.o obj-$(CONFIG_RATIONAL_KUNIT_TEST) += rational-test.o -obj-$(CONFIG_INT_SQRT_KUNIT_TEST) += tests/int_sqrt_kunit.o obj-$(CONFIG_GCD_KUNIT_TEST) += tests/gcd_kunit.o +obj-y += tests/ _ Patches currently in -mm which might be from tamird@xxxxxxxxx are lib-math-hook-up-tests-makefile.patch lib-prime_numbers-convert-self-test-to-kunit.patch