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

Catalin Marinas catalin.marinas at arm.com
Wed Sep 23 11:20:04 PDT 2026


On Wed, 02 Sep 2026 12:32:30 +0100, Mark Rutland wrote:
> 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.
> 
> [...]

Applied to arm64 (for-next/misc), thanks!

[1/2] arm64: mte-kasan: Use IS_ENABLED() rather than ALTERNATIVE() 'cfg' parameter
      https://git.kernel.org/arm64/c/228718f6babd
[2/2] arm64: alternative: Remove 'cfg' parameter
      https://git.kernel.org/arm64/c/0406e2e71daf



More information about the linux-arm-kernel mailing list