* Re: [PATCH] ppc32: reorg DMA API, add coherent alloc in irq [not found] <200405291908.i4TJ8a5l011479@hera.kernel.org> @ 2004-05-30 12:28 ` Arjan van de Ven 2004-05-30 18:29 ` Eugene Surovegin 0 siblings, 1 reply; 3+ messages in thread From: Arjan van de Ven @ 2004-05-30 12:28 UTC (permalink / raw) To: akpm, torvalds, mporter; +Cc: linux-kernel [-- Attachment #1: Type: text/plain, Size: 1753 bytes --] On Sat, 2004-05-29 at 19:56, Linux Kernel Mailing List wrote: > ChangeSet 1.1770, 2004/05/29 10:56:14-07:00, akpm@osdl.org > > [PATCH] ppc32: reorg DMA API, add coherent alloc in irq > > From: Matt Porter <mporter@kernel.crashing.org> this breaks the acenic driver: In file included from drivers/net/acenic.c:186: drivers/net/acenic.h:598: error: syntax error before "DECLARE_PCI_UNMAP_ADDR" drivers/net/acenic.h:598: warning: no semicolon at end of struct or union drivers/net/acenic.h:609: error: syntax error before "DECLARE_PCI_UNMAP_ADDR" drivers/net/acenic.h:609: warning: no semicolon at end of struct or union drivers/net/acenic.h:621: error: field `tx_skbuff' has incomplete type drivers/net/acenic.h:622: error: field `rx_std_skbuff' has incomplete type drivers/net/acenic.h:623: error: field `rx_mini_skbuff' has incomplete type drivers/net/acenic.h:624: error: field `rx_jumbo_skbuff' has incomplete type drivers/net/acenic.c: In function `acenic_remove_one': drivers/net/acenic.c:667: warning: implicit declaration of function `pci_unmap_addr' drivers/net/acenic.c: In function `ace_load_std_rx_ring': drivers/net/acenic.c:1704: warning: implicit declaration of function `pci_unmap_addr_set' drivers/net/acenic.c: In function `ace_rx_int': drivers/net/acenic.c:2036: error: dereferencing pointer to incomplete type drivers/net/acenic.c:2037: error: dereferencing pointer to incomplete type drivers/net/acenic.c:2039: error: `mapping' undeclared (first use in this function) drivers/net/acenic.c:2039: error: (Each undeclared identifier is reported only once drivers/net/acenic.c:2039: error: for each function it appears in.) drivers/net/acenic.c: In function `ace_tx_int': ... etc ... [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ppc32: reorg DMA API, add coherent alloc in irq 2004-05-30 12:28 ` [PATCH] ppc32: reorg DMA API, add coherent alloc in irq Arjan van de Ven @ 2004-05-30 18:29 ` Eugene Surovegin 2004-05-30 22:08 ` Matt Porter 0 siblings, 1 reply; 3+ messages in thread From: Eugene Surovegin @ 2004-05-30 18:29 UTC (permalink / raw) To: Arjan van de Ven; +Cc: akpm, torvalds, mporter, linux-kernel, linuxppc-dev On Sun, May 30, 2004 at 02:28:35PM +0200, Arjan van de Ven wrote: > On Sat, 2004-05-29 at 19:56, Linux Kernel Mailing List wrote: > > ChangeSet 1.1770, 2004/05/29 10:56:14-07:00, akpm@osdl.org > > > > [PATCH] ppc32: reorg DMA API, add coherent alloc in irq > > > > From: Matt Porter <mporter@kernel.crashing.org> > > this breaks the acenic driver: > > In file included from drivers/net/acenic.c:186: > drivers/net/acenic.h:598: error: syntax error before > "DECLARE_PCI_UNMAP_ADDR" [snip] This patch should help. PPC32: Put back DECLARE_PCI_UNMAP_??? and friends accidentaly removed during DMA API reorganization. Signed-off-by: Eugene Surovegin <ebs@ebshome.net> ===== include/asm-ppc/pci.h 1.28 vs edited ===== --- 1.28/include/asm-ppc/pci.h Sat May 29 00:26:35 2004 +++ edited/include/asm-ppc/pci.h Sun May 30 11:03:59 2004 @@ -61,6 +61,14 @@ */ #define PCI_DMA_BUS_IS_PHYS (1) +/* pci_unmap_{page,single} is a nop so... */ +#define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) +#define DECLARE_PCI_UNMAP_LEN(LEN_NAME) +#define pci_unmap_addr(PTR, ADDR_NAME) (0) +#define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) do { } while (0) +#define pci_unmap_len(PTR, LEN_NAME) (0) +#define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0) + /* * At present there are very few 32-bit PPC machines that can have * memory above the 4GB point, and we don't support that. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ppc32: reorg DMA API, add coherent alloc in irq 2004-05-30 18:29 ` Eugene Surovegin @ 2004-05-30 22:08 ` Matt Porter 0 siblings, 0 replies; 3+ messages in thread From: Matt Porter @ 2004-05-30 22:08 UTC (permalink / raw) To: Arjan van de Ven, akpm, torvalds, linux-kernel, linuxppc-dev On Sun, May 30, 2004 at 11:29:06AM -0700, Eugene Surovegin wrote: > On Sun, May 30, 2004 at 02:28:35PM +0200, Arjan van de Ven wrote: > > On Sat, 2004-05-29 at 19:56, Linux Kernel Mailing List wrote: > > > ChangeSet 1.1770, 2004/05/29 10:56:14-07:00, akpm@osdl.org > > > > > > [PATCH] ppc32: reorg DMA API, add coherent alloc in irq > > > > > > From: Matt Porter <mporter@kernel.crashing.org> > > > > this breaks the acenic driver: > > > > In file included from drivers/net/acenic.c:186: > > drivers/net/acenic.h:598: error: syntax error before > > "DECLARE_PCI_UNMAP_ADDR" > > [snip] > > This patch should help. > > PPC32: Put back DECLARE_PCI_UNMAP_??? and friends accidentaly removed during DMA > API reorganization. > > Signed-off-by: Eugene Surovegin <ebs@ebshome.net> > > ===== include/asm-ppc/pci.h 1.28 vs edited ===== > --- 1.28/include/asm-ppc/pci.h Sat May 29 00:26:35 2004 > +++ edited/include/asm-ppc/pci.h Sun May 30 11:03:59 2004 > @@ -61,6 +61,14 @@ > */ > #define PCI_DMA_BUS_IS_PHYS (1) > > +/* pci_unmap_{page,single} is a nop so... */ > +#define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) > +#define DECLARE_PCI_UNMAP_LEN(LEN_NAME) > +#define pci_unmap_addr(PTR, ADDR_NAME) (0) > +#define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) do { } while (0) > +#define pci_unmap_len(PTR, LEN_NAME) (0) > +#define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0) > + > /* > * At present there are very few 32-bit PPC machines that can have > * memory above the 4GB point, and we don't support that. Yes, thanks. This is much better after I obviously fat-fingered those calls away. acenic builds here again. Andrew/Linus, please apply Eugene's patch to fix my breakage. ;) -Matt ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-30 22:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <200405291908.i4TJ8a5l011479@hera.kernel.org>
2004-05-30 12:28 ` [PATCH] ppc32: reorg DMA API, add coherent alloc in irq Arjan van de Ven
2004-05-30 18:29 ` Eugene Surovegin
2004-05-30 22:08 ` Matt Porter
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®