[PATCH 0/2] arm64: alternative: Remove optional 'cfg' parameter
Mark Rutland
mark.rutland at arm.com
Wed Sep 2 04:32:30 PDT 2026
These patches remove the optional 'cfg' parameter from alternative
macros.
Use of the 'cfg' parameter is less clear than ifdeffery or IS_ENABLED()
checks, and also doesn't allow the compiler to elide asm() blocks when
'cfg' is not selected, so it's preferable to avoid it.
Mark.
Mark Rutland (2):
arm64: mte-kasan: Use IS_ENABLED() rather than ALTERNATIVE() 'cfg'
parameter
arm64: alternative: Remove 'cfg' parameter
arch/arm64/include/asm/alternative-macros.h | 30 +++++++--------------
arch/arm64/include/asm/mte-kasan.h | 10 ++++---
2 files changed, 16 insertions(+), 24 deletions(-)
--
2.30.2
More information about the linux-arm-kernel
mailing list