Re: [PATCH RESEND] arm64: entry: drop the unused tmp2 argument of mte_set_kernel_gcr()
From: Catalin Marinas
Date: Tue Nov 24 2026 - 06:35:04 EST
On Wed, Oct 07, 2026 at 05:45:01PM +0000, Bradley Morgan wrote:
> mte_set_kernel_gcr() takes a tmp2 argument the macro never uses. It
> used to, the body passed \tmp and \tmp2 to mte_set_gcr, then
> commit 82868247897b ("arm64: kasan: mte: use a constant kernel
> GCR_EL1 value") swapped that for
>
> mov \tmp, KERNEL_GCR_EL1
>
> and tmp2 stayed in the declaration and in the one caller, which
> passes x23 for it.
>
> Drop it, both places.
>
> Signed-off-by: Bradley Morgan <brads@xxxxxxxxxxxxxx>
Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>