Skip to content

Commit 7f4bc2e

Browse files
Wei Yongjunstorulf
authored andcommitted
mmc: mediatek: make function msdc_cqe_disable() static
The sparse tool complains as follows: drivers/mmc/host/mtk-sd.c:2269:6: warning: symbol 'msdc_cqe_disable' was not declared. Should it be static? This function is not used outside of mtk-sd.c, so this commit marks it static. Fixes: 88bd652 ("mmc: mediatek: command queue support") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Acked-by: Chun-Hung Wu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 804f178 commit 7f4bc2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/mtk-sd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2266,7 +2266,7 @@ static void msdc_cqe_enable(struct mmc_host *mmc)
22662266
msdc_set_timeout(host, 1000000000ULL, 0);
22672267
}
22682268

2269-
void msdc_cqe_disable(struct mmc_host *mmc, bool recovery)
2269+
static void msdc_cqe_disable(struct mmc_host *mmc, bool recovery)
22702270
{
22712271
struct msdc_host *host = mmc_priv(mmc);
22722272

0 commit comments

Comments
 (0)