Kernel is 5.19.8
dahdi 3.2.0
CC [M] /home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.o
/home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.c: In function ‘t4_allocate_buffers’:
/home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.c:3864:17: error: implicit declaration of function ‘pci_alloc_consistent’ [-Werror=implicit-function-declaration]
3864 | alloc = pci_alloc_consistent(wc->dev, numbufs * T4_BASE_SIZE(wc) * 2,
| ^~~~~~~~~~~~~~~~~~~~
/home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.c:3864:15: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
3864 | alloc = pci_alloc_consistent(wc->dev, numbufs * T4_BASE_SIZE(wc) * 2,
| ^
/home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.c: In function ‘t4_increase_latency’:
/home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.c:3943:9: error: implicit declaration of function ‘pci_free_consistent’ [-Werror=implicit-function-declaration]
3943 | pci_free_consistent(wc->dev, T4_BASE_SIZE(wc) * oldbufs * 2,
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
CC [M] /home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.o
/home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.c: In function ‘t4_allocate_buffers’:
/home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.c:3864:17: error: implicit declaration of function ‘pci_alloc_consistent’ [-Werror=implicit-function-declaration]
3864 | alloc = pci_alloc_consistent(wc->dev, numbufs * T4_BASE_SIZE(wc) * 2,
| ^~~~~~~~~~~~~~~~~~~~
/home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.c:3864:15: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
3864 | alloc = pci_alloc_consistent(wc->dev, numbufs * T4_BASE_SIZE(wc) * 2,
| ^
/home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.c: In function ‘t4_increase_latency’:
/home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.c:3943:9: error: implicit declaration of function ‘pci_free_consistent’ [-Werror=implicit-function-declaration]
3943 | pci_free_consistent(wc->dev, T4_BASE_SIZE(wc) * oldbufs * 2,
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
CC [M] /home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.o
/home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.c: In function ‘t4_allocate_buffers’:
/home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.c:3864:17: error: implicit declaration of function ‘pci_alloc_consistent’ [-Werror=implicit-function-declaration]
3864 | alloc = pci_alloc_consistent(wc->dev, numbufs * T4_BASE_SIZE(wc) * 2,
| ^~~~~~~~~~~~~~~~~~~~
/home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.c:3864:15: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
3864 | alloc = pci_alloc_consistent(wc->dev, numbufs * T4_BASE_SIZE(wc) * 2,
| ^
/home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.c: In function ‘t4_increase_latency’:
/home/toninho/Downloads/dahdi/linux/drivers/dahdi/wct4xxp/base.c:3943:9: error: implicit declaration of function ‘pci_free_consistent’ [-Werror=implicit-function-declaration]
3943 | pci_free_consistent(wc->dev, T4_BASE_SIZE(wc) * oldbufs * 2,
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Thanks for any help on this