Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: alternative: Remove optional 'cfg' parameter
@ 2026-09-02 11:32 Mark Rutland
  2026-09-02 11:32 ` [PATCH 1/2] arm64: mte-kasan: Use IS_ENABLED() rather than ALTERNATIVE() " Mark Rutland
  2026-09-02 11:32 ` [PATCH 2/2] arm64: alternative: Remove " Mark Rutland
  0 siblings, 2 replies; 3+ messages in thread
From: Mark Rutland @ 2026-09-02 11:32 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: catalin.marinas, james.morse, mark.rutland, maz, will

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-02 11:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-02 11:32 [PATCH 0/2] arm64: alternative: Remove optional 'cfg' parameter Mark Rutland
2026-09-02 11:32 ` [PATCH 1/2] arm64: mte-kasan: Use IS_ENABLED() rather than ALTERNATIVE() " Mark Rutland
2026-09-02 11:32 ` [PATCH 2/2] arm64: alternative: Remove " Mark Rutland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox