Skip to content

Fail to compile in CentOS Stream 9 #89

@handewo

Description

@handewo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions