[PATCH 0/2] arm64: alternative: Remove optional 'cfg' parameter

From
Mark Rutland <mark.rutland@arm.com>
Date
2026-09-02 11:32:51
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

Thread (6 messages) 6 messages, 3 authors, last reply 2026-09-23
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help