diff mbox

dmaengine: ioat: statify symbol

Message ID 1468679392-32116-1-git-send-email-vinod.koul@intel.com (mailing list archive)
State Accepted
Headers show

Commit Message

Vinod Koul July 16, 2016, 2:29 p.m. UTC
Sparse warns:
drivers/dma/ioat/init.c:1215:6: warning: symbol 'ioat_resume' was not declared. Should it be static?

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
 drivers/dma/ioat/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dave Jiang July 16, 2016, 3:39 p.m. UTC | #1
Acked-by: Dave Jiang <dave.jiang@intel.com>

> On Jul 16, 2016, at 7:22 AM, Koul, Vinod <vinod.koul@intel.com> wrote:
> 
> Sparse warns:
> drivers/dma/ioat/init.c:1215:6: warning: symbol 'ioat_resume' was not declared. Should it be static?
> 
> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
> ---
> drivers/dma/ioat/init.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/dma/ioat/init.c b/drivers/dma/ioat/init.c
> index d406056e8892..7145f7716a92 100644
> --- a/drivers/dma/ioat/init.c
> +++ b/drivers/dma/ioat/init.c
> @@ -1212,7 +1212,7 @@ static void ioat_shutdown(struct pci_dev *pdev)
>    ioat_disable_interrupts(ioat_dma);
> }
> 
> -void ioat_resume(struct ioatdma_device *ioat_dma)
> +static void ioat_resume(struct ioatdma_device *ioat_dma)
> {
>    struct ioatdma_chan *ioat_chan;
>    u32 chanerr;
> -- 
> 1.9.1
> 
--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/dma/ioat/init.c b/drivers/dma/ioat/init.c
index d406056e8892..7145f7716a92 100644
--- a/drivers/dma/ioat/init.c
+++ b/drivers/dma/ioat/init.c
@@ -1212,7 +1212,7 @@  static void ioat_shutdown(struct pci_dev *pdev)
 	ioat_disable_interrupts(ioat_dma);
 }
 
-void ioat_resume(struct ioatdma_device *ioat_dma)
+static void ioat_resume(struct ioatdma_device *ioat_dma)
 {
 	struct ioatdma_chan *ioat_chan;
 	u32 chanerr;