]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
staging cxt1e1: refactored ring buffer dump functions to avoid sparse warnings
authorWolfgang Ocker <weo@weo1.de>
Sun, 15 Jun 2014 11:03:29 +0000 (13:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 00:16:04 +0000 (17:16 -0700)
commit6c6871eb5a47c83c70a19260115ad7ceff308c1b
treecd6f60c2949942bece7e1dabd48c57753f5d89e7
parentb82f412bcf6956d89117d6f561cfb0482371b016
staging cxt1e1: refactored ring buffer dump functions to avoid sparse warnings

Sparse spit out these warnings:

drivers/staging/cxt1e1/musycc.c:68:1: warning: context imbalance in 'musycc_dump_rxbuffer_ring' - different lock contexts for basic block
drivers/staging/cxt1e1/musycc.c:136:1: warning: context imbalance in 'musycc_dump_txbuffer_ring' - different lock contexts for basic block

The new functions musycc_dump_[rt]xbuffer_ring_locked() assume that the lock is
held. musycc_dump_[rt]xbuffer_ring() take the lock.

Signed-off-by: Wolfgang Ocker <weo@weo1.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/cxt1e1/musycc.c