-
Notifications
You must be signed in to change notification settings - Fork 5
bpftool: Fix -Wuninitialized-const-pointer warnings with clang >= 21 v2 #5979
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 v2 #5979
Conversation
|
Upstream branch: 6ff4a0f |
|
Upstream branch: 6ff4a0f |
ad7ab23 to
78ba8ac
Compare
acca942 to
0821404
Compare
|
Upstream branch: 3547a61 |
78ba8ac to
4c0b474
Compare
0821404 to
028d6d4
Compare
|
Upstream branch: 8cd189e |
4c0b474 to
2f2978c
Compare
028d6d4 to
0c300ac
Compare
|
Upstream branch: 815276d |
2f2978c to
9b0890c
Compare
0c300ac to
b38c040
Compare
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);
|
v2:
- Initialize instead of using memset.
Signed-off-by: Tom Stellard <[email protected]>
Acked-by: Quentin Monnet <[email protected]>
|
Upstream branch: 57cb269 |
9b0890c to
36669ae
Compare
b38c040 to
1a8f119
Compare
|
Upstream branch: 5612ea8 Pull request is NOT updated. Failed to apply https://patchwork.kernel.org/project/netdevbpf/list/?series=1003492 conflict: |
Pull request for series with
subject: bpftool: Fix -Wuninitialized-const-pointer warnings with clang >= 21 v2
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1003492