diff options
| author | 2026-10-19 22:53:44 +0200 | |
|---|---|---|
| committer | 2026-10-19 20:07:13 -0400 | |
| commit | f86641ffea95ee6f62d829929a69be7ab1496ce5 (patch) | |
| tree | b9199321db11a4066dcd03fc129bb6e1866a842c /scripts/Makefile.thinlto | |
| parent | tracing/histograms: Verify event_call identity when updating synth_event refcount (diff) | |
tracing/osnoise: Add __printf attribute to osnoise_print()
Building kernel/trace/trace_osnoise.o with W=1 triggers the following
compiler warning:
kernel/trace/trace_osnoise.c:96:17: warning: function 'osnoise_print'
might be a candidate for 'gnu_printf' format attribute
[-Wsuggest-attribute=format]
osnoise_print() forwards its format string and va_list arguments to
trace_array_vprintk(), which is annotated with __printf(3, 0).
Add the __printf(1, 2) attribute to osnoise_print() to silence the W=1
warning and enable compile-time format string checking for its callers.
Link: https://patch.msgid.link/20261019205344.190022-1-adriangarciacasado42@gmail.com
Signed-off-by: Adrián García Casado <adriangarciacasado42@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
