Re: [PATCH] RDMA/usnic: switch from 'pci_' to 'dma_' API

From: Markus Elfring
Date: Sat Jul 11 2020 - 06:05:15 EST


> The wrappers in include/linux/pci-dma-compat.h should go away.
>
> The patch has been generated with the coccinelle script bellow.

* I suggest to avoid a typo in a word at the sentence end.

* The script for the semantic patch language could be a bit nicer
by the application of disjunctions instead of separate SmPL rules.
Would you become interested in any further adjustments?


â
>@@
> expression e1, e2, e3;
> @@
> - pci_alloc_consistent(e1, e2, e3)
> + dma_alloc_coherent(&e1->dev, e2, e3, GFP_)

I find the last function parameter questionable.
An other flag was specified in a corresponding diff hunk.

Regards,
Markus