Since kernel 5.18.0pci_alloc_consistentpci_free_consistent and pci_set_consistent_dma_mask are no more available and must be replaced by dma_alloc_coherentdma_free_coherent and dma_set_mask_and_coherent
This PR add preprocessing test using kernel version to keep backward compatibility and fix for kernel >= 5.18.
Since kernel 5.18.0
pci_alloc_consistent
pci_free_consistent
andpci_set_consistent_dma_mask
are no more available and must be replaced bydma_alloc_coherent
dma_free_coherent
anddma_set_mask_and_coherent
This PR add preprocessing test using kernel version to keep backward compatibility and fix for kernel >= 5.18.