dmaengine: ioatdma: fix sparse "error" with prep lock
authorDave Jiang <dave.jiang@intel.com>
Tue, 25 Aug 2015 19:58:05 +0000 (12:58 -0700)
committerVinod Koul <vinod.koul@intel.com>
Wed, 26 Aug 2015 02:23:58 +0000 (07:53 +0530)
commit5c65cb93a3d066f52a109552572304675d5a52fc
treed6d763160a9a56ef042e1c4527db310d6889dba4
parent4d112426c3446d94b9bc56396075524b06913b1c
dmaengine: ioatdma: fix sparse "error" with prep lock

The prep lock gets acquired in ioat_check_space_lock and released in
ioat_tx_submit_unlock. Setting the annotations so sparse does not freak out.

drivers/dma/ioat/dma.c:273:30: sparse: context imbalance in 'ioat_tx_submit_unlock' - unexpected unlock
drivers/dma/ioat/dma.c:476:5: sparse: context imbalance in 'ioat_check_space_lock' - wrong count at exit

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ioat/dma.c