Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build under Debian with 5.8.0.1 kernel #16

Open
moulip opened this issue Sep 16, 2020 · 1 comment
Open

Can't build under Debian with 5.8.0.1 kernel #16

moulip opened this issue Sep 16, 2020 · 1 comment

Comments

@moulip
Copy link

moulip commented Sep 16, 2020

Hi,

The module does not build anymore with the 5.8.0.1 kernel under Debian testing. I have written a dkms file to automatically build it to follow kernel updates. Here's the output of the last build try :

DKMS make.log for xmm7360_usb-1.0 for kernel 5.8.0-1-amd64 (x86_64) Wed 16 Sep 2020 09:08:18 AM CEST make: Entering directory '/usr/src/linux-headers-5.8.0-1-amd64' AR /var/lib/dkms/xmm7360_usb/1.0/build/built-in.a CC [M] /var/lib/dkms/xmm7360_usb/1.0/build/xmm7360_usb.o /var/lib/dkms/xmm7360_usb/1.0/build/xmm7360_usb.c: In function ‘pcie_link_set_enabled’: /var/lib/dkms/xmm7360_usb/1.0/build/xmm7360_usb.c:52:12: error: implicit declaration of function ‘pci_find_pcie_root_port’; did you mean ‘pcie_find_root_port’? [-Werror=implicit-function-declaration] 52 | rdev = pci_find_pcie_root_port(dev); | ^~~~~~~~~~~~~~~~~~~~~~~ | pcie_find_root_port /var/lib/dkms/xmm7360_usb/1.0/build/xmm7360_usb.c:52:10: warning: assignment to ‘struct pci_dev *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 52 | rdev = pci_find_pcie_root_port(dev); | ^ cc1: some warnings being treated as errors make[2]: *** [/usr/src/linux-headers-5.8.0-1-common/scripts/Makefile.build:286: /var/lib/dkms/xmm7360_usb/1.0/build/xmm7360_usb.o] Error 1 make[1]: *** [/usr/src/linux-headers-5.8.0-1-common/Makefile:1768: /var/lib/dkms/xmm7360_usb/1.0/build] Error 2 make: *** [/usr/src/linux-headers-5.8.0-1-common/Makefile:185: __sub-make] Error 2 make: Leaving directory '/usr/src/linux-headers-5.8.0-1-amd64'

@moulip
Copy link
Author

moulip commented Sep 16, 2020

I have corrected it. Just edit xmm7360_usb.c and at line 52 replace pci_find_pcie_root_port by pcie_find_root_port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant