Skip to content

Commit 057caac

Browse files
t-8chrostedt
authored andcommitted
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: 1211907 ("tracing: Generate undef symbols allowlist for simple_ring_buffer") Fixes: 58b4bd1 ("tracing: Adjust cmd_check_undefined to show unexpected undefined symbols") Reviewed-by: Nathan Chancellor <nathan@kernel.org> Tested-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent a0a2f42 commit 057caac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

kernel/trace/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ quiet_cmd_check_undefined = NM $<
154154
echo "Unexpected symbols in $<:" >&2; \
155155
echo "$$undefsyms" >&2; \
156156
false; \
157-
fi
157+
fi; \
158+
touch $@
158159

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

0 commit comments

Comments
 (0)