Re: [PATCH v2 22/37] arm64: mte: Add in-kernel MTE helpers

From: Vincenzo Frascino
Date: Tue Sep 22 2020 - 06:13:40 EST




On 9/18/20 10:36 AM, Catalin Marinas wrote:
>> Same as above but I will use the orr in the next version.
> I wonder whether system_supports_mte() makes more sense here than the
> alternative:
>
> if (!system_supports_mte())
> return 0xff;
>
> ... mte irg stuff ...
>
> (you could do the same for the mte_get_mem_tag() function)
>

This would have been my preference from the beginning but then you mentioned
alternatives ;)

Anyway, more then happy to change the code in this way, seems more clean and
easy to understand.

--
Regards,
Vincenzo