Skip to contentSkip to conversation

RDMA/usnic: switch from 'pci_' to 'dma_' API

PATCH Markus Elfring 1 participant 1 message Jul 11, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Quoted 3 lines

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?

…

Review

Quoted 5 lines

@@
expression e1, e2, e3;
@@

(quoted diff) +1 -1
-    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