Re: [PATCH v9 4/4] tracing: Add warnings for unused tracepoints for modules
From: Nicolas Schier <nsc@kernel.org>
Date: 2025-10-17 20:46:31
Also in:
linux-kbuild, lkml
From: Nicolas Schier <nsc@kernel.org>
Date: 2025-10-17 20:46:31
Also in:
linux-kbuild, lkml
On Wed, Oct 15, 2025 at 04:19:28PM -0700, Nathan Chancellor wrote:
Hi Steve, On Wed, Oct 15, 2025 at 04:38:46PM -0400, Steven Rostedt wrote:quoted
diff --git a/scripts/Makefile.modfinal b/scripts/Makefile.modfinal index 542ba462ed3e..6f909979af91 100644 --- a/scripts/Makefile.modfinal +++ b/scripts/Makefile.modfinal@@ -28,6 +28,12 @@ ccflags-remove-y := $(CC_FLAGS_CFI) .module-common.o: $(srctree)/scripts/module-common.c FORCE $(call if_changed_rule,cc_o_c) +ifneq ($(WARN_ON_UNUSED_TRACEPOINTS),"")Drop the "", nowhere else in Kbuild appears to do this.quoted
+cmd_check_tracepoint = ${objtree}/scripts/tracepoint-update $<;Please use $(objtree) to be consistent with the rest of Kbuild.quoted
+else +cmd_check_tracepoint = +endif
The else part is not required, cp. definition of e.g. cmd_checkdoc in scripts/Makefile.build. Kind regards Nicolas