[PATCH 3/6] mmc: bcm2835: make internal functions static

Stefan Wahren stefan.wahren at i2se.com
Sat Feb 11 14:48:33 PST 2017


This fixes the sparse warnings about missing declarations.

Signed-off-by: Stefan Wahren <stefan.wahren at i2se.com>
---
 drivers/mmc/host/bcm2835.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c
index bbb1084..08d9a56 100644
--- a/drivers/mmc/host/bcm2835.c
+++ b/drivers/mmc/host/bcm2835.c
@@ -631,6 +631,7 @@ static void bcm2835_finish_request(struct bcm2835_host *host)
 	mmc_request_done(host->mmc, mrq);
 }
 
+static
 bool bcm2835_send_command(struct bcm2835_host *host, struct mmc_command *cmd)
 {
 	struct device *dev = &host->pdev->dev;
@@ -1119,7 +1120,7 @@ static void bcm2835_dma_complete_work(struct work_struct *work)
 	mutex_unlock(&host->mutex);
 }
 
-void bcm2835_set_clock(struct bcm2835_host *host, unsigned int clock)
+static void bcm2835_set_clock(struct bcm2835_host *host, unsigned int clock)
 {
 	int div;
 
@@ -1276,7 +1277,7 @@ static void bcm2835_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
 	.hw_reset = bcm2835_reset,
 };
 
-int bcm2835_add_host(struct bcm2835_host *host)
+static int bcm2835_add_host(struct bcm2835_host *host)
 {
 	struct mmc_host *mmc = host->mmc;
 	struct device *dev = &host->pdev->dev;
-- 
1.7.9.5




More information about the linux-rpi-kernel mailing list