Re: acpica/acpi_wakeup.c:115:24: error: use of undeclared identifier 'suspended_cpus'
Date: Sat, 26 Jul 2025 20:48:38 UTC
On Sat, Jul 26, 2025 at 02:56:14PM -0400, Ian FREISLICH wrote:
> Hi
>
> I get this error compiling for UP but not SMP.
The SMP option is mandatory on amd64 after commit
fa02551dc8a029a74eb374c418dbb5401d53c2db. There is a static assertion
in machdep.c that is supposed to report this, but it seems we should
handle it a different way, perhaps in the kernel makefiles.
> /usr/src/sys/amd64/acpica/acpi_wakeup.c:115:24: error: use of undeclared
> identifier 'suspended_cpus'
> 115 | if (!CPU_ISSET(cpu, &suspended_cpus))
> | ^
> /usr/src/sys/amd64/acpica/acpi_wakeup.c:199:32: error: call to undeclared
> function 'suspend_cpus'; ISO C99 and later do not support implicit function
> declarations [-Werror,-Wimplicit-function-declaration]
> 199 | if (!CPU_EMPTY(&suspcpus) && suspend_cpus(suspcpus)
> == 0) {
> | ^
> /usr/src/sys/amd64/acpica/acpi_wakeup.c:272:4: error: call to undeclared
> function 'resume_cpus'; ISO C99 and later do not support implicit function
> declarations [-Werror,-Wimplicit-function-declaration]
> 272 | resume_cpus(suspcpus);
> | ^
> 3 errors generated.
> *** Error code 1
>
> Stop.
>
>
> Ian
>