Skip to content

Conversation

@kernel-patches-daemon-bpf-rc
Copy link

Pull request for series with
subject: riscv: bpf: Fix uninitialized symbol 'retval_off'
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=993317

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: bf7a6a6
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=993317
version: 1

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: b5bbbb7
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=993317
version: 1

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: 2693227
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=993317
version: 1

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: 78e097f
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=993317
version: 1

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: 21aeabb
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=993317
version: 1

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]>
@kernel-patches-daemon-bpf-rc
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=993317 expired. Closing PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant