-
Notifications
You must be signed in to change notification settings - Fork 130
libbpf: fix warnings "'pad_type' 'pad_bits' 'new_off' may be used uninitialized" #5415
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
Conversation
Upstream branch: 63e2da3 |
a33d978
to
87478e7
Compare
Upstream branch: 10d78a6 |
c2cee36
to
7e019a9
Compare
87478e7
to
72c000e
Compare
Upstream branch: f7e6bd3 |
7e019a9
to
c62348e
Compare
72c000e
to
e10955d
Compare
Upstream branch: a76584f |
c62348e
to
c508ffe
Compare
e10955d
to
3e50490
Compare
Upstream branch: d1a0235 |
c508ffe
to
4a83853
Compare
3e50490
to
332008f
Compare
Upstream branch: ee932bf |
4a83853
to
32b3437
Compare
332008f
to
6cc2d14
Compare
Upstream branch: eb03993 |
32b3437
to
1eaca54
Compare
6cc2d14
to
3b843dc
Compare
Upstream branch: fb213ec |
1eaca54
to
65b4fc6
Compare
3b843dc
to
a2e11c7
Compare
Upstream branch: 74bdfab |
65b4fc6
to
8e81bff
Compare
a2e11c7
to
01b4a8f
Compare
Upstream branch: e99688e |
8e81bff
to
887c58b
Compare
01b4a8f
to
a9aa9e7
Compare
Upstream branch: 81584c2 |
887c58b
to
53c89b0
Compare
a9aa9e7
to
d416eea
Compare
Upstream branch: 1110865 |
53c89b0
to
744f309
Compare
d416eea
to
7c66af9
Compare
Upstream branch: d3c4db8 |
…nitialized" When turn on the yocto DEBUG_BUILD flag, the build options for gcc would enable maybe-uninitialized, and following warnings would be reported as below: | btf_dump.c: In function 'btf_dump_emit_bit_padding': | btf_dump.c:916:4: error: 'pad_type' may be used uninitialized in this function [-Werror=maybe-uninitialized] | 916 | btf_dump_printf(d, "\n%s%s: %d;", pfx(lvl), pad_type, | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 917 | in_bitfield ? new_off - cur_off : 0); | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | btf_dump.c:929:6: error: 'pad_bits' may be used uninitialized in this function [-Werror=maybe-uninitialized] | 929 | if (bits == pad_bits) { | | ^ | btf_dump.c:913:28: error: 'new_off' may be used uninitialized in this function [-Werror=maybe-uninitialized] | 913 | (new_off == next_off && roundup(cur_off, next_align * 8) != new_off) || | | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | HOSTLD scripts/mod/modpost Signed-off-by: Xiangyu Chen <[email protected]>
744f309
to
279056e
Compare
7c66af9
to
0144006
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=770025 expired. Closing PR. |
Pull request for series with
subject: libbpf: fix warnings "'pad_type' 'pad_bits' 'new_off' may be used uninitialized"
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=770025