From: Joerg Roedel <joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
To: Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org>
Cc: Vineet Gupta <vgupta-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>,
Lada.Trimasova-HKixBCOQz3hWk0Htik3J/w@public.gmane.org,
Lada Trimasova <ltrimas-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>,
Alexey Brodkin <abrodkin-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>,
iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: Re: [PATCH] iommu/io-pgtable-arm: Fix io-pgtable-arm build failure
Date: Fri, 29 Jan 2016 12:14:53 +0100 [thread overview]
Message-ID: <20160129111452.GA4204@8bytes.org> (raw)
In-Reply-To: <1453893032-4459-1-git-send-email-will.deacon-5wv7dgnIgG8@public.gmane.org>
On Wed, Jan 27, 2016 at 11:10:32AM +0000, Will Deacon wrote:
> From: Lada Trimasova <Lada.Trimasova@synopsys.com>
>
> 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>
> ---
>
> Joerg -- can you pick this up as a fix for 4.5, please? I don't have
> any other fixes queued, so a pull request seems a bit OTT.
Applied, thanks Will.
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
prev parent reply other threads:[~2016-01-29 11:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-27 11:10 [PATCH] iommu/io-pgtable-arm: Fix io-pgtable-arm build failure Will Deacon
[not found] ` <1453893032-4459-1-git-send-email-will.deacon-5wv7dgnIgG8@public.gmane.org>
2016-01-29 11:14 ` Joerg Roedel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160129111452.GA4204@8bytes.org \
--to=joro-zlv9swrftaidnm+yrofe0a@public.gmane.org \
--cc=Lada.Trimasova-HKixBCOQz3hWk0Htik3J/w@public.gmane.org \
--cc=abrodkin-HKixBCOQz3hWk0Htik3J/w@public.gmane.org \
--cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=ltrimas-HKixBCOQz3hWk0Htik3J/w@public.gmane.org \
--cc=vgupta-HKixBCOQz3hWk0Htik3J/w@public.gmane.org \
--cc=will.deacon-5wv7dgnIgG8@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.