| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | perf: drop libbpf const qualifier workaroundHEADmaster | Yogesh Tyagi | 14 hours | 1 | -17/+0 |
| | | | | | | | | | | | | | | 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> | ||||
| * | perf: Fix const qualifier warnings in libbpf.c | Yogesh Tyagi | 7 days | 1 | -0/+17 |
| Fix compilation warnings when building perf with -Werror where const qualifiers are discarded from pointers returned by strstr() and strchr() functions in libbpf.c. Both strstr() and strchr() return 'const char *' when given 'const char *' input parameters. The receiving variables must preserve this const qualification to maintain const-correctness and avoid compiler warnings. Errors fixed: libbpf.c:8179:13: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] libbpf.c:11967:35: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] This is a workaround for kernel 6.12.x. The issue is already fixed upstream in kernel 6.13+ and can be removed when the kernel is updated. Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> | |||||
