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:
@@ -37,6 +37,7 @@
|
||||
#include "opt_platform.h"
|
||||
|
||||
#include <sys/bus.h>
|
||||
#include <sys/malloc.h>
|
||||
|
||||
#ifdef FDT
|
||||
#include <dev/ofw/openfirm.h>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user