Skip to contentSkip to conversation

mmc: mediatek: make function msdc_cqe_disable() static

PATCH In review Wei Yongjun 3 participants 3 messages Jul 27, 2020 – Aug 5, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 drivers/mmc/host/mtk-sd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/mtk-sd.c +1 -1
index 734e403a142e..4e2583f69a63 100644
@@ -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);
 
Acked-by on v1 1/1
#1 lore raw
Quoted 21 lines · Wei Yongjun

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")
---
 drivers/mmc/host/mtk-sd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/mtk-sd.c +0 -0
index 734e403a142e..4e2583f69a63 100644

drivers/mmc/host/mtk-sd.c static void msdc_cqe_enable(struct mmc_host *mmc) · line 2272

Quoted 8 lines
drivers/mmc/host/mtk-sd.c +1 -1
@@ -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);
 
#2 lore raw
In reply to Wei Yongjun
Quoted 6 lines · Wei Yongjun

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?

Quoted 6 lines

This function is not used outside of mtk-sd.c, so this commit marks it static.

Fixes 88bd652b3c74 ("mmc: mediatek: command queue support")

Applied for next, thanks!

Kind regards
Uffe

Quoted 18 lines
---
 drivers/mmc/host/mtk-sd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/mtk-sd.c +1 -1
index 734e403a142e..4e2583f69a63 100644
@@ -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);