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=1031053

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

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

Change variable types to const char * where the pointers are never
modified (res, sym_sfx, next_path).

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=1031053
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