Skip to content

Commit

Permalink
DMA: PL330: Add missing static storage class specifier
Browse files Browse the repository at this point in the history
Fixes the following sparse warning:
drivers/dma/pl330.c:2542:5: warning: symbol 'add_desc' was not declared. Should it be static?

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
  • Loading branch information
Sachin Kamat authored and Vinod Koul committed Jun 7, 2012
1 parent 8e2e27c commit 5a67ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/pl330.c
Original file line number Diff line number Diff line change
Expand Up @@ -2539,7 +2539,7 @@ static inline void _init_desc(struct dma_pl330_desc *desc)
}

/* Returns the number of descriptors added to the DMAC pool */
int add_desc(struct dma_pl330_dmac *pdmac, gfp_t flg, int count)
static int add_desc(struct dma_pl330_dmac *pdmac, gfp_t flg, int count)
{
struct dma_pl330_desc *desc;
unsigned long flags;
Expand Down

0 comments on commit 5a67ac5

Please sign in to comment.