[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [RFC v3 07/45] avr32: dma-mapping: Use unsigned long for dma_attrs
- To: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx>
- From: Hans-Christian Noren Egtvedt <egtvedt@xxxxxxxxxxxx>
- Date: Mon, 6 Jun 2016 08:43:57 +0200
- Cc: linux-mips@xxxxxxxxxxxxxx, Aurelien Jacquiot <a-jacquiot@xxxxxx>, Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>, Will Deacon <will.deacon@xxxxxxx>, dri-devel@xxxxxxxxxxxxxxxxxxxxx, Paul Mackerras <paulus@xxxxxxxxx>, linux-samsung-soc@xxxxxxxxxxxxxxx, Michael Ellerman <mpe@xxxxxxxxxxxxxx>, linux-sh@xxxxxxxxxxxxxxx, "James E.J. Bottomley" <jejb@xxxxxxxxxxxxxxxx>, hch@xxxxxxxxxxxxx, Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>, Catalin Marinas <catalin.marinas@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Matt Turner <mattst88@xxxxxxxxx>, uclinux-h8-devel@xxxxxxxxxxxxxxxxxxxx, James Hogan <james.hogan@xxxxxxxxxx>, adi-buildroot-devel@xxxxxxxxxxxxxxxxxxxxx, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, linux-omap@xxxxxxxxxxxxxxx, Richard Henderson <rth@xxxxxxxxxxx>, Muli Ben-Yehuda <muli@xxxxxxxxxx>, linux-cris-kernel@xxxxxxxx, Geoff Levand <geoff@xxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, Ralf Baechle <ralf@xxxxxxxxxxxxxx>, Richard Kuo <rkuo@xxxxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, freedreno@xxxxxxxxxxxxxxxxxxxxx, linux-fbdev@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, linux-doc@xxxxxxxxxxxxxxx, David Airlie <airlied@xxxxxxxx>, nouveau@xxxxxxxxxxxxxxxxxxxxx, linux-s390@xxxxxxxxxxxxxxx, Jesper Nilsson <jesper.nilsson@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, linux-c6x-dev@xxxxxxxxxxxxx, Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx>, linux-hexagon@xxxxxxxxxxxxxxx, Helge Deller <deller@xxxxxx>, Steven Miao <realmz6@xxxxxxxxx>, linux-rockchip@xxxxxxxxxxxxxxxxxxx, David Woodhouse <dwmw2@xxxxxxxxxxxxx>, linux-media@xxxxxxxxxxxxxxx, linux-xtensa@xxxxxxxxxxxxxxxx, linux-arm-msm@xxxxxxxxxxxxxxx, linux-m68k@xxxxxxxxxxxxxxxxxxxx, Bjorn Helgaas <bhelgaas@xxxxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, linux-metag@xxxxxxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, Tony Luck <tony.luck@xxxxxxxxx>, David Vrabel <david.vrabel@xxxxxxxxxx>, Martin Schwidefsky <schwidefsky@xxxxxxxxxx>, linux-pci@xxxxxxxxxxxxxxx, Guan Xuetao <gxt@xxxxxxxxxxxxxxx>, linux-rdma@xxxxxxxxxxxxxxx, linux-snps-arc@xxxxxxxxxxxxxxxxxxx, Haavard Skinnemoen <hskinnemoen@xxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, Bartlomiej Zolnierkiewicz <b.zolnierkie@xxxxxxxxxxx>, Ivan Kokshaysky <ink@xxxxxxxxxxxxxxxxxxxx>, discuss@xxxxxxxxxx, linux-parisc@xxxxxxxxxxxxxxx, iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx, linux-alpha@xxxxxxxxxxxxxxx, Olof Johansson <olof@xxxxxxxxx>, Ley Foon Tan <lftan@xxxxxxxxxx>, David Howells <dhowells@xxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, sparclinux@xxxxxxxxxxxxxxx, Jonas Bonn <jonas@xxxxxxxxxxxx>, linux-am33-list@xxxxxxxxxx, Joerg Roedel <joro@xxxxxxxxxx>, x86@xxxxxxxxxx, Russell King <linux@xxxxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Mark Salter <msalter@xxxxxxxxxx>, Mikael Starvik <starvik@xxxxxxxx>, linux-mediatek@xxxxxxxxxxxxxxxxxxx, Juergen Gross <jgross@xxxxxxxx>, Michal Simek <monstr@xxxxxxxxx>, Vineet Gupta <vgupta@xxxxxxxxxxxx>, nios2-dev@xxxxxxxxxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx
- Delivery-date: Mon, 06 Jun 2016 06:55:44 +0000
- List-id: Xen developer discussion <xen-devel.lists.xen.org>
Around Thu 02 Jun 2016 17:39:09 +0200 or thereabout, Krzysztof Kozlowski wrote:
> Split out subsystem specific changes for easier reviews. This will be
> squashed with main commit.
>
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx>
Acked-by: Hans-Christian Noren Egtvedt <egtvedt@xxxxxxxxxxxx>
> ---
> arch/avr32/mm/dma-coherent.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/arch/avr32/mm/dma-coherent.c b/arch/avr32/mm/dma-coherent.c
> index 92cf1fb2b3e6..fc51f4421933 100644
> --- a/arch/avr32/mm/dma-coherent.c
> +++ b/arch/avr32/mm/dma-coherent.c
> @@ -99,7 +99,7 @@ static void __dma_free(struct device *dev, size_t size,
> }
>
> static void *avr32_dma_alloc(struct device *dev, size_t size,
> - dma_addr_t *handle, gfp_t gfp, struct dma_attrs *attrs)
> + dma_addr_t *handle, gfp_t gfp, unsigned long attrs)
> {
> struct page *page;
> dma_addr_t phys;
> @@ -119,7 +119,7 @@ static void *avr32_dma_alloc(struct device *dev, size_t
> size,
> }
>
> static void avr32_dma_free(struct device *dev, size_t size,
> - void *cpu_addr, dma_addr_t handle, struct dma_attrs *attrs)
> + void *cpu_addr, dma_addr_t handle, unsigned long attrs)
> {
> struct page *page;
>
> @@ -142,7 +142,7 @@ static void avr32_dma_free(struct device *dev, size_t
> size,
>
> static dma_addr_t avr32_dma_map_page(struct device *dev, struct page *page,
> unsigned long offset, size_t size,
> - enum dma_data_direction direction, struct dma_attrs *attrs)
> + enum dma_data_direction direction, unsigned long attrs)
> {
> void *cpu_addr = page_address(page) + offset;
>
> @@ -152,7 +152,7 @@ static dma_addr_t avr32_dma_map_page(struct device *dev,
> struct page *page,
>
> static int avr32_dma_map_sg(struct device *dev, struct scatterlist *sglist,
> int nents, enum dma_data_direction direction,
> - struct dma_attrs *attrs)
> + unsigned long attrs)
> {
> int i;
> struct scatterlist *sg;
--
mvh
Hans-Christian Noren Egtvedt
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|