diff options
| author | Andy Shevchenko <[email protected]> | 2025-03-21 14:40:49 +0000 |
|---|---|---|
| committer | Petr Mladek <[email protected]> | 2025-03-28 12:37:11 +0000 |
| commit | 196a062641fe68d9bfe0ad36b6cd7628c99ad22c (patch) | |
| tree | 4807fa0775d48457bdf8a18a5d8e25aeff41807c /drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c | |
| parent | seq_file: Mark binary printing functions with __printf() attribute (diff) | |
| download | kernel-196a062641fe68d9bfe0ad36b6cd7628c99ad22c.tar.gz kernel-196a062641fe68d9bfe0ad36b6cd7628c99ad22c.zip | |
tracing: Mark binary printing functions with __printf() attribute
Binary printing functions are using printf() type of format, and compiler
is not happy about them as is:
kernel/trace/trace.c:3292:9: error: function ‘trace_vbprintk’ might be a candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]
kernel/trace/trace_seq.c:182:9: error: function ‘trace_seq_bprintf’ might be a candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]
Fix the compilation errors by adding __printf() attribute.
While at it, move existing __printf() attributes from the implementations
to the declarations. IT also fixes incorrect attribute parameters that are
used for trace_array_printk().
Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Petr Mladek <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c')
0 files changed, 0 insertions, 0 deletions
