summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2018-04-04 08:39:59 +0000
committerhselasky <hselasky@FreeBSD.org>2018-04-04 08:39:59 +0000
commitbaa6e92f044ee54a4bb62bd05b73878ea021e1c8 (patch)
tree9e91a1a1f7eb24241ed16758a2d8ea2c05055339 /sys/compat
parentab31146aad46cfdac187522167c0f7126b527e77 (diff)
downloadFreeBSD-src-baa6e92f044ee54a4bb62bd05b73878ea021e1c8.zip
FreeBSD-src-baa6e92f044ee54a4bb62bd05b73878ea021e1c8.tar.gz
MFC r331694:
Swap two instances of regular macros with function macros in the LinuxKPI, to narrow down the substitution scope. Sponsored by: Mellanox Technologies
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/pci.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
index 9b2c004..d7ef782 100644
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -538,7 +538,9 @@ struct msix_entry {
* NB: define added to prevent this definition of pci_enable_msix from
* clashing with the native FreeBSD version.
*/
-#define pci_enable_msix linux_pci_enable_msix
+#define pci_enable_msix(...) \
+ linux_pci_enable_msix(__VA_ARGS__)
+
static inline int
pci_enable_msix(struct pci_dev *pdev, struct msix_entry *entries, int nreq)
{
@@ -572,7 +574,9 @@ pci_enable_msix(struct pci_dev *pdev, struct msix_entry *entries, int nreq)
return (0);
}
-#define pci_enable_msix_range linux_pci_enable_msix_range
+#define pci_enable_msix_range(...) \
+ linux_pci_enable_msix_range(__VA_ARGS__)
+
static inline int
pci_enable_msix_range(struct pci_dev *dev, struct msix_entry *entries,
int minvec, int maxvec)
OpenPOWER on IntegriCloud