aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/mt7621-mmc
diff options
context:
space:
mode:
authorChristian Lütke-Stetzkamp <christian@lkamp.de>2018-04-24 20:01:27 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-25 15:36:20 +0200
commit884c06af7271a8aef42197102d4bb31cd795f3b7 (patch)
tree312eb552458f0c13fb032c9a9be27e1ba38db803 /drivers/staging/mt7621-mmc
parentstaging: mt7621-mmc: Correct datatypes for io and sanitize io access (diff)
downloadlinux-dev-884c06af7271a8aef42197102d4bb31cd795f3b7.tar.xz
linux-dev-884c06af7271a8aef42197102d4bb31cd795f3b7.zip
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/staging/mt7621-mmc')
-rw-r--r--drivers/staging/mt7621-mmc/sd.c2
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;