arm64: coresight: fix the build without FDT

coresight_cpu_debug only has an FDT attachment, so let's not build it
for kernels without FDT.

coresight.h includes sys/malloc.h via header pollution
dev/ofw/openfirm.h; include it directly in case we're building without
FDT.

Reviewed by:	andrew, manu
Differential Revision:	https://reviews.freebsd.org/D36789
This commit is contained in:
Kyle Evans 2022-09-29 14:33:33 -05:00
parent 4a4ad02da3
commit b4c2a5b689
2 changed files with 2 additions and 1 deletions

View file

@ -37,6 +37,7 @@
#include "opt_platform.h"
#include <sys/bus.h>
#include <sys/malloc.h>
#ifdef FDT
#include <dev/ofw/openfirm.h>

View file

@ -88,7 +88,7 @@ arm64/coresight/coresight_acpi.c optional acpi
arm64/coresight/coresight_fdt.c optional fdt
arm64/coresight/coresight_if.m standard
arm64/coresight/coresight_cmd.c standard
arm64/coresight/coresight_cpu_debug.c standard
arm64/coresight/coresight_cpu_debug.c optional fdt
arm64/coresight/coresight_etm4x.c standard
arm64/coresight/coresight_etm4x_acpi.c optional acpi
arm64/coresight/coresight_etm4x_fdt.c optional fdt