diff options
author | 2025-02-24 18:42:21 -0800 | |
---|---|---|
committer | 2025-03-18 13:06:05 +0000 | |
commit | bba547810c66434475d8800b3411c59ef71eafe9 (patch) | |
tree | 875d248daa3066705644051b4b4fd5eb2c2c95dc /net/lapb/lapb_timer.c | |
parent | riscv: Remove duplicate CLINT_TIMER selections (diff) | |
download | wireguard-linux-bba547810c66434475d8800b3411c59ef71eafe9.tar.xz wireguard-linux-bba547810c66434475d8800b3411c59ef71eafe9.zip |
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 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions