Thread (45 messages) 45 messages, 15 authors, 2025-04-26

Re: [PATCH v4 10/14] s390: Add support for suppressing warning backtraces

From: "Arnd Bergmann" <arnd@arndb.de>
Date: 2025-03-21 17:33:43
Also in: dri-devel, linux-arch, linux-arm-kernel, linux-doc, linux-kselftest, linux-riscv, linux-s390, linux-sh, lkml, loongarch

On Fri, Mar 21, 2025, at 18:05, Guenter Roeck wrote:
On 3/13/25 04:43, Alessandro Carminati wrote:

gcc 10.3.0 and later do not have this problem. I also tried s390 builds 
with gcc 9.4
and 9.5 but they both crash for unrelated reasons.

If this is a concern, the best idea I have is to make KUNIT_SUPPRESS_BACKTRACE
depend on, say,
	depends on CC_IS_CLANG || (CC_IS_GCC && GCC_VERSION >= 100300)

A more complex solution might be to define an architecture flag such
as HAVE_SUPPRESS_BACKTRACE, make that conditional on the gcc version
for s390 only, and make KUNIT_SUPPRESS_BACKTRACE depend on it.
That is probably fine, there are very few users on s390 that build
their own kernels, and they likely all have modern compilers anyway.

I should still send a patch to raise the minimum compiler version to
gcc-8.1, but unfortunately that is not enough here.

     Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help