All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: davem@davemloft.net, sparclinux@vger.kernel.org,
	linux-kernel@vger.kernel.org, reif@earthlink.net
Subject: Re: [PATCH 5/5] sparc: use asm-generic/pci-dma-compat
Date: Mon, 06 Jul 2009 08:21:28 +0000	[thread overview]
Message-ID: <200907061021.28360.arnd@arndb.de> (raw)
In-Reply-To: <1246860820-20629-6-git-send-email-fujita.tomonori@lab.ntt.co.jp>

On Monday 06 July 2009, FUJITA Tomonori wrote:

> --- a/arch/sparc/include/asm/pci_64.h
> +++ b/arch/sparc/include/asm/pci_64.h
> -/* Return whether the given PCI device DMA address mask can
> - * be supported properly.  For example, if your device can
> - * only drive the low 24-bits during PCI bus mastering, then
> - * you would pass 0x00ffffff as the mask to this function.
> - */
> -extern int pci_dma_supported(struct pci_dev *hwdev, u64 mask);
> -
>  /* PCI IOMMU mapping bypass support. */
>  
>  /* PCI 64-bit addressing works for all slots on all controller
> --- a/arch/sparc/kernel/iommu.c
> +++ b/arch/sparc/kernel/iommu.c
> @@ -840,6 +840,8 @@ static struct dma_map_ops sun4u_dma_ops = {
>  struct dma_map_ops *dma_ops = &sun4u_dma_ops;
>  EXPORT_SYMBOL(dma_ops);
>  
> +extern int pci64_dma_supported(struct pci_dev *pdev, u64 device_mask);
> +
>  int dma_supported(struct device *dev, u64 device_mask)
>  {
>  	struct iommu *iommu = dev->archdata.iommu;

Minor nitpicking: The declaration should better be left in the header
file to avoid extern declarations in C files.

	Arnd <><

WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd@arndb.de>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: davem@davemloft.net, sparclinux@vger.kernel.org,
	linux-kernel@vger.kernel.org, reif@earthlink.net
Subject: Re: [PATCH 5/5] sparc: use asm-generic/pci-dma-compat
Date: Mon, 6 Jul 2009 10:21:28 +0200	[thread overview]
Message-ID: <200907061021.28360.arnd@arndb.de> (raw)
In-Reply-To: <1246860820-20629-6-git-send-email-fujita.tomonori@lab.ntt.co.jp>

On Monday 06 July 2009, FUJITA Tomonori wrote:

> --- a/arch/sparc/include/asm/pci_64.h
> +++ b/arch/sparc/include/asm/pci_64.h
> -/* Return whether the given PCI device DMA address mask can
> - * be supported properly.  For example, if your device can
> - * only drive the low 24-bits during PCI bus mastering, then
> - * you would pass 0x00ffffff as the mask to this function.
> - */
> -extern int pci_dma_supported(struct pci_dev *hwdev, u64 mask);
> -
>  /* PCI IOMMU mapping bypass support. */
>  
>  /* PCI 64-bit addressing works for all slots on all controller
> --- a/arch/sparc/kernel/iommu.c
> +++ b/arch/sparc/kernel/iommu.c
> @@ -840,6 +840,8 @@ static struct dma_map_ops sun4u_dma_ops = {
>  struct dma_map_ops *dma_ops = &sun4u_dma_ops;
>  EXPORT_SYMBOL(dma_ops);
>  
> +extern int pci64_dma_supported(struct pci_dev *pdev, u64 device_mask);
> +
>  int dma_supported(struct device *dev, u64 device_mask)
>  {
>  	struct iommu *iommu = dev->archdata.iommu;

Minor nitpicking: The declaration should better be left in the header
file to avoid extern declarations in C files.

	Arnd <><

  reply	other threads:[~2009-07-06  8:21 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-06  6:13 [PATCH 0/5] sparc: use asm-generic/dma-mapping-common.h and pci-dma-compat.h FUJITA Tomonori
2009-07-06  6:13 ` FUJITA Tomonori
2009-07-06  6:13 ` [PATCH 1/5] sparc: use dma_map_ops struct FUJITA Tomonori
2009-07-06  6:13   ` FUJITA Tomonori
2009-07-06  6:13 ` [PATCH 2/5] sparc: use asm-generic/dma-mapping-common.h FUJITA Tomonori
2009-07-06  6:13   ` FUJITA Tomonori
2009-07-06  8:26   ` Arnd Bergmann
2009-07-06  8:26     ` Arnd Bergmann
2009-07-07  1:11     ` David Miller
2009-07-07  1:11       ` David Miller
2009-07-09  9:55       ` FUJITA Tomonori
2009-07-09  9:55         ` FUJITA Tomonori
2009-07-09 12:29         ` Arnd Bergmann
2009-07-09 12:29           ` Arnd Bergmann
2009-07-06  6:13 ` [PATCH 3/5] sparc: remove no-op dma_4v_sync_single_for_cpu and dma_4v_sync_sg_for_cpu FUJITA Tomonori
2009-07-06  6:13   ` FUJITA Tomonori
2009-07-06  6:13 ` [PATCH 4/5] sparc: replace sbus_map_single and sbus_unmap_single with sbus_map_page and sbus_unmap_p FUJITA Tomonori
2009-07-06  6:13   ` [PATCH 4/5] sparc: replace sbus_map_single and sbus_unmap_single with sbus_map_page and sbus_unmap_page FUJITA Tomonori
2009-07-06  6:13 ` [PATCH 5/5] sparc: use asm-generic/pci-dma-compat FUJITA Tomonori
2009-07-06  6:13   ` FUJITA Tomonori
2009-07-06  8:21   ` Arnd Bergmann [this message]
2009-07-06  8:21     ` Arnd Bergmann
2009-07-07  0:07 ` [PATCH 0/5] sparc: use asm-generic/dma-mapping-common.h and pci-dma-compat.h Robert Reif
2009-07-07  0:07   ` Robert Reif
2009-07-07  1:12   ` [PATCH 0/5] sparc: use asm-generic/dma-mapping-common.h and David Miller
2009-07-07  1:12     ` [PATCH 0/5] sparc: use asm-generic/dma-mapping-common.h and pci-dma-compat.h David Miller

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=200907061021.28360.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=davem@davemloft.net \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=reif@earthlink.net \
    --cc=sparclinux@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 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.