Skip to content

Conversation

@kernel-patches-daemon-bpf-rc
Copy link

Pull request for series with
subject: tools/lib/bpf: fix -Wdiscarded-qualifiers under C23
version: 3
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1031046

glibc ≥ 2.42 (GCC 15) defaults to -std=gnu23, which promotes
-Wdiscarded-qualifiers to an error.

In C23, strstr() and strchr() return "const char *".

Declare `res` and `next_path` as const char * — they are never modified.
Keep `sym_sfx` as char * because it is advanced in a loop.

Suggested-by: Florian Weimer <[email protected]>
Suggested-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Mikhail Gavrilov <[email protected]>
@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: 5d9fb42
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1031046
version: 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants