summaryrefslogtreecommitdiff
path: root/drivers/mmc/core
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-11-30 14:37:38 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2017-12-11 14:48:05 +0300
commit15ff2946b3c9661b14fc5123902dad28e1f13f3e (patch)
tree8ed83d9f27b5f945b0175973137a146dc63bb8b2 /drivers/mmc/core
parentaa95014445769f3ac204f85ff85efe11bbd0bc8c (diff)
downloadlinux-15ff2946b3c9661b14fc5123902dad28e1f13f3e.tar.xz
mmc: block: make function mmc_cqe_issue_type static
The function mmc_cqe_issue_type is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: drivers/mmc/core/queue.c:62:21: warning: symbol 'mmc_cqe_issue_type' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r--drivers/mmc/core/queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/core/queue.c b/drivers/mmc/core/queue.c
index d8394007bc99..5db388081789 100644
--- a/drivers/mmc/core/queue.c
+++ b/drivers/mmc/core/queue.c
@@ -59,8 +59,8 @@ static inline bool mmc_cqe_can_dcmd(struct mmc_host *host)
return host->caps2 & MMC_CAP2_CQE_DCMD;
}
-enum mmc_issue_type mmc_cqe_issue_type(struct mmc_host *host,
- struct request *req)
+static enum mmc_issue_type mmc_cqe_issue_type(struct mmc_host *host,
+ struct request *req)
{
switch (req_op(req)) {
case REQ_OP_DRV_IN: