diff mbox series

PCI/ATS: Add missing pci_prepare_ats() stub

Message ID 0-v1-3ff295fa1528+d7-pci_prepare_ats_proto_jgg@nvidia.com (mailing list archive)
State Handled Elsewhere
Delegated to: Bjorn Helgaas
Headers show
Series PCI/ATS: Add missing pci_prepare_ats() stub | expand

Commit Message

Jason Gunthorpe Aug. 14, 2024, 10:20 p.m. UTC
build bots report that CONFIG_PCI_ATS=n compilation fails, the stub was
missed, add it back.

Fixes: 2665d975db35 ("iommu: Allow ATS to work on VFs when the PF uses IDENTITY")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202408150626.4kndgpL3-lkp@intel.com/
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
---
 include/linux/pci-ats.h | 2 ++
 1 file changed, 2 insertions(+)

Surprised 0-day didn't catch this before it made it to linux-next, but here it
is..

Joerg if you can squash it that would be great.

Thanks,
Jason


base-commit: 0fb4d2ab67703caed2b909d4b4f95d3afc56baf3

Comments

Joerg Roedel Aug. 30, 2024, 12:30 p.m. UTC | #1
On Wed, Aug 14, 2024 at 07:20:52PM -0300, Jason Gunthorpe wrote:
> Surprised 0-day didn't catch this before it made it to linux-next, but here it
> is..
> 
> Joerg if you can squash it that would be great.

Done, thanks.
diff mbox series

Patch

diff --git a/include/linux/pci-ats.h b/include/linux/pci-ats.h
index d98929c86991be..0e8b74e63767a6 100644
--- a/include/linux/pci-ats.h
+++ b/include/linux/pci-ats.h
@@ -17,6 +17,8 @@  static inline bool pci_ats_supported(struct pci_dev *d)
 { return false; }
 static inline int pci_enable_ats(struct pci_dev *d, int ps)
 { return -ENODEV; }
+static inline int pci_prepare_ats(struct pci_dev *dev, int ps)
+{ return -ENODEV; }
 static inline void pci_disable_ats(struct pci_dev *d) { }
 static inline int pci_ats_queue_depth(struct pci_dev *d)
 { return -ENODEV; }