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@xxxxxxxxx> Closes: https://lore.kernel.org/oe-kbuild-all/202408150626.4kndgpL3-lkp@xxxxxxxxx/ Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx> --- 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 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; } base-commit: 0fb4d2ab67703caed2b909d4b4f95d3afc56baf3 -- 2.46.0