summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2020-03-20 13:15:49 +0000
committermpi <mpi@openbsd.org>2020-03-20 13:15:49 +0000
commit872328e06a95489365cfb67e35e4157400559ec1 (patch)
tree22182ac21b5a0509bdaff58e3bfe9f0eab52d344 /sys
parentselect_word_end needs to forward no_reset flag or select-word selects (diff)
downloadwireguard-openbsd-872328e06a95489365cfb67e35e4157400559ec1.tar.xz
wireguard-openbsd-872328e06a95489365cfb67e35e4157400559ec1.zip
Declare pci_intr_map_msix() as static inline instead of using a define.
This makes compiler no longer complain about unused variables. ok kettenis@, patrick@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/pci/pci_machdep.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/i386/pci/pci_machdep.h b/sys/arch/i386/pci/pci_machdep.h
index 8cf0164ed94..3d2f214262a 100644
--- a/sys/arch/i386/pci/pci_machdep.h
+++ b/sys/arch/i386/pci/pci_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_machdep.h,v 1.30 2018/08/19 08:23:47 kettenis Exp $ */
+/* $OpenBSD: pci_machdep.h,v 1.31 2020/03/20 13:15:49 mpi Exp $ */
/* $NetBSD: pci_machdep.h,v 1.7 1997/06/06 23:29:18 thorpej Exp $ */
/*
@@ -96,7 +96,6 @@ void pci_conf_write(pci_chipset_tag_t, pcitag_t, int,
struct pci_attach_args;
int pci_intr_map_msi(struct pci_attach_args *, pci_intr_handle_t *);
int pci_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
-#define pci_intr_map_msix(p, vec, ihp) (-1)
#define pci_intr_line(c, ih) ((ih).line)
const char *pci_intr_string(pci_chipset_tag_t, pci_intr_handle_t);
void *pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t,
@@ -114,6 +113,12 @@ void pci_set_powerstate_md(pci_chipset_tag_t, pcitag_t, int, int);
void pci_mcfg_init(bus_space_tag_t, bus_addr_t, int, int, int);
pci_chipset_tag_t pci_lookup_segment(int);
+static inline int
+pci_intr_map_msix(struct pci_attach_args *pa, int vec, pci_intr_handle_t *ihp)
+{
+ return -1;
+}
+
/*
* Section 6.2.4, `Miscellaneous Functions' of the PIC Specification,
* says that 255 means `unknown' or `no connection' to the interrupt