diff options
| author | Mark Rutland <mark.rutland@arm.com> | 2026-09-02 12:32:31 +0100 |
|---|---|---|
| committer | Catalin Marinas <catalin.marinas@arm.com> | 2026-09-23 18:18:34 +0100 |
| commit | 228718f6babd189ed6e5b196aeca4752fa34e7b6 (patch) | |
| tree | 6bb42ff4dc5f986a163342437b12ca3544d05597 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 9d9523b6cf4292731c73e326720db74e785b5e8e (diff) | |
arm64: mte-kasan: Use IS_ENABLED() rather than ALTERNATIVE() 'cfg' parameter
The ALTERNATIVE() macro accepts an optional 'cfg' parameter, which
accepts a CONFIG_* symbol. Where a CONFIG_* symbol is provided, but is
not selected, the ALTERNATIVE() macro will expand to nothing.
It would be nicer overall to remove the 'cfg' parameter and to have an
explicit check for 'cfg' outside of the asm() block. This is clearer to
a reader, and permits the compiler to elide the asm() block when 'cfg'
is not selected.
In the mte-kasan code, replace the usage of the 'cfg' parameter with an
explicit IS_ENABLED() check.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: James Morse <james.morse@arm.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Will Deacon <will@kernel.org>
Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
