serial: msm_serial: add sparse context annotation
authorJohan Hovold <johan@kernel.org>
Thu, 23 Jul 2020 12:33:27 +0000 (14:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jul 2020 08:44:27 +0000 (10:44 +0200)
commitca45b5cd55d2ea2e4f2ddec1175cc9bdb5b74e07
treef30870a135a7d0e5c3d2906a96d47317f7402000
parentde5b2c9d16924ad0d9e2bfd9a5da16fe6ea54f22
serial: msm_serial: add sparse context annotation

Add sparse context annotation to the receive handlers, which release and
reacquire the port lock, to silence sparse warnings:

drivers/tty/serial/msm_serial.c:748:25: warning: context imbalance in 'msm_handle_rx_dm' - unexpected unlock
drivers/tty/serial/msm_serial.c:814:28: warning: context imbalance in 'msm_handle_rx' - unexpected unlock

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200723123327.5843-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/msm_serial.c