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

Vincenzo Frascino vincenzo.frascino at arm.com
Tue Sep 22 06:16:06 EDT 2020



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



More information about the linux-arm-kernel mailing list