Re: [PATCHv8] x86/PCI: Initial commit for new VMD device driver

From: kbuild test robot
Date: Tue Jan 12 2016 - 12:42:09 EST

Hi Keith,

[auto build test ERROR on tip/x86/core]
[also build test ERROR on v4.4 next-20160112]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

config: x86_64-allmodconfig (attached as .config)
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

>> arch/x86/pci/vmd.c:85:20: error: field 'dma_domain' has incomplete type
struct dma_domain dma_domain;
arch/x86/pci/vmd.c: In function 'vmd_teardown_dma_ops':
>> arch/x86/pci/vmd.c:372:3: error: implicit declaration of function 'del_dma_domain' [-Werror=implicit-function-declaration]
arch/x86/pci/vmd.c: In function 'vmd_setup_dma_ops':
>> arch/x86/pci/vmd.c:387:8: error: dereferencing pointer to incomplete type 'struct dma_domain'
domain->domain_nr = vmd->sysdata.domain;
>> arch/x86/pci/vmd.c:409:2: error: implicit declaration of function 'add_dma_domain' [-Werror=implicit-function-declaration]
arch/x86/pci/vmd.c: In function 'vmd_enable_domain':
arch/x86/pci/vmd.c:559:2: error: implicit declaration of function 'dev_set_msi_domain' [-Werror=implicit-function-declaration]
dev_set_msi_domain(&vmd->bus->dev, vmd->irq_domain);
cc1: some warnings being treated as errors

vim +/dma_domain +85 arch/x86/pci/vmd.c

79 struct resource resources[3];
80 struct irq_domain *irq_domain;
81 struct pci_bus *bus;
83 #ifdef CONFIG_X86_DEV_DMA_OPS
84 struct dma_map_ops dma_ops;
> 85 struct dma_domain dma_domain;
86 #endif
87 };

0-DAY kernel test infrastructure Open Source Technology Center Intel Corporation

Attachment: .config.gz
Description: Binary data