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

Add sparse context annotation to the receive handler, which releases and
reacquires the port lock, to silence a sparse warning:

drivers/tty/serial/pmac_zilog.c:255:36: sparse: sparse: context imbalance in 'pmz_receive_chars' - unexpected unlock

Reported-by: kernel test robot <lkp@intel.com>
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-2-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pmac_zilog.c