Skip to contentSkip to conversation

Fixing io-pgtable-arm build failure

PATCH New Lada Trimasova 2 participants 3 messages Jan 13, 2016 – Jan 20, 2016

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fixing io-pgtable-arm build failure

Trying to build kernel for ARC with both options CONFIG_COMPILE_TEST and CONFIG_IOMMU_IO_PGTABLE_LPAE enabled (which happened really in "allyesconfig") I'm seeing this:
---------------->8----------------

$ make ARCH=arc
...sic...
CC drivers/iommu/io-pgtable-arm.o
linux/drivers/iommu/io-pgtable-arm.c: In
function ?__arm_lpae_alloc_pages?:
linux/drivers/iommu/io-pgtable-arm.c:221:3:
error: implicit declaration of function ?dma_map_single?
[-Werror=implicit-function-declaration]
dma = dma_map_single(dev, pages, size, DMA_TO_DEVICE);
^
linux/drivers/iommu/io-pgtable-arm.c:221:42:
error: ?DMA_TO_DEVICE? undeclared (first use in this function)
dma = dma_map_single(dev, pages, size, DMA_TO_DEVICE);
^
---------------->8----------------
and so on.

IOMMU_IO_PGTABLE_LPAE depends on DMA API.
So io-pgtable-arm.c should include linux/dma-mapping.h.

Cc Alexey Brodkin <[email protected]>
Cc Vineet Gupta <[email protected]>
Cc Will Deacon <[email protected]>
Cc Joerg Roedel <[email protected]>
---
 drivers/iommu/io-pgtable-arm.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iommu/io-pgtable-arm.c +1 -0
index 7df9777..0b1aca0 100644
@@ -25,6 +25,7 @@
 #include <linux/sizes.h>
 #include <linux/slab.h>
 #include <linux/types.h>
+#include <linux/dma-mapping.h>
 
 #include <asm/barrier.h>
 
Signature · 1 line
2.5.0
#1 lore raw

PATCH 1/1 Fixing io-pgtable-arm build failure

Hi Will,

On Wed, 2016-01-13 at 17:48 +0300, Lada Trimasova wrote:

Trying to build kernel for ARC with both options CONFIG_COMPILE_TEST and CONFIG_IOMMU_IO_PGTABLE_LPAE enabled (which happened really in "allyesconfig") I'm seeing this:
---------------->8----------------

$ make ARCH=arc
...sic...
CC drivers/iommu/io-pgtable-arm.o
linux/drivers/iommu/io-pgtable-arm.c: In
function ?__arm_lpae_alloc_pages?:
linux/drivers/iommu/io-pgtable-arm.c:221:3:
error: implicit declaration of function ?dma_map_single?
[-Werror=implicit-function-declaration]
dma = dma_map_single(dev, pages, size, DMA_TO_DEVICE);
^
linux/drivers/iommu/io-pgtable-arm.c:221:42:
error: ?DMA_TO_DEVICE? undeclared (first use in this function)
dma = dma_map_single(dev, pages, size, DMA_TO_DEVICE);
^
---------------->8----------------
and so on.

IOMMU_IO_PGTABLE_LPAE depends on DMA API.
So io-pgtable-arm.c should include linux/dma-mapping.h.

Signed-off-by Lada Trimasova <ltrimas at synopsys.com<mailto:[email protected]>>
Cc Alexey Brodkin <abrodkin at synopsys.com<mailto:[email protected]>>
Cc Vineet Gupta <vgupta at synopsys.com<mailto:[email protected]>>
Cc Will Deacon <will.deacon at arm.com<mailto:[email protected]>>
Cc Joerg Roedel <joro at 8bytes.org<mailto:[email protected]>>
---
 drivers/iommu/io-pgtable-arm.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iommu/io-pgtable-arm.c +1 -0
index 7df9777..0b1aca0 100644
@@ -25,6 +25,7 @@
 #include <linux/sizes.h>
 #include <linux/slab.h>
 #include <linux/types.h>
+#include <linux/dma-mapping.h>
 
 #include <asm/barrier.h>
 

Please treat this as a polite reminder to review that patch sometime soon.

Regards,
Lada Trimasova.

#2 lore raw

PATCH 1/1 Fixing io-pgtable-arm build failure

Quoted 1 line · Lada Trimasova

Please treat this as a polite reminder to review that patch sometime soon.

It's queued on my fixes branch, so please sit tight (I'm out at a conference at the moment).

Will