> -----Original Message-----
> From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel-
> ow...@vger.kernel.org] On Behalf Of Dan Williams
> Sent: Tuesday, June 09, 2015 10:27 AM
> Subject: [PATCH 1/2] scatterlist: use sg_phys()
> 
...
> diff --git a/arch/microblaze/kernel/dma.c b/arch/microblaze/kernel/dma.c
> index ed7ba8a11822..dcb3c594d626 100644
> --- a/arch/microblaze/kernel/dma.c
> +++ b/arch/microblaze/kernel/dma.c
> @@ -61,7 +61,7 @@ static int dma_direct_map_sg(struct device *dev, struct
> scatterlist *sgl,
>       /* FIXME this part of code is untested */
>       for_each_sg(sgl, sg, nents, i) {
>               sg->dma_address = sg_phys(sg);
> -             __dma_sync(page_to_phys(sg_page(sg)) + sg->offset,
> +             __dma_sync(sg_phys(sg),
>                                                       sg->length, direction);
>       }

That one ends up with weird indentation.


Reply via email to