On Mon, Aug 10, 2020 at 1:43 PM Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote: > > Sparse can't see locking scheme used in ->get_multiple() and > ->set_multiple() callbacks. > CHECK .../drivers/gpio/gpio-aggregator.c > .../spinlock.h:409:9: warning: context imbalance in 'gpio_fwd_get_multiple' - unexpected unlock > .../spinlock.h:409:9: warning: context imbalance in 'gpio_fwd_set_multiple' - unexpected unlock > > Refactor them to have better readability and make Sparse happy. > > Code size impact is +52 bytes with arm-linux-gnueabihf-gcc 7.5.0. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> > Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> > --- Queued for v5.10, thanks! Bartosz