diff options
| author | Arnd Bergmann <[email protected]> | 2025-02-25 21:32:33 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2025-02-25 21:44:35 +0000 |
| commit | 9de7695925d5d2d2085681ba935857246eb2817d (patch) | |
| tree | d0cdf7282106f06418ec82123cd90d7049fdb2bd /arch/x86/entry/common.c | |
| parent | x86/CPU: Fix warm boot hang regression on AMD SC1100 SoC systems (diff) | |
| download | kernel-9de7695925d5d2d2085681ba935857246eb2817d.tar.gz kernel-9de7695925d5d2d2085681ba935857246eb2817d.zip | |
x86/irq: Define trace events conditionally
When both of X86_LOCAL_APIC and X86_THERMAL_VECTOR are disabled,
the irq tracing produces a W=1 build warning for the tracing
definitions:
In file included from include/trace/trace_events.h:27,
from include/trace/define_trace.h:113,
from arch/x86/include/asm/trace/irq_vectors.h:383,
from arch/x86/kernel/irq.c:29:
include/trace/stages/init.h:2:23: error: 'str__irq_vectors__trace_system_name' defined but not used [-Werror=unused-const-variable=]
Make the tracepoints conditional on the same symbosl that guard
their usage.
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/x86/entry/common.c')
0 files changed, 0 insertions, 0 deletions
