diff options
author | Christian Lütke-Stetzkamp <christian@lkamp.de> | 2018-04-24 20:01:27 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-25 15:36:20 +0200 |
commit | 884c06af7271a8aef42197102d4bb31cd795f3b7 (patch) | |
tree | 312eb552458f0c13fb032c9a9be27e1ba38db803 /drivers | |
parent | 0b78f05d510b01e353481f5bccb63661d2cb5c32 (diff) |
staging: mt7621-mmc: Add annotations about held locks
The functions msdc_command_resp and msdc_do_request are always called
with the host->lock lock held. By adding annotations, sparse is
informed about that.
Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Reviewed-by: NeilBrown <neil@brown.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/mt7621-mmc/sd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/mt7621-mmc/sd.c b/drivers/staging/mt7621-mmc/sd.c index 3f90316b43a6..9476728c925c 100644 --- a/drivers/staging/mt7621-mmc/sd.c +++ b/drivers/staging/mt7621-mmc/sd.c @@ -950,6 +950,7 @@ static unsigned int msdc_command_resp(struct msdc_host *host, struct mmc_command *cmd, int tune, unsigned long timeout) + __must_hold(&host->lock) { void __iomem *base = host->base; u32 opcode = cmd->opcode; @@ -1353,6 +1354,7 @@ static void msdc_set_blknum(struct msdc_host *host, u32 blknum) } static int msdc_do_request(struct mmc_host *mmc, struct mmc_request *mrq) + __must_hold(&host->lock) { struct msdc_host *host = mmc_priv(mmc); struct mmc_command *cmd; |