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
Makefile -rw-r--r-- 414 bytes
auth_gss.c -rw-r--r-- 52.9 KB
gss_generic_token.c -rw-r--r-- 6.1 KB
gss_krb5_crypto.c -rw-r--r-- 24.3 KB
gss_krb5_keys.c -rw-r--r-- 8.9 KB
gss_krb5_mech.c -rw-r--r-- 20.1 KB
gss_krb5_seal.c -rw-r--r-- 6.6 KB
gss_krb5_seqnum.c -rw-r--r-- 4.5 KB
gss_krb5_unseal.c -rw-r--r-- 6.7 KB
gss_krb5_wrap.c -rw-r--r-- 17.6 KB
gss_mech_switch.c -rw-r--r-- 12.1 KB
gss_rpc_upcall.c -rw-r--r-- 9.5 KB
gss_rpc_upcall.h -rw-r--r-- 1.5 KB
gss_rpc_xdr.c -rw-r--r-- 17.1 KB
gss_rpc_xdr.h -rw-r--r-- 7.4 KB
svcauth_gss.c -rw-r--r-- 45.7 KB

back to top