mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 04:09:18 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0b78f05d51
commit
884c06af72
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user