login
Header Space

 
 

Re: [PATCH 0/3 v5] dma: add dma_*map*_attrs() interfaces

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <akepner@...>
Cc: Tony Luck <tony.luck@...>, Jesse Barnes <jbarnes@...>, Jes Sorensen <jes@...>, Randy Dunlap <randy.dunlap@...>, Roland Dreier <rdreier@...>, James Bottomley <James.Bottomley@...>, David Miller <davem@...>, Benjamin Herrenschmidt <benh@...>, Grant Grundler <grundler@...>, Michael Ellerman <michael@...>, <linux-kernel@...>
Date: Thursday, March 27, 2008 - 10:18 pm

On Wed, 19 Mar 2008 18:07:09 -0700 akepner@sgi.com wrote:


alpha allmodconfig:


In file included from include/asm/pci.h:7,
                 from include/linux/pci.h:953,
                 from include/asm/core_mcpcia.h:9,
                 from include/asm/io.h:226,
                 from arch/alpha/kernel/asm-offsets.c:11:
include/linux/dma-mapping.h: In function 'dma_map_single_attrs':
include/linux/dma-mapping.h:157: error: implicit declaration of function 'pci_map_single'
include/linux/dma-mapping.h:157: error: implicit declaration of function 'alpha_gendev_to_pci'
include/linux/dma-mapping.h: In function 'dma_unmap_single_attrs':
include/linux/dma-mapping.h:165: error: implicit declaration of function 'pci_unmap_single'
include/linux/dma-mapping.h:165: warning: 'return' with a value, in function returning void
include/linux/dma-mapping.h: In function 'dma_map_sg_attrs':
include/linux/dma-mapping.h:172: error: implicit declaration of function 'pci_map_sg'
include/linux/dma-mapping.h: In function 'dma_unmap_sg_attrs':
include/linux/dma-mapping.h:180: error: implicit declaration of function 'pci_unmap_sg'
include/linux/dma-mapping.h:180: warning: 'return' with a value, in function returning void
In file included from include/linux/pci.h:953,
                 from include/asm/core_mcpcia.h:9,
                 from include/asm/io.h:226,
                 from arch/alpha/kernel/asm-offsets.c:11:


We're in include hell, I think.  alpha defined CONFIG_HAS_DMA, so it has
already included asm/dma-mapping.h, which defines pci_map_single().  But I
suspect that the compiler skipped that inclusion because it was recursive. 
Or something.

I will point you at http://userweb.kernel.org/~akpm/cross-compilers/ and
run away, sorry.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 0/3 v5] dma: add dma_*map*_attrs() interfaces, Andrew Morton, (Thu Mar 27, 10:18 pm)
speck-geostationary