tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/virtualization head: 35337b7c9f1025b19f22b4b8f516247e371620e4 commit: 35337b7c9f1025b19f22b4b8f516247e371620e4 [3/3] PCI: Support INTx masking on ConnectX-4 with firmware x.14.1100+ config: x86_64-randconfig-x013-201646 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout 35337b7c9f1025b19f22b4b8f516247e371620e4 # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>): In file included from include/uapi/linux/stddef.h:1:0, from include/linux/stddef.h:4, from include/uapi/linux/posix_types.h:4, from include/uapi/linux/types.h:13, from include/linux/types.h:5, from drivers/pci/quirks.c:14: drivers/pci/quirks.c: In function 'mellanox_check_broken_intx_masking': drivers/pci/quirks.c:3243:22: error: 'PCI_DEVICE_ID_MELLANOX_CONNECTIB' undeclared (first use in this function) if (pdev->device == PCI_DEVICE_ID_MELLANOX_CONNECTIB) ^ include/linux/compiler.h:149:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ >> drivers/pci/quirks.c:3243:2: note: in expansion of macro 'if' if (pdev->device == PCI_DEVICE_ID_MELLANOX_CONNECTIB) ^~ drivers/pci/quirks.c:3243:22: note: each undeclared identifier is reported only once for each function it appears in if (pdev->device == PCI_DEVICE_ID_MELLANOX_CONNECTIB) ^ include/linux/compiler.h:149:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ >> drivers/pci/quirks.c:3243:2: note: in expansion of macro 'if' if (pdev->device == PCI_DEVICE_ID_MELLANOX_CONNECTIB) ^~ drivers/pci/quirks.c:3246:22: error: 'PCI_DEVICE_ID_MELLANOX_CONNECTX4' undeclared (first use in this function) if (pdev->device != PCI_DEVICE_ID_MELLANOX_CONNECTX4 && ^ include/linux/compiler.h:149:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ drivers/pci/quirks.c:3246:2: note: in expansion of macro 'if' if (pdev->device != PCI_DEVICE_ID_MELLANOX_CONNECTX4 && ^~ drivers/pci/quirks.c:3247:22: error: 'PCI_DEVICE_ID_MELLANOX_CONNECTX4_LX' undeclared (first use in this function) pdev->device != PCI_DEVICE_ID_MELLANOX_CONNECTX4_LX) ^ include/linux/compiler.h:149:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ drivers/pci/quirks.c:3246:2: note: in expansion of macro 'if' if (pdev->device != PCI_DEVICE_ID_MELLANOX_CONNECTX4 && ^~ vim +/if +3243 drivers/pci/quirks.c 3227 u16 fw_minor; 3228 u16 fw_subminor; 3229 u32 fw_maj_min; 3230 u32 fw_sub_min; 3231 int i; 3232 3233 for (i = 0; i < ARRAY_SIZE(mellanox_broken_intx_devs); i++) { 3234 if (pdev->device == mellanox_broken_intx_devs[i]) { 3235 pdev->broken_intx_masking = 1; 3236 return; 3237 } 3238 } 3239 3240 /* Getting here means Connect-IB cards and up. Connect-IB has no INTx 3241 * support so shouldn't be checked further 3242 */ > 3243 if (pdev->device == PCI_DEVICE_ID_MELLANOX_CONNECTIB) 3244 return; 3245 3246 if (pdev->device != PCI_DEVICE_ID_MELLANOX_CONNECTX4 && 3247 pdev->device != PCI_DEVICE_ID_MELLANOX_CONNECTX4_LX) 3248 return; 3249 3250 /* For ConnectX-4 and ConnectX-4LX, need to check FW support */ 3251 if (pci_enable_device_mem(pdev)) { --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip