diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-07-28 01:11:29 +0800 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2020-08-05 08:28:15 +0200 |
commit | 7f4bc2e8687ecea52177aac30fb153cc076f7022 (patch) | |
tree | 8f19bfb888fba3c7d051b0918874e87656e4596b /drivers/mmc/host/mtk-sd.c | |
parent | 804f178612afa1dffe0c7b84596ef97374944eb6 (diff) | |
download | linux-7f4bc2e8687ecea52177aac30fb153cc076f7022.tar.bz2 |
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: 88bd652b3c74 ("mmc: mediatek: command queue support")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
Link: https://lore.kernel.org/r/20200727171129.2945-1-weiyongjun1@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/mtk-sd.c')
-rw-r--r-- | drivers/mmc/host/mtk-sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 734e403a142e..4e2583f69a63 100644 --- a/drivers/mmc/host/mtk-sd.c +++ b/drivers/mmc/host/mtk-sd.c @@ -2266,7 +2266,7 @@ static void msdc_cqe_enable(struct mmc_host *mmc) msdc_set_timeout(host, 1000000000ULL, 0); } -void msdc_cqe_disable(struct mmc_host *mmc, bool recovery) +static void msdc_cqe_disable(struct mmc_host *mmc, bool recovery) { struct msdc_host *host = mmc_priv(mmc); |