diff options
| author | Bjorn Helgaas <bhelgaas@google.com> | 2025-10-03 20:13:10 +0300 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2025-10-03 20:13:10 +0300 |
| commit | 0bb65e32495e6235a069b60e787140da99e9c122 (patch) | |
| tree | 7306a0c3cbee5a2abde824897d5bfa701a5c8a2d /include/linux | |
| parent | 3cde1c3ec9207eafccd56c3645ad7f0641407c78 (diff) | |
| parent | 54dbd2a8e974b900b18639e75f62702a4334ddc0 (diff) | |
| download | linux-0bb65e32495e6235a069b60e787140da99e9c122.tar.xz | |
Merge branch 'pci/p2pdma'
- Free struct p2p_pgmap, not a member within it, in the
pci_p2pdma_add_resource() error path (Sungho Kim)
- Make pci_has_p2pmem() static (Leon Romanovsky)
* pci/p2pdma:
PCI/P2PDMA: Reduce scope of pci_has_p2pmem()
PCI/P2PDMA: Fix incorrect pointer usage in devm_kfree() call
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pci-p2pdma.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/pci-p2pdma.h b/include/linux/pci-p2pdma.h index 075c20b161d9..951f81a38f3a 100644 --- a/include/linux/pci-p2pdma.h +++ b/include/linux/pci-p2pdma.h @@ -21,7 +21,6 @@ int pci_p2pdma_add_resource(struct pci_dev *pdev, int bar, size_t size, u64 offset); int pci_p2pdma_distance_many(struct pci_dev *provider, struct device **clients, int num_clients, bool verbose); -bool pci_has_p2pmem(struct pci_dev *pdev); struct pci_dev *pci_p2pmem_find_many(struct device **clients, int num_clients); void *pci_alloc_p2pmem(struct pci_dev *pdev, size_t size); void pci_free_p2pmem(struct pci_dev *pdev, void *addr, size_t size); @@ -45,10 +44,6 @@ static inline int pci_p2pdma_distance_many(struct pci_dev *provider, { return -1; } -static inline bool pci_has_p2pmem(struct pci_dev *pdev) -{ - return false; -} static inline struct pci_dev *pci_p2pmem_find_many(struct device **clients, int num_clients) { |
