Re: [Cocci] [PATCH] Coccinelle: Update and rename api/alloc/pci_free_consistent.cocci

2021-06-27 Thread Christophe JAILLET
Le 26/06/2021 à 21:55, Julia Lawall a écrit : On Wed, 16 Jun 2021, Christophe JAILLET wrote: 'pci_alloc_consistent()' is about to be removed from the kernel. It is now more useful to check for dma_alloc_coherent/dma_free_coherent. dma_alloc_coherent has four arguments, and in the script the

Re: [Cocci] [PATCH] Coccinelle: Update and rename api/alloc/pci_free_consistent.cocci

2021-06-26 Thread Julia Lawall
On Wed, 16 Jun 2021, Christophe JAILLET wrote: > 'pci_alloc_consistent()' is about to be removed from the kernel. > It is now more useful to check for dma_alloc_coherent/dma_free_coherent. > > So change the script accordingly and rename it. There also seem to be a lot of false positives, where

Re: [Cocci] [PATCH] Coccinelle: Update and rename api/alloc/pci_free_consistent.cocci

2021-06-26 Thread Julia Lawall
On Wed, 16 Jun 2021, Christophe JAILLET wrote: > 'pci_alloc_consistent()' is about to be removed from the kernel. > It is now more useful to check for dma_alloc_coherent/dma_free_coherent. dma_alloc_coherent has four arguments, and in the script there are only three. Is the number of argument

[Cocci] [PATCH] Coccinelle: Update and rename api/alloc/pci_free_consistent.cocci

2021-06-21 Thread Christophe JAILLET
'pci_alloc_consistent()' is about to be removed from the kernel. It is now more useful to check for dma_alloc_coherent/dma_free_coherent. So change the script accordingly and rename it. Signed-off-by: Christophe JAILLET --- Not sure that the script works. There are 718 'dma_alloc_coherent' calls