Build error due to pci_dma_mapping_error duplication
Hi.
I tried building the BK kernel a day or two ago on my SS20, and things failed due to the following error:
include/asm/pci.h:160: error: redefinition of pci_dma_mapping_error' include/asm/pci.h:92: error: pci_dma_mapping_error' previously defined here
It seems pcm_dma_mapping_error() is duplicated in this header file. The first instance reads as follows:
static inline int pci_dma_mapping_error(dma_addr_t dma_addr)
{
return 0;
}The second, and the newly added version in the 1.15->1.16 change to the file is:
static inline int pci_dma_mapping_error(dma_addr_t dma_addr)
{
return (dma_addr = PCI_DMA_ERROR_CODE);
}I'd guess the first one needs to go. Correct?
Art Haas
Signature · 4 lines
Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822
Quoted 17 lines · Art Haas
I tried building the BK kernel a day or two ago on my SS20, and things failed due to the following error:
include/asm/pci.h:160: error: redefinition ofpci_dma_mapping_error' include/asm/pci.h:92: error:pci_dma_mapping_error' previously defined here
It seemspcm_dma_mapping_error()is duplicated in this header file. The first instance reads as follows:
static inline intpci_dma_mapping_error(dma_addr_t dma_addr){ return 0; } The second, and the newly added version in the 1.15->1.16 change to the file is: static inline int pci_dma_mapping_error(dma_addr_t dma_addr) { return (dma_addr = PCI_DMA_ERROR_CODE); }
Quoted 1 line
I'd guess the first one needs to go. Correct?
Yes, please send that in ASAP.
-- wli