[PATCH] arm64: Implement _THIS_IP_ using inline asm
Will Deacon
will at kernel.org
Tue May 19 08:22:56 PDT 2026
On Mon, 11 May 2026 22:16:59 +0200, Marco Elver wrote:
> Both GCC [1] and Clang [2] consider the generic version of _THIS_IP_ to
> be broken:
>
> #define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
>
> In particular, the address of a label is only expected to be used with a
> computed goto.
>
> [...]
Applied to arm64 (for-next/misc), thanks!
[1/1] arm64: Implement _THIS_IP_ using inline asm
https://git.kernel.org/arm64/c/d54e4fde9de2
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list