From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Andrew Morton <akpm@osdl.org>
Cc: Linus Torvalds <torvalds@osdl.org>,
Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: [PATCH] ppc32: Add missing [pci_]dma_mapping_error()
Date: Wed, 05 May 2004 16:16:04 +1000 [thread overview]
Message-ID: <1083737764.19138.7.camel@gaston> (raw)
Those were missing from ppc32, please apply.
Ben.
diff -urN linux-2.5/include/asm-ppc/dma-mapping.h linuxppc-2.5-benh/include/asm-ppc/dma-mapping.h
--- linux-2.5/include/asm-ppc/dma-mapping.h 2004-05-03 09:30:28.000000000 +1000
+++ linuxppc-2.5-benh/include/asm-ppc/dma-mapping.h 2004-05-04 15:06:15.000000000 +1000
@@ -184,4 +184,10 @@
{
consistent_sync(vaddr, size, (int)direction);
}
+
+static inline int dma_mapping_error(dma_addr_t dma_addr)
+{
+ return 0;
+}
+
#endif /* __ASM_PPC_DMA_MAPPING_H */
diff -urN linux-2.5/include/asm-ppc/pci.h linuxppc-2.5-benh/include/asm-ppc/pci.h
--- linux-2.5/include/asm-ppc/pci.h 2004-05-03 09:30:28.000000000 +1000
+++ linuxppc-2.5-benh/include/asm-ppc/pci.h 2004-05-04 15:06:23.000000000 +1000
@@ -290,6 +290,11 @@
/* Nothing to do. */
}
+static inline int pci_dma_mapping_error(dma_addr_t dma_addr)
+{
+ return 0;
+}
+
/* Return the index of the PCI controller for device PDEV. */
#define pci_domain_nr(bus) ((struct pci_controller *)(bus)->sysdata)->index
reply other threads:[~2004-05-05 6:20 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=1083737764.19138.7.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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