Skip to content

arm64: alternative: Remove optional 'cfg' parameter

Mark Rutland linux-arm-kernel 1 version Applied

Status from this message: Applied to arm64 (for-next/misc), thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2arm64: mte-kasan: Use IS_ENABLED() rather than ALTERNATIVE() 'cfg' parameterarch/arm64/include/asm/mte-kasan.h+6 -41 reply
2/2arm64: alternative: Remove 'cfg' parameterarch/arm64/include/asm/alternative-macros.h+10 -201 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchVladimir Murzin
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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(-)
Signature · 1 line
2.30.2