mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
Failing Hydra build: https://hydra.nixos.org/build/344163800 The full commit[1] doesn't apply on 6.1, so I ported the only relevant portion to it. Backport is currently pending[2] (as I've noticed after hand-rolling this patch), so for now we're only applying what we actually need. [1] https://lore.kernel.org/r/20251206092825.1471385-1-mikhail.v.gavrilov@gmail.com [2] https://lore.kernel.org/all/2026051315-engorge-agreed-39cb@gregkh/
14 lines
451 B
Diff
14 lines
451 B
Diff
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
|
|
index 7bd6aff6e260..33b214a91338 100644
|
|
--- a/tools/lib/bpf/libbpf.c
|
|
+++ b/tools/lib/bpf/libbpf.c
|
|
@@ -10748,7 +10748,7 @@ static int resolve_full_path(const char *file, char *result, size_t result_sz)
|
|
if (!search_paths[i])
|
|
continue;
|
|
for (s = search_paths[i]; s != NULL; s = strchr(s, ':')) {
|
|
- char *next_path;
|
|
+ const char *next_path;
|
|
int seg_len;
|
|
|
|
if (s[0] == ':')
|