diff options
| author | Yogesh Tyagi <yogesh.tyagi@intel.com> | 2026-03-20 21:06:09 +0800 |
|---|---|---|
| committer | Yogesh Tyagi <yogesh.tyagi@intel.com> | 2026-03-20 21:06:09 +0800 |
| commit | 413f4312cd1fe3684f5a19db1dd97d0550bbef54 (patch) | |
| tree | 368001704fb107da79b16911007918e304d806f8 /recipes-kernel/perf | |
| parent | a885c3a6fe5475de198899f4c40435b254fcbccc (diff) | |
| download | meta-intel-master.tar.gz | |
Remove the bbappend that applied const qualifier fixes to libbpf.c.
The workaround was required for older kernel versions where building
perf with -Werror triggered warnings due to discarded const qualifiers
from strstr() and strchr().
The issue is resolved in the currently used linux-intel 6.18 kernel,
making this workaround no longer necessary.
Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Diffstat (limited to 'recipes-kernel/perf')
| -rw-r--r-- | recipes-kernel/perf/perf.bbappend | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/recipes-kernel/perf/perf.bbappend b/recipes-kernel/perf/perf.bbappend deleted file mode 100644 index 54ad4dd9..00000000 --- a/recipes-kernel/perf/perf.bbappend +++ /dev/null | |||
| @@ -1,17 +0,0 @@ | |||
| 1 | # Fix const qualifier warnings in libbpf.c when building with -Werror | ||
| 2 | # This is a workaround for older kernel versions (6.12.x) that don't have | ||
| 3 | # the upstream fix yet. The issue is already fixed in kernel 6.13+. | ||
| 4 | |||
| 5 | # remove at next version upgrade or when output changes | ||
| 6 | PR = "r3" | ||
| 7 | HASHEQUIV_HASH_VERSION .= ".3" | ||
| 8 | |||
| 9 | do_configure:prepend () { | ||
| 10 | # Apply libbpf const qualifier fixes | ||
| 11 | if [ -e "${S}/tools/lib/bpf/libbpf.c" ]; then | ||
| 12 | # Fix kallsyms_cb function - change 'char *res' to 'const char *res' | ||
| 13 | sed -i 's/^\(\s*\)char \*res;/\1const char *res;/' "${S}/tools/lib/bpf/libbpf.c" | ||
| 14 | # Fix resolve_full_path function - change 'char *next_path' to 'const char *next_path' | ||
| 15 | sed -i 's/^\(\s*\)char \*next_path;/\1const char *next_path;/' "${S}/tools/lib/bpf/libbpf.c" | ||
| 16 | fi | ||
| 17 | } | ||
