error:implicit declaration of function'pci_cleanup_aer_uncorrect_status'(以rhel8.6为例)
问题描述
解决方案
在内核中查询,查询不到。
在源码中查询,可以发现有类似的定义在“host\ossl\linux\kernel\ossl_knl_linux.h”目录。
如上图所示,可以见到报错接口的新定义,那么就可以去内核里查询新定义。
发现有新定义,那么就可在“host\ossl\linux\kernel\ossl_knl_linux.h”目录修改,如图1所示。
当定义了REDHAT8_6 时,选择对pci_cleanup_aer_uncorrect_error_status进行正确定义。
#if (KERNEL_VERSION(5, 4, 0) > LINUX_VERSION_CODE) || defined(REDHAT8_6) #if (SUSE_PRODUCT(1, 15, 2, 0) <= SUSE_PRODUCT_CODE) || defined(REDHAT8_6) #ifndef pci_cleanup_aer_uncorrect_error_status #define pci_cleanup_aer_uncorrect_error_status pci_aer_clear_nonfatal_status #endif
父主题: 内核接口名称变更