Hi Sunil,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on e4e737bb5c170df6135a127739a9e6148ee3da82]
url:
https://github.com/0day-ci/linux/commits/Sunil-Muthuswamy/PCI-hv-Hyper-V-...
base: e4e737bb5c170df6135a127739a9e6148ee3da82
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/0day-ci/linux/commit/8f266a9b41d3dfc1600cecaba80ea116d...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Sunil-Muthuswamy/PCI-hv-Hyper-V-vPCI-for-ARM64/20211009-012330
git checkout 8f266a9b41d3dfc1600cecaba80ea116dc6edf27
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/pci/controller/pci-hyperv-irqchip.c:18:5: error: no
previous prototype for 'hv_pci_irqchip_init' [-Werror=missing-prototypes]
18 | int hv_pci_irqchip_init(struct irq_domain **parent_domain,
| ^~~~~~~~~~~~~~~~~~~
> drivers/pci/controller/pci-hyperv-irqchip.c:29:6: error: no
previous prototype for 'hv_pci_irqchip_free' [-Werror=missing-prototypes]
29 | void hv_pci_irqchip_free(void) {}
| ^~~~~~~~~~~~~~~~~~~
> drivers/pci/controller/pci-hyperv-irqchip.c:31:14: error: no
previous prototype for 'hv_msi_get_int_vector' [-Werror=missing-prototypes]
31 | unsigned int hv_msi_get_int_vector(struct irq_data *data)
| ^~~~~~~~~~~~~~~~~~~~~
> drivers/pci/controller/pci-hyperv-irqchip.c:38:6: error: no
previous prototype for 'hv_set_msi_entry_from_desc' [-Werror=missing-prototypes]
38 | void hv_set_msi_entry_from_desc(union hv_msi_entry *msi_entry,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
> drivers/pci/controller/pci-hyperv-irqchip.c:45:5: error: no
previous prototype for 'hv_msi_prepare' [-Werror=missing-prototypes]
45 | int hv_msi_prepare(struct irq_domain *domain, struct device *dev,
| ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/hv_pci_irqchip_init +18 drivers/pci/controller/pci-hyperv-irqchip.c
16
17 #ifdef CONFIG_X86_64
18 int hv_pci_irqchip_init(struct irq_domain **parent_domain,
19 bool *fasteoi_handler,
20 u8 *delivery_mode)
21 {
22 *parent_domain = x86_vector_domain;
23 *fasteoi_handler = false;
24 *delivery_mode = APIC_DELIVERY_MODE_FIXED;
25
26 return 0;
27 }
28
29 void hv_pci_irqchip_free(void) {}
30
31 unsigned int hv_msi_get_int_vector(struct irq_data *data)
32 {
33 struct irq_cfg *cfg = irqd_cfg(data);
34
35 return cfg->vector;
36 }
37
38 void hv_set_msi_entry_from_desc(union hv_msi_entry *msi_entry,
39 struct msi_desc *msi_desc)
40 {
41 msi_entry->address.as_uint32 = msi_desc->msg.address_lo;
42 msi_entry->data.as_uint32 = msi_desc->msg.data;
43 }
44
45 int hv_msi_prepare(struct irq_domain *domain, struct device *dev,
46 int nvec, msi_alloc_info_t *info)
47 {
48 return pci_msi_prepare(domain, dev, nvec, info);
49 }
50
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org