Commit 057caace authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Steven Rostedt
Browse files

tracing: Create output file from cmd_check_undefined

As the output file is currently never created, the check will run every
time, even if the inputs have not changed.

Create an empty output file which allows make to skip the execution when
it is not necessary.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Vincent Donnefort <vdonnefort@google.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20260520-tracing-ringbuffer-check-v1-1-d979cfab1338@weissschuh.net


Fixes: 1211907a ("tracing: Generate undef symbols allowlist for simple_ring_buffer")
Fixes: 58b4bd18 ("tracing: Adjust cmd_check_undefined to show unexpected undefined symbols")
Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
Tested-by: default avatarNathan Chancellor <nathan@kernel.org>
Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent a0a2f42a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -154,7 +154,8 @@ quiet_cmd_check_undefined = NM $<
              echo "Unexpected symbols in $<:" >&2; \
              echo "$$undefsyms" >&2; \
              false; \
          fi
          fi; \
          touch $@

$(obj)/%.o.checked: $(obj)/%.o $(obj)/undefsyms_base.o FORCE
	$(call if_changed,check_undefined)