diff options
author | Charlie Jenkins <charlie@rivosinc.com> | 2025-02-25 05:42:21 +0300 |
---|---|---|
committer | Alexandre Ghiti <alexghiti@rivosinc.com> | 2025-03-18 16:06:05 +0300 |
commit | bba547810c66434475d8800b3411c59ef71eafe9 (patch) | |
tree | 875d248daa3066705644051b4b4fd5eb2c2c95dc /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 72770690e02c082efbbbd78d768028cf8dd18b9c (diff) | |
download | linux-bba547810c66434475d8800b3411c59ef71eafe9.tar.xz |
riscv: tracing: Fix __write_overflow_field in ftrace_partial_regs()
The size of ®s->a0 is unknown, causing the error:
../include/linux/fortify-string.h:571:25: warning: call to
'__write_overflow_field' declared with attribute warning: detected write
beyond size of field (1st parameter); maybe use struct_group()?
[-Wattribute-warning]
Fix this by wrapping the required registers in pt_regs with
struct_group() and reference the group when doing the offending
memcpy().
Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Tested-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250224-fix_ftrace_partial_regs-v1-1-54b906417e86@rivosinc.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions