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
File | Mode | Size |
---|---|---|
auth_gss | ||
xprtrdma | ||
Kconfig | -rw-r--r-- | 1.7 KB |
Makefile | -rw-r--r-- | 585 bytes |
addr.c | -rw-r--r-- | 8.7 KB |
auth.c | -rw-r--r-- | 20.9 KB |
auth_generic.c | -rw-r--r-- | 7.6 KB |
auth_null.c | -rw-r--r-- | 2.6 KB |
auth_unix.c | -rw-r--r-- | 5.8 KB |
backchannel_rqst.c | -rw-r--r-- | 10.9 KB |
cache.c | -rw-r--r-- | 44.3 KB |
clnt.c | -rw-r--r-- | 60.0 KB |
debugfs.c | -rw-r--r-- | 8.0 KB |
netns.h | -rw-r--r-- | 928 bytes |
rpc_pipe.c | -rw-r--r-- | 36.2 KB |
rpcb_clnt.c | -rw-r--r-- | 29.9 KB |
sched.c | -rw-r--r-- | 28.8 KB |
socklib.c | -rw-r--r-- | 4.5 KB |
stats.c | -rw-r--r-- | 7.5 KB |
sunrpc.h | -rw-r--r-- | 2.0 KB |
sunrpc_syms.c | -rw-r--r-- | 2.6 KB |
svc.c | -rw-r--r-- | 33.4 KB |
svc_xprt.c | -rw-r--r-- | 37.2 KB |
svcauth.c | -rw-r--r-- | 3.8 KB |
svcauth_unix.c | -rw-r--r-- | 20.9 KB |
svcsock.c | -rw-r--r-- | 43.3 KB |
sysctl.c | -rw-r--r-- | 3.6 KB |
timer.c | -rw-r--r-- | 2.9 KB |
xdr.c | -rw-r--r-- | 37.8 KB |
xprt.c | -rw-r--r-- | 37.3 KB |
xprtsock.c | -rw-r--r-- | 82.9 KB |
Computing file changes ...