diff mbox

[1/1] DMA: PL330: Add missing static storage class specifier

Message ID 1338809985-6864-1-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat June 4, 2012, 11:39 a.m. UTC
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>
---
 drivers/dma/pl330.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Vinod Koul June 7, 2012, 8:24 a.m. UTC | #1
On Mon, 2012-06-04 at 17:09 +0530, Sachin Kamat wrote:
> 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>
> ---
>  drivers/dma/pl330.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
> index cbcc28e..63b6ad5 100644
> --- a/drivers/dma/pl330.c
> +++ b/drivers/dma/pl330.c
> @@ -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;

Applied, thanks
diff mbox

Patch

diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index cbcc28e..63b6ad5 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -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;