[PATCH 2/4] ASoC: stm: stm32_i2s: Use guard() for spin locks

Bui Duc Phuc phucduc.bui at gmail.com
Thu May 14 03:33:17 PDT 2026


Hi Mark,

On Thu, May 14, 2026 at 8:25 AM Mark Brown <broonie at kernel.org> wrote:
> How does scoped_guard interact with break statements - does this still
> apply to the switch?  I've not looked at how they're implemented...


I checked the scoped_guard macro implementation...
and You're right the break statement inside scoped_guard only exits
the guard's implicit loop, which is not what I intended.

Since there are no further statements after the switch block in this
function, I will replace the break with return 0 to correctly exit
the function.

I'll send a v2 of the whole series with this fix.
Would that work for you?

Best regard,
Phuc



More information about the linux-arm-kernel mailing list