[v5 10/34] arm_mpam: Add probe/remove for mpam msc driver and kbuild boiler plate

Markus Elfring Markus.Elfring at web.de
Tue Nov 18 03:28:09 PST 2025


>> Does anything hinder you to integrate statements like “guard(mutex)(&mpam_list_lock);” here?
>> https://elixir.bootlin.com/linux/v6.18-rc6/source/include/linux/mutex.h#L228
> 
> The mpam_list_lock needs to be dropped before the end of the scope as it
> is also taken in mpam_msc_drv_remove().

Would you eventually prefer to use scoped_guard() calls at any more source code places?
https://elixir.bootlin.com/linux/v6.18-rc6/source/include/linux/cleanup.h#L316-L319

Regards,
Markus



More information about the linux-arm-kernel mailing list