Hi Himanshu, [auto build test ERROR on pci/next] [also build test ERROR on v4.11-rc5 next-20170406] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Himanshu-Madhani/PCI-MSI-Only-disable-affinity-settings-if-pre-and-post-vector-count-is-equal-to-max_vecs-and-not-min_vecs/20170407-155212 base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next config: x86_64-randconfig-x004-201714 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All error/warnings (new ones prefixed by >>): drivers//pci/msi.c: In function '__pci_enable_msi_range': >> drivers//pci/msi.c:1082:45: warning: passing argument 2 of 'irq_calc_affinity_vectors' makes pointer from integer without a cast [-Wint-conversion] nvec = irq_calc_affinity_vectors(minvec, nvec, affd); ^~~~ In file included from drivers//pci/msi.c:13:0: include/linux/interrupt.h:334:1: note: expected 'const struct irq_affinity *' but argument is of type 'int' irq_calc_affinity_vectors(int maxvec, const struct irq_affinity *affd) ^~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers//pci/msi.c:1082:11: error: too many arguments to function 'irq_calc_affinity_vectors' nvec = irq_calc_affinity_vectors(minvec, nvec, affd); ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers//pci/msi.c:13:0: include/linux/interrupt.h:334:1: note: declared here irq_calc_affinity_vectors(int maxvec, const struct irq_affinity *affd) ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers//pci/msi.c: In function '__pci_enable_msix_range': drivers//pci/msi.c:1121:45: warning: passing argument 2 of 'irq_calc_affinity_vectors' makes pointer from integer without a cast [-Wint-conversion] nvec = irq_calc_affinity_vectors(minvec, nvec, affd); ^~~~ In file included from drivers//pci/msi.c:13:0: include/linux/interrupt.h:334:1: note: expected 'const struct irq_affinity *' but argument is of type 'int' irq_calc_affinity_vectors(int maxvec, const struct irq_affinity *affd) ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers//pci/msi.c:1121:11: error: too many arguments to function 'irq_calc_affinity_vectors' nvec = irq_calc_affinity_vectors(minvec, nvec, affd); ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers//pci/msi.c:13:0: include/linux/interrupt.h:334:1: note: declared here irq_calc_affinity_vectors(int maxvec, const struct irq_affinity *affd) ^~~~~~~~~~~~~~~~~~~~~~~~~ vim +/irq_calc_affinity_vectors +1082 drivers//pci/msi.c 1076 1077 if (nvec > maxvec) 1078 nvec = maxvec; 1079 1080 for (;;) { 1081 if (affd) { > 1082 nvec = irq_calc_affinity_vectors(minvec, nvec, affd); 1083 if (nvec < minvec) 1084 return -ENOSPC; 1085 } --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip