with DRM_USE_DYNAMIC_DEBUG=y now un-BROKEN, accel/amdxdna gets macro breakage, with configs like:
CONFIG_DRM_USE_DYNAMIC_DEBUG=y # CONFIG_DYNAMIC_DEBUG is not set CONFIG_DYNAMIC_DEBUG_CORE=y DRM_USE_DYNAMIC_DEBUG is possible with just DYNAMIC_DEBUG_CORE, but for this, dynamic_debug.h also requires -DDYNAMIC_DEBUG_MODULE before the user gets the "real" macros, else its just the stubs. drm/Makefile already adds -DDYNAMIC_DEBUG_MODULE to cflags for all the drm/* drivers, do the same here. NB: With the CONFIG_DRM_ACCEL items, accels are DRM modules. Signed-off-by: Jim Cromie <[email protected]> --- drivers/accel/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/accel/Makefile b/drivers/accel/Makefile index 1d3a7251b950..20656e6d13a0 100644 --- a/drivers/accel/Makefile +++ b/drivers/accel/Makefile @@ -1,5 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only +subdir-cflags-$(CONFIG_DRM_USE_DYNAMIC_DEBUG) += -DDYNAMIC_DEBUG_MODULE + obj-$(CONFIG_DRM_ACCEL_AMDXDNA) += amdxdna/ obj-$(CONFIG_DRM_ACCEL_ARM_ETHOSU) += ethosu/ obj-$(CONFIG_DRM_ACCEL_HABANALABS) += habanalabs/ -- 2.53.0
