Created
January 24, 2022 06:29
-
-
Save ruo91/f6d8e2e3f8fa1b42dc039dafec2cddcf to your computer and use it in GitHub Desktop.
Linux Kernel v5.x - intel e1000e driver build fail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruo91-home /usr/local/src/e1000e-3.8.4/src # make | |
| make[1]: Entering directory '/usr/src/linux-5.15.16-gentoo' | |
| CC [M] /usr/local/src/e1000e-3.8.4/src/netdev.o | |
| In file included from /usr/local/src/e1000e-3.8.4/src/e1000.h:14, | |
| from /usr/local/src/e1000e-3.8.4/src/netdev.c:30: | |
| /usr/local/src/e1000e-3.8.4/src/kcompat.h: In function '__kc_xdp_umem_get_data': | |
| /usr/local/src/e1000e-3.8.4/src/kcompat.h:6696:22: error: 'struct xdp_umem' has no member named 'pages'; did you mean 'pgs'? | |
| 6696 | return umem->pages[addr >> PAGE_SHIFT].addr + (addr & (PAGE_SIZE - 1)); | |
| | ^~~~~ | |
| | pgs | |
| /usr/local/src/e1000e-3.8.4/src/kcompat.h: In function '__kc_xdp_umem_get_dma': | |
| /usr/local/src/e1000e-3.8.4/src/kcompat.h:6704:22: error: 'struct xdp_umem' has no member named 'pages'; did you mean 'pgs'? | |
| 6704 | return umem->pages[addr >> PAGE_SHIFT].dma + (addr & (PAGE_SIZE - 1)); | |
| | ^~~~~ | |
| | pgs | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c: In function 'e1000_configure_rx': | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c:3714:17: error: implicit declaration of function 'pm_qos_update_request'; did you mean 'freq_qos_update_request'? [-Werror=implicit-function-declaration] | |
| 3714 | pm_qos_update_request(&adapter->pm_qos_req, lat); | |
| | ^~~~~~~~~~~~~~~~~~~~~ | |
| | freq_qos_update_request | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c: In function 'e1000e_open': | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c:5189:9: error: implicit declaration of function 'pm_qos_add_request'; did you mean 'freq_qos_add_request'? [-Werror=implicit-function-declaration] | |
| 5189 | pm_qos_add_request(&adapter->pm_qos_req, PM_QOS_CPU_DMA_LATENCY, | |
| | ^~~~~~~~~~~~~~~~~~ | |
| | freq_qos_add_request | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c:5189:50: error: 'PM_QOS_CPU_DMA_LATENCY' undeclared (first use in this function) | |
| 5189 | pm_qos_add_request(&adapter->pm_qos_req, PM_QOS_CPU_DMA_LATENCY, | |
| | ^~~~~~~~~~~~~~~~~~~~~~ | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c:5189:50: note: each undeclared identifier is reported only once for each function it appears in | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c:5243:9: error: implicit declaration of function 'pm_qos_remove_request'; did you mean 'freq_qos_remove_request'? [-Werror=implicit-function-declaration] | |
| 5243 | pm_qos_remove_request(&adapter->pm_qos_req); | |
| | ^~~~~~~~~~~~~~~~~~~~~ | |
| | freq_qos_remove_request | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c: In function 'e1000_io_slot_reset': | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c:8100:9: error: implicit declaration of function 'pci_cleanup_aer_uncorrect_error_status' [-Werror=implicit-function-declaration] | |
| 8100 | pci_cleanup_aer_uncorrect_error_status(pdev); | |
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c: In function 'e1000e_set_interrupt_capability': | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c:2315:35: warning: this statement may fall through [-Wimplicit-fallthrough=] | |
| 2315 | adapter->int_mode = E1000E_INT_MODE_MSI; | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c:2317:9: note: here | |
| 2317 | case E1000E_INT_MODE_MSI: | |
| | ^~~~ | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c: In function 'e1000e_reset': | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c:4543:20: warning: this statement may fall through [-Wimplicit-fallthrough=] | |
| 4543 | if (adapter->netdev->mtu > ETH_DATA_LEN) { | |
| | ^ | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c:4551:9: note: here | |
| 4551 | default: | |
| | ^~~~~~~ | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c: In function 'e1000_setup_rctl': | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c:3566:32: warning: this statement may fall through [-Wimplicit-fallthrough=] | |
| 3566 | psrctl |= PAGE_SIZE << E1000_PSRCTL_BSIZE3_SHIFT; | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c:3568:17: note: here | |
| 3568 | case 2: | |
| | ^~~~ | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c:3569:32: warning: this statement may fall through [-Wimplicit-fallthrough=] | |
| 3569 | psrctl |= PAGE_SIZE << E1000_PSRCTL_BSIZE2_SHIFT; | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c:3571:17: note: here | |
| 3571 | case 1: | |
| | ^~~~ | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c: In function '__e1000e_disable_aspm': | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c:7554:31: warning: this statement may fall through [-Wimplicit-fallthrough=] | |
| 7554 | aspm_dis_mask |= PCI_EXP_LNKCTL_ASPM_L0S; | |
| /usr/local/src/e1000e-3.8.4/src/netdev.c:7556:9: note: here | |
| 7556 | case PCIE_LINK_STATE_L1: | |
| | ^~~~ | |
| cc1: some warnings being treated as errors | |
| make[2]: *** [scripts/Makefile.build:277: /usr/local/src/e1000e-3.8.4/src/netdev.o] Error 1 | |
| make[1]: *** [Makefile:1868: /usr/local/src/e1000e-3.8.4/src] Error 2 | |
| make[1]: Leaving directory '/usr/src/linux-5.15.16-gentoo' | |
| make: *** [Makefile:73: default] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ruo91 Did you got a solution yet?