diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-01-02 11:23:39 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-01-02 16:14:30 +0000 |
commit | 60c332029c8da6f4ef791807fcbfbd98e71a5fbd (patch) | |
tree | f07490647db16fe04d7646a99b8228e69f5a7457 /.clang-format | |
parent | 4f9f531e1505a126b4d66d8a8a29e8e54fa4075c (diff) | |
download | linux-60c332029c8da6f4ef791807fcbfbd98e71a5fbd.tar.bz2 |
enic: Remove usage of the deprecated "pci-dma-compat.h" API
In [1], Christoph Hellwig has proposed to remove the wrappers in
include/linux/pci-dma-compat.h.
Some reasons why this API should be removed have been given by Julia
Lawall in [2].
A coccinelle script has been used to perform the needed transformation
Only relevant parts are given below.
@@
expression e1, e2;
@@
- pci_dma_mapping_error(e1, e2)
+ dma_mapping_error(&e1->dev, e2)
[1]: https://lore.kernel.org/kernel-janitors/20200421081257.GA131897@infradead.org/
[2]: https://lore.kernel.org/kernel-janitors/alpine.DEB.2.22.394.2007120902170.2424@hadrien/
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions