[PATCH] x86/intr.c: fix build if NO_PCI_MSI_MSIX is defined

Paolo Pisati <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
...
/home/flag/bsd/netbsd/src/sys/arch/x86/x86/intr.c: In function 'intr_create_intrid':
/home/flag/bsd/netbsd/src/sys/arch/x86/x86/intr.c:315:34: error: 'MSI_INT_DEV_MASK' undeclared (first use in this function)
  315 |   pih = __SHIFTIN((uint64_t)dev, MSI_INT_DEV_MASK)
      |                                  ^~~~~~~~~~~~~~~~
...

Signed-off-by: Paolo Pisati <[email protected]>
---
 sys/arch/x86/x86/intr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/arch/x86/x86/intr.c b/sys/arch/x86/x86/intr.c
index a94ea7f17707..beb3dab5673b 100644
--- a/sys/arch/x86/x86/intr.c
+++ b/sys/arch/x86/x86/intr.c
@@ -138,6 +138,7 @@ __KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.167 2024/03/05 20:58:05 andvar Exp $");
 #include "opt_intrdebug.h"
 #include "opt_multiprocessor.h"
 #include "opt_acpi.h"
+#include "opt_pci.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.