From: Stefan Knoblich <stkn@gentoo.org>
To: linux-alpha@vger.kernel.org
Subject: [PATCH] 2.6.10 - add missing dma_mapping_error
Date: Mon, 27 Dec 2004 02:43:12 +0100 [thread overview]
Message-ID: <200412270243.13063.stkn@gentoo.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 137 bytes --]
Hi,
this patch adds dma_mapping_error to dma-mapping.h, it's needed to compile
s-ata support (=libata and maybe other stuff).
stefan
[-- Attachment #2: 2.6.10-alpha-dma_mapping_error.diff --]
[-- Type: text/x-diff, Size: 731 bytes --]
--- linux-2.6.10/include/asm-alpha/dma-mapping.h.orig 2004-12-26 20:45:25.139475104 +0100
+++ linux-2.6.10/include/asm-alpha/dma-mapping.h 2004-12-26 20:46:54.684862136 +0100
@@ -25,6 +25,8 @@
pci_unmap_sg(alpha_gendev_to_pci(dev), sg, nents, dir)
#define dma_supported(dev, mask) \
pci_dma_supported(alpha_gendev_to_pci(dev), mask)
+#define dma_mapping_error(addr) \
+ pci_dma_mapping_error(addr)
#else /* no PCI - no IOMMU. */
@@ -43,6 +45,8 @@
#define dma_unmap_page(dev, addr, size, dir) do { } while (0)
#define dma_unmap_sg(dev, sg, nents, dir) do { } while (0)
+#define dma_mapping_error(addr) (0)
+
#endif /* !CONFIG_PCI */
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
reply other threads:[~2004-12-27 1:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200412270243.13063.stkn@gentoo.org \
--to=stkn@gentoo.org \
--cc=linux-alpha@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;
as well as URLs for NNTP newsgroup(s).