• Gwenhael Goavec-Merou's avatar
    spec-sw: kernel: spec-pci: use pci_alloc_irq_vectors with kernel > 4.11 · ed527040
    Gwenhael Goavec-Merou authored
    since 4.11 pci_enable_msi_exact is no more available and fail with :
    
    spec-sw/kernel/spec-pci.c: In function 'spec_probe':
    spec-sw/kernel/spec-pci.c:225:9: error: implicit declaration of function 'pci_enable_msi_exact'; did you mean 'pci_enable_msix_exact'? [-Werror=implicit-function-declaration]
       ret = pci_enable_msi_exact(pdev, 1);
             ^~~~~~~~~~~~~~~~~~~~
             pci_enable_msix_exact
    cc1: some warnings being treated as errors
    make[5]: *** [/usr/src/linux-headers-4.18.0-2-common/scripts/Makefile.build:323: spec-sw/kernel/spec-pci.o] Error 1
    make[4]: *** [/usr/src/linux-headers-4.18.0-2-common/Makefile:1531: _module_spec-sw/kernel] Error 2
    make[3]: *** [Makefile:146: sub-make] Error 2
    make[2]: *** [Makefile:8: all] Error 2
    make[2]: Leaving directory '/usr/src/linux-headers-4.18.0-2-amd64'
    make[1]: *** [Makefile:20: all] Error 2
    make[1]: Leaving directory 'spec-sw/kernel'
    make: *** [Makefile:28: kernel] Error 2
    
    This patch add preprocessor case to detect kernel version.
    For kernel > 4.11 pci_alloc_irq_vectors is use instead of pci_enable_msi_exact
    and pci_free_irq_vectors instead of pci_disable_msi.
    Signed-off-by: 's avatarGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
    ed527040
Name
Last commit
Last update
..
hw Loading commit data...
wbgen-regs Loading commit data...
wr_nic Loading commit data...
.gitignore Loading commit data...
Kbuild Loading commit data...
Makefile Loading commit data...
loader-ll.c Loading commit data...
loader-ll.h Loading commit data...
spec-fmc.c Loading commit data...
spec-gpio-no.c Loading commit data...
spec-gpio.c Loading commit data...
spec-i2c.c Loading commit data...
spec-nic.h Loading commit data...
spec-pci.c Loading commit data...
spec-vic.c Loading commit data...
spec.h Loading commit data...
wr-dio.h Loading commit data...
wr-nic-core.c Loading commit data...
wr-nic-dio.c Loading commit data...
wr-nic-eth.c Loading commit data...
wr-nic-gpio.c Loading commit data...