Re: [PATCH] x86/asm: Use asm_inline() instead of asm() in __untagged_addr()
From: Borislav Petkov
Date: Fri Mar 14 2025 - 07:25:26 EST
On Fri, Mar 14, 2025 at 10:30:55AM +0100, Uros Bizjak wrote:
> Use asm_inline() to instruct the compiler that the size of asm()
> is the minimum size of one instruction, ignoring how many instructions
> the compiler thinks it is. ALTERNATIVE macro that expands to several
> pseudo directives causes instruction length estimate to count
> more than 20 instructions.
>
> bloat-o-meter reports minimal code size increase
If you see an increase and *no* *other* *palpable* improvement, you don't send
it. It is that simple.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette