The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=43c2e0f11c8fc0669742593bdd40797dff6cdb2c
commit 43c2e0f11c8fc0669742593bdd40797dff6cdb2c Author: Olivier Certner <[email protected]> AuthorDate: 2026-12-03 21:28:14 +0000 Commit: Olivier Certner <[email protected]> CommitDate: 2026-12-03 21:37:56 +0000 acpi: acpivar.h: Include 'accommon.h' on ACPI_DEBUG_OUTPUT ACPICA's public interface ('acpi.h') exports debug macros like ACPI_FUNCTION_TRACE(), return_VOID, return_*(), and a lot of our implementation files use them. Unfortunately, on ACPI_DEBUG_OUTPUT, they expand to calls to functions (such as AcpiUtTrace(), AcpiUtExit(), etc.) that are declared only in 'acutils.h', which is to be included via 'accommon.h', the header to use for ACPICA internals, breaking the compilation if not included. Include 'accommon.h' from <dev/acpica/acpivar.h> on ACPI_DEBUG_OUTPUT. Reported by: llm-postcr Fixes: d6fd89254a91 ("acpi: acpivar.h: Include ACPICA's acpi.h, remove the latter in consumers") Sponsored by: The FreeBSD Foundation --- sys/dev/acpica/acpivar.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h index dffa1cab6043..46c18c663f52 100644 --- a/sys/dev/acpica/acpivar.h +++ b/sys/dev/acpica/acpivar.h @@ -49,6 +49,14 @@ #include <machine/resource.h> #include <contrib/dev/acpica/include/acpi.h> +#ifdef ACPI_DEBUG_OUTPUT +/* + * A lot of our implementation files use the internal ACPICA tracing facility + * for convenience (ACPI_FUNCTION_TRACE(), return_VOID, return_*(), etc.). We + * may want to fix that at some point to avoid too much pollution. + */ +#include <contrib/dev/acpica/include/accommon.h> +#endif #include "acpi_if.h" #include "bus_if.h"
