tools/lib/bpf: fix -Wdiscarded-qualifiers under C23#6438
tools/lib/bpf: fix -Wdiscarded-qualifiers under C23#6438kernel-patches-daemon-bpf-rc[bot] wants to merge 1 commit intobpf-next_basefrom
Conversation
|
Upstream branch: 688b745 |
8c83cb5 to
f015201
Compare
|
Upstream branch: 19f4091 |
f0d77ea to
313e3be
Compare
f015201 to
884c5bc
Compare
|
Upstream branch: bd5bdd2 |
313e3be to
e0ce0b7
Compare
884c5bc to
4355736
Compare
|
Upstream branch: 34235a3 |
e0ce0b7 to
dee81b0
Compare
4355736 to
5bece43
Compare
|
Upstream branch: c1af446 |
dee81b0 to
d3dcd88
Compare
5bece43 to
52f5a27
Compare
|
Upstream branch: ff34657 |
d3dcd88 to
4d08fd0
Compare
52f5a27 to
037d2fc
Compare
|
Upstream branch: ff34657 |
4d08fd0 to
8a6a99c
Compare
037d2fc to
8f722b4
Compare
|
Upstream branch: 8f7aa3d |
8a6a99c to
bbd0593
Compare
8f722b4 to
03e2ed2
Compare
|
Upstream branch: 835a507 |
bbd0593 to
f98b7bc
Compare
03e2ed2 to
3ea267d
Compare
|
Upstream branch: 835a507 |
f98b7bc to
c6a2bc6
Compare
3ea267d to
6d4eb64
Compare
|
Upstream branch: 835a507 |
c6a2bc6 to
3176990
Compare
6d4eb64 to
af4bac7
Compare
|
Upstream branch: 81f88f6 |
3176990 to
3e3c125
Compare
af4bac7 to
6ba2fc1
Compare
glibc ≥ 2.42 (GCC 15) defaults to -std=gnu23, which promotes -Wdiscarded-qualifiers to an error in the default hardening flags of Fedora Rawhide, Arch Linux, openSUSE Tumbleweed, Gentoo, etc. In C23, strstr() and strchr() return "const char *" in most cases, making previous implicit casts invalid. This breaks the build of tools/bpf/resolve_btfids on pristine upstream kernel when using GCC 15 + glibc 2.42+. Fix the three remaining instances with explicit casts. No functional changes. Link: https://bugzilla.redhat.com/show_bug.cgi?id=2417601 Suggested-by: Florian Weimer <fweimer@redhat.com> Signed-off-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
|
Upstream branch: 5d9fb42 |
3e3c125 to
10d14bc
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1028705 expired. Closing PR. |
Pull request for series with
subject: tools/lib/bpf: fix -Wdiscarded-qualifiers under C23
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1028705