-
Notifications
You must be signed in to change notification settings - Fork 148
LoongArch: BPF: Fix uninitialized symbol 'retval_off' #9519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: bpf-next_base
Are you sure you want to change the base?
Conversation
Upstream branch: bf7a6a6 |
1a79214
to
d47111e
Compare
Upstream branch: b5bbbb7 |
28fa952
to
de428d1
Compare
d47111e
to
d07b74e
Compare
Upstream branch: 2693227 |
de428d1
to
0931528
Compare
d07b74e
to
5057c80
Compare
Upstream branch: 78e097f |
0931528
to
1565764
Compare
5057c80
to
568f554
Compare
Upstream branch: 21aeabb |
1565764
to
c550c6f
Compare
568f554
to
df02f89
Compare
Upstream branch: 0780f54 |
c550c6f
to
bebfc04
Compare
df02f89
to
db928be
Compare
Upstream branch: d47cc4d |
bebfc04
to
bea6883
Compare
db928be
to
989f8f6
Compare
Upstream branch: 4223bf8 |
In __arch_prepare_bpf_trampoline(), retval_off is meaningful only when save_ret is not 0, so the current logic is correct. But it may cause a build warning: arch/loongarch/net/bpf_jit.c:1547 __arch_prepare_bpf_trampoline() error: uninitialized symbol 'retval_off'. So initialize retval_off unconditionally to fix it. Fixes: f9b6b41 ("LoongArch: BPF: Add basic bpf trampoline support") Closes: https://lore.kernel.org/r/[email protected]/ Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
bea6883
to
2e8a756
Compare
Pull request for series with
subject: LoongArch: BPF: Fix uninitialized symbol 'retval_off'
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=992991