summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJohn Garry <john.g.garry@oracle.com>2024-11-12 19:10:18 +0300
committerSong Liu <song@kernel.org>2024-11-13 02:11:09 +0300
commitea90d270349d51086d0dddc55821a782040d68f5 (patch)
treeb1d1ce2b2cdb54bf7091ed056361e885cb83e74f /tools/perf/scripts/python/exported-sql-viewer.py
parent0b4ace9da58df62c1763635ab10ae1bc8ed8182a (diff)
downloadlinux-ea90d270349d51086d0dddc55821a782040d68f5.tar.xz
md/raid5: Increase r5conf.cache_name size
For compiling with W=1, the following warning can be seen: drivers/md/raid5.c: In function ‘setup_conf’: drivers/md/raid5.c:2423:12: error: ‘%s’ directive output may be truncated writing up to 31 bytes into a region of size between 16 and 26 [-Werror=format-truncation=] "raid%d-%s", conf->level, mdname(conf->mddev)); ^~ drivers/md/raid5.c:2422:3: note: ‘snprintf’ output between 7 and 48 bytes into a destination of size 32 snprintf(conf->cache_name[0], namelen, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "raid%d-%s", conf->level, mdname(conf->mddev)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Increase the array size to avoid this warning. Signed-off-by: John Garry <john.g.garry@oracle.com> Link: https://lore.kernel.org/r/20241112161019.4154616-2-john.g.garry@oracle.com Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions