mmc: queue: declare mmc_alloc_sg as static
authorVenkatraman S <svenkatr@ti.com>
Tue, 23 Aug 2011 15:46:02 +0000 (21:16 +0530)
committerChris Ball <cjb@laptop.org>
Wed, 26 Oct 2011 19:43:35 +0000 (15:43 -0400)
Fix the sparse warning "drivers/mmc/card/queue.c:111:20: warning:
symbol 'mmc_alloc_sg' was not declared. Should it be static?"

Signed-off-by: Venkatraman S <svenkatr@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/queue.c

index 45fb362e3f013460fc951909dc72d13847530a1e..5196312bb55e437d60bdc7b1d72813fa5f4498c7 100644 (file)
@@ -108,7 +108,7 @@ static void mmc_request(struct request_queue *q)
                wake_up_process(mq->thread);
 }
 
-struct scatterlist *mmc_alloc_sg(int sg_len, int *err)
+static struct scatterlist *mmc_alloc_sg(int sg_len, int *err)
 {
        struct scatterlist *sg;