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