From cdb6aa7e47cd9509bd2e34c25e333c3858fc5af8 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 31 Aug 2018 18:26:37 +0000 Subject: [PATCH] Fix build of x86 UP kernels after dynamic IRQ changes in r338360. Reported by: Ian FREISLICH Approved by: re (gjb) MFC after: 2 weeks --- sys/x86/x86/intr_machdep.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/x86/x86/intr_machdep.c b/sys/x86/x86/intr_machdep.c index a879d616d17a..9f93ec96f837 100644 --- a/sys/x86/x86/intr_machdep.c +++ b/sys/x86/x86/intr_machdep.c @@ -173,8 +173,10 @@ intr_init_sources(void *arg) interrupt_sources = mallocarray(num_io_irqs, sizeof(*interrupt_sources), M_INTR, M_WAITOK | M_ZERO); +#ifdef SMP interrupt_sorted = mallocarray(num_io_irqs, sizeof(*interrupt_sorted), M_INTR, M_WAITOK | M_ZERO); +#endif /* * - 1 ??? dummy counter.