public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marek Szyprowski <m.szyprowski@samsung.com>
To: James Hogan <james.hogan@imgtec.com>
Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven <geert@linux-m68k.org>
Subject: Re: [PATCH 1/5] metag: Provide dma_get_sgtable()
Date: Wed, 27 Feb 2013 08:09:19 +0100	[thread overview]
Message-ID: <512DB11F.7080909@samsung.com> (raw)
In-Reply-To: <1361876642-10247-2-git-send-email-james.hogan@imgtec.com>

Hello,

On 2/26/2013 12:03 PM, James Hogan wrote:
> metag/allmodconfig:
>
> drivers/media/v4l2-core/videobuf2-dma-contig.c: In function 'vb2_dc_get_base_sgt':
> drivers/media/v4l2-core/videobuf2-dma-contig.c:387: error: implicit declaration of function 'dma_get_sgtable'
>
> For architectures using dma_map_ops, dma_get_sgtable() is provided in
> <asm-generic/dma-mapping-common.h>.
>
> Metag does not use dma_map_ops yet, hence it should implement it as an
> inline stub using dma_common_get_sgtable().
>
> Signed-off-by: James Hogan <james.hogan@imgtec.com>
> Cc: Geert Uytterhoeven <geert@linux-m68k.org>
> Cc: Marek Szyprowski <m.szyprowski@samsung.com>

Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>

> ---
>   arch/metag/include/asm/dma-mapping.h | 7 +++++++
>   1 file changed, 7 insertions(+)
>
> diff --git a/arch/metag/include/asm/dma-mapping.h b/arch/metag/include/asm/dma-mapping.h
> index b5f80a6..14b23ef 100644
> --- a/arch/metag/include/asm/dma-mapping.h
> +++ b/arch/metag/include/asm/dma-mapping.h
> @@ -180,4 +180,11 @@ dma_cache_sync(struct device *dev, void *vaddr, size_t size,
>   {
>   }
>   
> +/* drivers/base/dma-mapping.c */
> +extern int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
> +				  void *cpu_addr, dma_addr_t dma_addr,
> +				  size_t size);
> +
> +#define dma_get_sgtable(d, t, v, h, s) dma_common_get_sgtable(d, t, v, h, s)
> +
>   #endif

Best regards
-- 
Marek Szyprowski
Samsung Poland R&D Center



  reply	other threads:[~2013-02-27  7:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-26 11:03 [PATCH 0/5] metag: minor fixes after stuff in -next James Hogan
2013-02-26 11:03 ` [PATCH 1/5] metag: Provide dma_get_sgtable() James Hogan
2013-02-27  7:09   ` Marek Szyprowski [this message]
2013-02-27  7:49     ` James Hogan
2013-02-26 11:03 ` [PATCH 2/5] metag: remove GENERIC_SIGALTSTACK James Hogan
2013-02-26 11:04 ` [PATCH 3/5] metag: remove select CONFIG_HAVE_IRQ_WORK James Hogan
2013-02-26 11:04 ` [PATCH 4/5] metag: remove CONFIG_EXPERIMENTAL from defconfigs James Hogan
2013-02-26 11:04 ` [PATCH 5/5] metag: remove unused ARCH_NO_VIRT_TO_BUS James Hogan

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=512DB11F.7080909@samsung.com \
    --to=m.szyprowski@samsung.com \
    --cc=geert@linux-m68k.org \
    --cc=james.hogan@imgtec.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox