* [PATCH] PCI/ATS: Add missing pci_prepare_ats() stub
@ 2024-08-14 22:20 Jason Gunthorpe
2024-08-30 12:30 ` Joerg Roedel
0 siblings, 1 reply; 2+ messages in thread
From: Jason Gunthorpe @ 2024-08-14 22:20 UTC (permalink / raw)
To: linux-pci, Joerg Roedel
Cc: Lu Baolu, Bjorn Helgaas, Kevin Tian, kernel test robot, patches
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
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] PCI/ATS: Add missing pci_prepare_ats() stub
2024-08-14 22:20 [PATCH] PCI/ATS: Add missing pci_prepare_ats() stub Jason Gunthorpe
@ 2024-08-30 12:30 ` Joerg Roedel
0 siblings, 0 replies; 2+ messages in thread
From: Joerg Roedel @ 2024-08-30 12:30 UTC (permalink / raw)
To: Jason Gunthorpe
Cc: linux-pci, Lu Baolu, Bjorn Helgaas, Kevin Tian, kernel test robot,
patches
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.
--
Jörg Rödel
jroedel@suse.de
SUSE Software Solutions Germany GmbH
Frankenstraße 146
90461 Nürnberg
Germany
https://www.suse.com/
Geschäftsführer: Ivo Totev, Andrew McDonald, Werner Knoblich
(HRB 36809, AG Nürnberg)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-30 12:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-14 22:20 [PATCH] PCI/ATS: Add missing pci_prepare_ats() stub Jason Gunthorpe
2024-08-30 12:30 ` Joerg Roedel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox