Re: [PATCH v2 1/4] asm-generic: add pci required defines and functions
From: kbuild test robot
Date: Wed Oct 14 2015 - 03:06:47 EST
Hi Ley,
[auto build test WARNING on v4.3-rc5 -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
url: https://github.com/0day-ci/linux/commits/Ley-Foon-Tan/Add-PCI-support-on-nios2-architecture/20151014-143651
config: frv-defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=frv
All warnings (new ones prefixed by >>):
In file included from arch/frv/include/asm/pci.h:19:0,
from include/linux/pci.h:1497,
from arch/frv/mm/dma-alloc.c:38:
include/asm-generic/pci.h:39:25: error: redefinition of 'pci_proc_domain'
#define pci_proc_domain pci_proc_domain
^
include/asm-generic/pci.h:40:19: note: in expansion of macro 'pci_proc_domain'
static inline int pci_proc_domain(struct pci_bus *bus)
^
In file included from arch/frv/mm/dma-alloc.c:38:0:
include/linux/pci.h:1360:19: note: previous definition of 'pci_proc_domain' was here
static inline int pci_proc_domain(struct pci_bus *bus) { return 0; }
^
In file included from include/linux/pci.h:1497:0,
from arch/frv/mm/dma-alloc.c:38:
>> arch/frv/include/asm/pci.h:23:0: warning: "pcibios_assign_all_busses" redefined
#define pcibios_assign_all_busses() 0
^
In file included from arch/frv/include/asm/pci.h:19:0,
from include/linux/pci.h:1497,
from arch/frv/mm/dma-alloc.c:38:
include/asm-generic/pci.h:35:0: note: this is the location of the previous definition
#define pcibios_assign_all_busses() (pci_has_flag(PCI_REASSIGN_ALL_BUS))
^
In file included from include/linux/pci.h:1497:0,
from arch/frv/mm/dma-alloc.c:38:
>> arch/frv/include/asm/pci.h:48:0: warning: "PCIBIOS_MIN_IO" redefined
#define PCIBIOS_MIN_IO 0x100
^
In file included from arch/frv/include/asm/pci.h:19:0,
from include/linux/pci.h:1497,
from arch/frv/mm/dma-alloc.c:38:
include/asm-generic/pci.h:27:0: note: this is the location of the previous definition
#define PCIBIOS_MIN_IO (0UL)
^
In file included from include/linux/pci.h:1497:0,
from arch/frv/mm/dma-alloc.c:38:
>> arch/frv/include/asm/pci.h:49:0: warning: "PCIBIOS_MIN_MEM" redefined
#define PCIBIOS_MIN_MEM 0x00010000
^
In file included from arch/frv/include/asm/pci.h:19:0,
from include/linux/pci.h:1497,
from arch/frv/mm/dma-alloc.c:38:
include/asm-generic/pci.h:31:0: note: this is the location of the previous definition
#define PCIBIOS_MIN_MEM (0UL)
^
vim +/pcibios_assign_all_busses +23 arch/frv/include/asm/pci.h
d7c4f1b7 arch/frv/include/asm/pci.h Arnd Bergmann 2009-05-13 13 #ifndef _ASM_FRV_PCI_H
d7c4f1b7 arch/frv/include/asm/pci.h Arnd Bergmann 2009-05-13 14 #define _ASM_FRV_PCI_H
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 15
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 16 #include <linux/mm.h>
84be456f arch/frv/include/asm/pci.h Christoph Hellwig 2015-05-01 17 #include <linux/scatterlist.h>
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 18 #include <asm-generic/pci-dma-compat.h>
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 @19 #include <asm-generic/pci.h>
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 20
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 21 struct pci_dev;
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 22
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 @23 #define pcibios_assign_all_busses() 0
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 24
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 25 extern void pcibios_set_master(struct pci_dev *dev);
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 26
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 27 #ifdef CONFIG_MMU
a5da7d3c include/asm-frv/pci.h Al Viro 2005-10-21 28 extern void *consistent_alloc(gfp_t gfp, size_t size, dma_addr_t *dma_handle);
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 29 extern void consistent_free(void *vaddr);
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 30 extern void consistent_sync(void *vaddr, size_t size, int direction);
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 31 extern void consistent_sync_page(struct page *page, unsigned long offset,
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 32 size_t size, int direction);
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 33 #endif
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 34
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 35 extern void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size,
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 36 dma_addr_t *dma_handle);
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 37
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 38 extern void pci_free_consistent(struct pci_dev *hwdev, size_t size,
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 39 void *vaddr, dma_addr_t dma_handle);
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 40
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 41 /* Return the index of the PCI controller for device PDEV. */
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 42 #define pci_controller_num(PDEV) (0)
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 43
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 44 /*
25985edc arch/frv/include/asm/pci.h Lucas De Marchi 2011-03-30 45 * These are pretty much arbitrary with the CoMEM implementation.
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 46 * We have the whole address space to ourselves.
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 47 */
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 @48 #define PCIBIOS_MIN_IO 0x100
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 @49 #define PCIBIOS_MIN_MEM 0x00010000
^1da177e include/asm-frv/pci.h Linus Torvalds 2005-04-16 50
d7c4f1b7 arch/frv/include/asm/pci.h Arnd Bergmann 2009-05-13 51 #endif /* _ASM_FRV_PCI_H */
:::::: The code at line 23 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data