Commit 309f957
riscv: bpf: Fix uninitialized symbol 'retval_off'
In __arch_prepare_bpf_trampoline(), retval_off is only meaningful when
save_ret is true, so the current logic is correct. However, in the
original logic, retval_off is only initialized under certain
conditions, which may cause a build warning.
So initialize retval_off unconditionally to fix it.
Signed-off-by: Chenghao Duan <[email protected]>1 parent e571275 commit 309f957
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1028 | 1028 | | |
1029 | 1029 | | |
1030 | 1030 | | |
1031 | | - | |
| 1031 | + | |
1032 | 1032 | | |
1033 | | - | |
1034 | | - | |
| 1033 | + | |
1035 | 1034 | | |
1036 | 1035 | | |
1037 | 1036 | | |
| |||
0 commit comments