Revision 8f6aff9858c45525345b92b2a88c2af776c64340 authored by Lada Trimasova on 27 January 2016, 11:10:32 UTC, committed by Joerg Roedel on 29 January 2016, 11:14:08 UTC
Trying to build a kernel for ARC with both options CONFIG_COMPILE_TEST
and CONFIG_IOMMU_IO_PGTABLE_LPAE enabled (e.g. as a result of "make
allyesconfig") results in the following build failure:

 | 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);
 | ^

Since IOMMU_IO_PGTABLE_LPAE depends on DMA API, io-pgtable-arm.c should
include linux/dma-mapping.h. This fixes the reported failure.

Cc: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Lada Trimasova <ltrimas@synopsys.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 92e963f
History
File Mode Size
Kconfig -rw-r--r-- 686 bytes
Makefile -rw-r--r-- 580 bytes
af_rds.c -rw-r--r-- 15.1 KB
bind.c -rw-r--r-- 4.9 KB
cong.c -rw-r--r-- 12.6 KB
connection.c -rw-r--r-- 16.7 KB
ib.c -rw-r--r-- 12.7 KB
ib.h -rw-r--r-- 12.9 KB
ib_cm.c -rw-r--r-- 25.8 KB
ib_rdma.c -rw-r--r-- 21.5 KB
ib_recv.c -rw-r--r-- 29.7 KB
ib_ring.c -rw-r--r-- 4.8 KB
ib_send.c -rw-r--r-- 29.4 KB
ib_stats.c -rw-r--r-- 3.0 KB
ib_sysctl.c -rw-r--r-- 4.0 KB
info.c -rw-r--r-- 6.4 KB
info.h -rw-r--r-- 934 bytes
iw.c -rw-r--r-- 8.5 KB
iw.h -rw-r--r-- 12.0 KB
iw_cm.c -rw-r--r-- 20.9 KB
iw_rdma.c -rw-r--r-- 22.8 KB
iw_recv.c -rw-r--r-- 25.6 KB
iw_ring.c -rw-r--r-- 4.8 KB
iw_send.c -rw-r--r-- 29.0 KB
iw_stats.c -rw-r--r-- 2.8 KB
iw_sysctl.c -rw-r--r-- 4.1 KB
loop.c -rw-r--r-- 5.8 KB
loop.h -rw-r--r-- 137 bytes
message.c -rw-r--r-- 9.4 KB
page.c -rw-r--r-- 5.4 KB
rdma.c -rw-r--r-- 22.5 KB
rdma_transport.c -rw-r--r-- 5.9 KB
rdma_transport.h -rw-r--r-- 549 bytes
rds.h -rw-r--r-- 25.2 KB
recv.c -rw-r--r-- 15.3 KB
send.c -rw-r--r-- 31.6 KB
stats.c -rw-r--r-- 4.3 KB
sysctl.c -rw-r--r-- 3.4 KB
tcp.c -rw-r--r-- 12.5 KB
tcp.h -rw-r--r-- 2.7 KB
tcp_connect.c -rw-r--r-- 4.3 KB
tcp_listen.c -rw-r--r-- 6.0 KB
tcp_recv.c -rw-r--r-- 9.1 KB
tcp_send.c -rw-r--r-- 6.5 KB
tcp_stats.c -rw-r--r-- 2.3 KB
threads.c -rw-r--r-- 6.9 KB
transport.c -rw-r--r-- 4.0 KB

back to top