cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tschesnok
Observer
Observer
222 Views
Registered: ‎07-23-2019

XDMA Driver -> libxdma.c Not Building - Kernel 5.10.25 (worked fine on 5.4.79)

I'm building the XDMA driver on a Raspberry Pi host. This worked fine with Kernel 5.4.79 but is now failing to build with an updated Kernel. I don't see this error anywhere online.. so this may be new?

Here is what I get:

 

pi@raspberrypi:~/XDMA/dma_ip_drivers-master/XDMA/linux-kernel/xdma $ sudo make
Makefile:10: XVC_FLAGS: .
make -C /lib/modules/5.10.25-v7l+/build M=/home/pi/XDMA/dma_ip_drivers-master/XDMA/linux-kernel/xdma modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.17-v7+'
/home/pi/XDMA/dma_ip_drivers-master/XDMA/linux-kernel/xdma/Makefile:10: XVC_FLAGS: .
CC [M] /home/pi/XDMA/dma_ip_drivers-master/XDMA/linux-kernel/xdma/libxdma.o
/home/pi/XDMA/dma_ip_drivers-master/XDMA/linux-kernel/xdma/libxdma.c: In function ‘disable_msi_msix’:
/home/pi/XDMA/dma_ip_drivers-master/XDMA/linux-kernel/xdma/libxdma.c:1804:3: error: implicit declaration of function ‘pci_disable_msix’; did you mean ‘pci_disable_sriov’? [-Werror=implicit-function-declaration]
pci_disable_msix(pdev);
^~~~~~~~~~~~~~~~
pci_disable_sriov
/home/pi/XDMA/dma_ip_drivers-master/XDMA/linux-kernel/xdma/libxdma.c:1807:3: error: implicit declaration of function ‘pci_disable_msi’; did you mean ‘pci_disable_sriov’? [-Werror=implicit-function-declaration]
pci_disable_msi(pdev);
^~~~~~~~~~~~~~~
pci_disable_sriov
/home/pi/XDMA/dma_ip_drivers-master/XDMA/linux-kernel/xdma/libxdma.c: In function ‘enable_msi_msix’:
/home/pi/XDMA/dma_ip_drivers-master/XDMA/linux-kernel/xdma/libxdma.c:1852:8: error: implicit declaration of function ‘pci_enable_msi’; did you mean ‘pci_enable_sriov’? [-Werror=implicit-function-declaration]
rv = pci_enable_msi(pdev);
^~~~~~~~~~~~~~
pci_enable_sriov
/home/pi/XDMA/dma_ip_drivers-master/XDMA/linux-kernel/xdma/libxdma.c: In function ‘pci_enable_capability’:
/home/pi/XDMA/dma_ip_drivers-master/XDMA/linux-kernel/xdma/libxdma.c:4056:2: error: implicit declaration of function ‘pcie_capability_set_word’; did you mean ‘ns_capable_setid’? [-Werror=implicit-function-declaration]
pcie_capability_set_word(pdev, PCI_EXP_DEVCTL, cap);
^~~~~~~~~~~~~~~~~~~~~~~~
ns_capable_setid
/home/pi/XDMA/dma_ip_drivers-master/XDMA/linux-kernel/xdma/libxdma.c: In function ‘xdma_device_open’:
/home/pi/XDMA/dma_ip_drivers-master/XDMA/linux-kernel/xdma/libxdma.c:4121:7: error: implicit declaration of function ‘pcie_set_readrq’; did you mean ‘pci_set_flags’? [-Werror=implicit-function-declaration]
rv = pcie_set_readrq(pdev, 512);
^~~~~~~~~~~~~~~
pci_set_flags
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:279: /home/pi/XDMA/dma_ip_drivers-master/XDMA/linux-kernel/xdma/libxdma.o] Error 1
make[1]: *** [Makefile:1804: /home/pi/XDMA/dma_ip_drivers-master/XDMA/linux-kernel/xdma] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.17-v7+'
make: *** [Makefile:27: all] Error 2

0 Kudos
0 Replies