diff options
author | 2025-03-21 16:40:50 +0200 | |
---|---|---|
committer | 2025-03-28 13:37:11 +0100 | |
commit | 7bf819aa992faee980610e9021aec0c38aac53be (patch) | |
tree | b79be465308cf33a8407977b8d80a7b083a0cc3b /scripts/lib/kdoc/kdoc_re.py | |
parent | tracing: Mark binary printing functions with __printf() attribute (diff) | |
download | wireguard-linux-7bf819aa992faee980610e9021aec0c38aac53be.tar.xz wireguard-linux-7bf819aa992faee980610e9021aec0c38aac53be.zip |
vsnprintf: Mark binary printing functions with __printf() attribute
Binary printf() functions are using printf() type of format, and compiler
is not happy about them as is:
lib/vsprintf.c:3130:47: error: function ‘vbin_printf’ might be a candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]
lib/vsprintf.c:3298:33: error: function ‘bstr_printf’ might be a candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]
Fix the compilation errors by adding __printf() attribute.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Kees Cook <kees@kernel.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20250321144822.324050-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions