[Bug] Failing kunit test on ARCH=arm and LLVM=1

From: Christian Schrefl
Date: Fri Jun 07 2024 - 08:37:28 EST


Greetings,

when trying to port Rust to ARM I noticed that the DEFINE_FLEX_test
kunit test in lib/overflow_kunit.c:1188 fails when combining LLVM=1
and ARCH=arm.

I have reproduced this on v6.10-rc1 and next-20240606.

Here is the clang/llvm version I'm using:
clang version 18.1.6 (Fedora 18.1.6-3.fc40)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Configuration file: /etc/clang/x86_64-redhat-linux-gnu-clang.cfg

I have not looked closer at the failure so I'm unsure if this is a
problem with LLVM or if the test case is to speciffic.

Let me know if I should open a issue at
https://github.com/ClangBuiltLinux/linux/issues instead.

Cheers,
Christian