Skip to content

Commit

Permalink
PCI: Remove the deprecated "pci-dma-compat.h" API
Browse files Browse the repository at this point in the history
Now that all usages of the functions defined in "pci-dma-compat.h" have
been removed, it is time to remove this file as well.

In order not to break builds, move the "#include <linux/dma-mapping.h>"
that was in "pci-dma-compat.h" into "include/linux/pci.h"

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
  • Loading branch information
Christophe JAILLET authored and Christoph Hellwig committed Mar 30, 2022
1 parent 5efabda commit 7968778
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 131 deletions.
129 changes: 0 additions & 129 deletions include/linux/pci-dma-compat.h

This file was deleted.

3 changes: 1 addition & 2 deletions include/linux/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -2473,8 +2473,7 @@ static inline bool pci_is_thunderbolt_attached(struct pci_dev *pdev)
void pci_uevent_ers(struct pci_dev *pdev, enum pci_ers_result err_type);
#endif

/* Provide the legacy pci_dma_* API */
#include <linux/pci-dma-compat.h>
#include <linux/dma-mapping.h>

#define pci_printk(level, pdev, fmt, arg...) \
dev_printk(level, &(pdev)->dev, fmt, ##arg)
Expand Down

0 comments on commit 7968778

Please sign in to comment.