mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
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]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>