From: Jim Cromie Date: Fri, 20 Nov 2026 10:18:29 -0700 Subject: [PATCH v2 2/5] drm: Fix incorrect CFLAGS-y spelling inside Makefile MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261120-rd-mostly-v2-2-88056ede02a8@gmail.com> References: <20261120-rd-mostly-v2-0-88056ede02a8@gmail.com> In-Reply-To: <20261120-rd-mostly-v2-0-88056ede02a8@gmail.com> To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Jason Baron , Greg Kroah-Hartman , Andrew Morton Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jim Cromie X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795195125; l=1720; i=jim.cromie@gmail.com; s=20260203; h=from:subject:message-id; bh=hMEQq7DQ8Y+8kFzLF6fjt/pf2mXqFlMk3/m9BN7qO10=; b=YGPIoRWQF/LeWCs3OVwDqa81HNhlz/XS0XwldnHBv13k35ZLbsQgDT6QfQLMW38XDWpbrFC2z 5ZhLXANqOUqBT6jUzvsBuW3ahyszHwZ+lljb5fxgx8pzv9mXADnGmL9 X-Developer-Key: i=jim.cromie@gmail.com; a=ed25519; pk=C6E5ODlPQo7ZBynATXH9wg7K6HxP0pIXyf4s38Qw0XE= X-Endpoint-Received: by B4 Relay for jim.cromie@gmail.com/20260203 with auth_id=958 List-Id: B4 Relay Submissions DRM Makefile spelled CFLAGS-$(CONFIG_DRM_USE_DYNAMIC_DEBUG) incorrectly, which kbuild ignores. So -DDYNAMIC_DEBUG_MODULE was omitted, breaking DRM dynamic debug callsites when CONFIG_DYNAMIC_DEBUG_CORE=y without CONFIG_DYNAMIC_DEBUG. Replace CFLAGS- with ccflags-y, and also set subdir-ccflags-y so that -DDYNAMIC_DEBUG_MODULE propagates to DRM driver and helper subdirectories under drivers/gpu/drm/ (ccflags-y only applies to the current directory). NOTE: When CONFIG_DYNAMIC_DEBUG=y, -DDYNAMIC_DEBUG_MODULE is redundant because defined(CONFIG_DYNAMIC_DEBUG) already enables callsites. Passing it unconditionally under CONFIG_DRM_USE_DYNAMIC_DEBUG avoids extra Makefile conditionals and keeps the preprocessor environment consistent across DYNAMIC_DEBUG=y and DYNAMIC_DEBUG_CORE=y builds. Fixes: 84ec67288c10 ("drm_print: wrap drm_*_dbg in dyndbg descriptor factory macro") Signed-off-by: Jim Cromie --- drivers/gpu/drm/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile index 2c6bc093a923..4a93c09f08d9 100644 --- a/drivers/gpu/drm/Makefile +++ b/drivers/gpu/drm/Makefile @@ -3,7 +3,8 @@ # Makefile for the drm device driver. This driver provides support for the # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. -CFLAGS-$(CONFIG_DRM_USE_DYNAMIC_DEBUG) += -DDYNAMIC_DEBUG_MODULE +ccflags-$(CONFIG_DRM_USE_DYNAMIC_DEBUG) += -DDYNAMIC_DEBUG_MODULE +subdir-ccflags-$(CONFIG_DRM_USE_DYNAMIC_DEBUG) += -DDYNAMIC_DEBUG_MODULE # Unconditionally enable W=1 warnings locally # --- begin copy-paste W=1 warnings from scripts/Makefile.warn -- 2.56.1