trace/simple_ring_buffer build failure on parisc, sparc64

From: Guenter Roeck

Date: Tue Sep 22 2026 - 12:11:18 EST


Hi,

when trying to build parisc:allmodconfig or sparc64:allmodconfig,
I get the following errors.

Building parisc:allmodconfig ... failed
--------------
Error log:
Unexpected symbols in kernel/trace/simple_ring_buffer.o:
U __atomic_hash
U trace_hardirqs_off
U trace_hardirqs_on
U warn_bogus_irq_restore

Building sparc64:allmodconfig ... failed
--------------
Error log:
Unexpected symbols in kernel/trace/simple_ring_buffer.o:
U
U
U current_thread_info_reg

I always thought this has to do with my environment and/or C compiler, but
it seems as if the problem appears to be generic.

I have no idea what causes the problem, why only those architectures are
affected, or how to fix it. If anyone has an idea, please let me know and
I'll be happy to write a patch and/or test it.

I disabled CONFIG_RING_BUFFER for test builds of parisc and sparc64 for
now, so this does not directly affect my test builds anymore. This is
primarily a report that the problem exists, not a request to fix it.

Thanks,
Guenter