-
Notifications
You must be signed in to change notification settings - Fork 5
bpftool: Fix -Wuninitialized-const-pointer warnings with clang >= 21 #5978
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
bpftool: Fix -Wuninitialized-const-pointer warnings with clang >= 21 #5978
Conversation
|
Upstream branch: b13448d |
2b3c471 to
2211108
Compare
|
Upstream branch: 180a46b |
34ec1f5 to
ac8f9c4
Compare
2211108 to
acca942
Compare
|
Upstream branch: 6ff4a0f |
ac8f9c4 to
3cc1807
Compare
acca942 to
0821404
Compare
|
Upstream branch: 3547a61 |
3cc1807 to
f6c1f3f
Compare
0821404 to
028d6d4
Compare
|
Upstream branch: 8cd189e |
f6c1f3f to
03e431c
Compare
028d6d4 to
0c300ac
Compare
|
Upstream branch: 815276d |
This fixes the build with -Werror -Wall.
btf_dumper.c:71:31: error: variable 'finfo' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer]
71 | info.func_info = ptr_to_u64(&finfo);
| ^~~~~
prog.c:2294:31: error: variable 'func_info' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer]
2294 | info.func_info = ptr_to_u64(&func_info);
|
Signed-off-by: Tom Stellard <[email protected]>
03e431c to
7d4c3e2
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1003393 expired. Closing PR. |
Pull request for series with
subject: bpftool: Fix -Wuninitialized-const-pointer warnings with clang >= 21
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1003393