tracing: Use guard() rather than scoped_guard()
[drm/drm-misc.git] / arch / s390 / pci / pci_iov.h
blobe3fa4e77fc867adbf968ede1f22807ffac6278da
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright IBM Corp. 2020
5 * Author(s):
6 * Niklas Schnelle <schnelle@linux.ibm.com>
8 */
10 #ifndef __S390_PCI_IOV_H
11 #define __S390_PCI_IOV_H
13 #include <linux/pci.h>
15 #ifdef CONFIG_PCI_IOV
16 void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn);
18 void zpci_iov_map_resources(struct pci_dev *pdev);
20 int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn);
22 #else /* CONFIG_PCI_IOV */
23 static inline void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn) {}
25 static inline void zpci_iov_map_resources(struct pci_dev *pdev) {}
27 static inline int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn)
29 return 0;
31 #endif /* CONFIG_PCI_IOV */
32 #endif /* __S390_PCI_IOV_h */