Skip to contentSkip to conversation

dmaengine: pl330: add missing include of scatterlist.h

PATCH In review Rob Herring 3 participants 3 messages Aug 8, 2011 – Aug 9, 2011 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmaengine: pl330: add missing include of scatterlist.h

From: Rob Herring <[email protected]>

scatterlist.h was getting implicitly included and now is not which causes this compile error:

drivers/dma/pl330.c: In function ?pl330_prep_slave_sg?:
drivers/dma/pl330.c:603:2: error: implicit declaration of function ?for_each_sg?

Cc Jassi Brar <[email protected]>
Cc Vinod Koul <[email protected]>
---
 drivers/dma/pl330.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/dma/pl330.c +1 -0
index 00eee59..4e2ccde 100644
@@ -15,6 +15,7 @@
 #include <linux/module.h>
 #include <linux/dmaengine.h>
 #include <linux/interrupt.h>
+#include <linux/scatterlist.h>
 #include <linux/amba/bus.h>
 #include <linux/amba/pl330.h>
 
Signature · 1 line
1.7.4.1
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Rob Herring

From: Rob Herring <[email protected]>

scatterlist.h was getting implicitly included and now is not which causes this compile error:

Quoted 7 lines

drivers/dma/pl330.c: In function ?pl330_prep_slave_sg?:
drivers/dma/pl330.c:603:2: error: implicit declaration of function ?for_each_sg?

Cc Jassi Brar <[email protected]>
Cc Vinod Koul <[email protected]>

thnx

#2 lore raw
Quoted 10 lines · Jassi Brar
Quoted 9 lines · Rob Herring

From: Rob Herring <[email protected]>

scatterlist.h was getting implicitly included and now is not which causes this compile error:

drivers/dma/pl330.c: In function ?pl330_prep_slave_sg?:
drivers/dma/pl330.c:603:2: error: implicit declaration of function ?for_each_sg?

Quoted 7 lines
Quoted 3 lines
Cc Jassi Brar <[email protected]>
Cc Vinod Koul <[email protected]>

thnx

Commit 90b44f8 introduces dmaengine_prep_slave_single API which adds scatterlist.h in dmaengine.h, since you already include dmaengine.h this patch shouldn't be required

Signature · 1 line
~Vinod