intr_machdep.c:176:2: error: use of undeclared identifier 'interrupt_sorted'
Ian FREISLICH
ian.freislich at capeaugusta.com
Wed Aug 29 23:42:17 UTC 2018
I moved the #ifdef down one line and its compiling.
Ian
--
Ian Freislich
On 08/29/2018 07:40 PM, John Baldwin wrote:
> On 8/29/18 4:20 PM, Ian FREISLICH wrote:
>> Hi
>>
>> I see the definition of interrupt_sorted is #ifdefed out by #ifdef SMP
>> at line 84. My system is UP <gasp> so I'm not compiling an SMP kernel.
>>
>> /usr/src/sys/x86/x86/intr_machdep.c:176:2: error: use of undeclared
>> identifier 'interrupt_sorted'; did you mean 'interrupt_sources'?
>> interrupt_sorted = mallocarray(num_io_irqs,
>> sizeof(*interrupt_sorted),
>> ^~~~~~~~~~~~~~~~
>> interrupt_sources
>> /usr/src/sys/x86/x86/intr_machdep.c:83:24: note: 'interrupt_sources'
>> declared here
>> static struct intsrc **interrupt_sources;
>> ^
>> /usr/src/sys/x86/x86/intr_machdep.c:176:54: error: use of undeclared
>> identifier 'interrupt_sorted'; did you mean 'interrupt_sources'?
>> interrupt_sorted = mallocarray(num_io_irqs,
>> sizeof(*interrupt_sorted),
> Probably just needs #ifdef SMP around the mallocarray(). I'll test locallyon a UP kernel config.
>
--
More information about the freebsd-current
mailing list