aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorSun Haiyong <[email protected]>2024-01-06 09:41:29 +0000
committerArnaldo Carvalho de Melo <[email protected]>2024-01-26 15:56:01 +0000
commit7bbe8f0071dfa23fcc3b2864ec9f3b1aeb7ab2df (patch)
tree16d741bfc330c30c137efa9c17a52ce9b0978519 /scripts/generate_rust_target.rs
parentperf top: Remove needless malloc(0) call that triggers -Walloc-size (diff)
downloadkernel-7bbe8f0071dfa23fcc3b2864ec9f3b1aeb7ab2df.tar.gz
kernel-7bbe8f0071dfa23fcc3b2864ec9f3b1aeb7ab2df.zip
perf tools: Fix calloc() arguments to address error introduced in gcc-14
the definition of calloc is as follows: void *calloc(size_t nmemb, size_t size); number of members is in the first parameter and the size is in the second parameter. Fix error messages on gcc 14 20240102: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] Committer notes: I noticed this on fedora 40 and rawhide. Signed-off-by: Sun Haiyong <[email protected]> Acked-by: Namhyung Kim <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Yanteng Si <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions