diff options
author | Matthew Sakai <msakai@redhat.com> | 2025-01-30 02:26:05 +0300 |
---|---|---|
committer | Mikulas Patocka <mpatocka@redhat.com> | 2025-02-03 16:10:37 +0300 |
commit | 3280c9313c9adce01550cc9f00edfb1dc7c744da (patch) | |
tree | 6cc084d819594b2a8671b16bb8c82c3b3e6f660f /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 8892606045fda29be7adfc5fba21bb1dfe079b93 (diff) | |
download | linux-3280c9313c9adce01550cc9f00edfb1dc7c744da.tar.xz |
dm vdo: use a short static string for thread name prefix
Also remove MODULE_NAME and a BUG_ON check, both unneeded.
This fixes a warning about string truncation in snprintf that
will never happen in practice:
drivers/md/dm-vdo/vdo.c: In function ‘vdo_make’:
drivers/md/dm-vdo/vdo.c:564:5: error: ‘%s’ directive output may be truncated writing up to 55 bytes into a region of size 16 [-Werror=format-truncation=]
"%s%u", MODULE_NAME, instance);
^~
drivers/md/dm-vdo/vdo.c:563:2: note: ‘snprintf’ output between 2 and 66 bytes into a destination of size 16
snprintf(vdo->thread_name_prefix, sizeof(vdo->thread_name_prefix),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"%s%u", MODULE_NAME, instance);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Reported-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions