summaryrefslogtreecommitdiff
path: root/tools/memory-model
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2025-03-10 16:45:32 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-10 14:44:31 +0200
commitc9a5d7059792275d3ada279a31eec7462a978646 (patch)
tree039a39eae356c5233a0f38abe9754ae034558abf /tools/memory-model
parent8db9d4258f2be5a7df77def519f19cb14b5ff612 (diff)
downloadlinux-c9a5d7059792275d3ada279a31eec7462a978646.tar.gz
linux-c9a5d7059792275d3ada279a31eec7462a978646.tar.bz2
linux-c9a5d7059792275d3ada279a31eec7462a978646.zip
perf units: Fix insufficient array space
[ Upstream commit cf67629f7f637fb988228abdb3aae46d0c1748fe ] No need to specify the array size, let the compiler figure that out. This addresses this compiler warning that was noticed while build testing on fedora rawhide: 31 15.81 fedora:rawhide : FAIL gcc version 15.0.1 20250225 (Red Hat 15.0.1-0) (GCC) util/units.c: In function 'unit_number__scnprintf': util/units.c:67:24: error: initializer-string for array of 'char' is too long [-Werror=unterminated-string-initialization] 67 | char unit[4] = "BKMG"; | ^~~~~~ cc1: all warnings being treated as errors Fixes: 9808143ba2e54818 ("perf tools: Add unit_number__scnprintf function") Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Link: https://lore.kernel.org/r/20250310194534.265487-3-acme@kernel.org Signed-off-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/memory-model')
0 files changed, 0 insertions, 0 deletions