exanic-software
exanic-software copied to clipboard
Fail to compile in CentOS Stream 9
Fail to compile in CentOS Stream 9 when update to the latest kernel. kernel version: kernel-headers-x86_64-5.14.0-437.el9 Error info:
[root@localhost exanic-software]# make
make -C modules/exanic
make[1]: Entering directory '/root/exanic-software/modules/exanic'
make -C /lib/modules/`uname -r`/build M=$PWD modules
make[2]: Entering directory '/usr/src/kernels/5.14.0-437.el9.x86_64'
CC [M] /root/exanic-software/modules/exanic/exanic-main.o
/root/exanic-software/modules/exanic/exanic-main.c: In function ‘exanic_probe’:
/root/exanic-software/modules/exanic/exanic-main.c:1884:5: error: implicit declaration of function ‘pci_disable_pcie_error_reporting’ [-Werror=implicit-function-declaration]
1884 | pci_disable_pcie_error_reporting(pdev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:300: /root/exanic-software/modules/exanic/exanic-main.o] Error 1
make[2]: *** [Makefile:1927: /root/exanic-software/modules/exanic] Error 2
make[2]: Leaving directory '/usr/src/kernels/5.14.0-437.el9.x86_64'
make[1]: *** [Makefile:20: default] Error 2
make[1]: Leaving directory '/root/exanic-software/modules/exanic'
make: *** [Makefile:9: modules] Error 2
I found the function pci_disable_pcie_error_reporting
is removed in kernel.
Please see #91
Disclosure: I'm not an official maintainer or a Cisco employee.