diff options
| author | Yogesh Tyagi <yogesh.tyagi@intel.com> | 2026-03-13 23:42:43 +0800 |
|---|---|---|
| committer | Yogesh Tyagi <yogesh.tyagi@intel.com> | 2026-03-13 23:45:44 +0800 |
| commit | 1610818c25713c700f48c5428c151d0d02e4aa94 (patch) | |
| tree | 799fb43bb9ca177af582831d141b21ffc36e35e5 /meta-nuc/recipes-kernel | |
| parent | ea36e10468ac23868a6e065c877dc761982238bb (diff) | |
| download | meta-intel-master.tar.gz | |
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>
Diffstat (limited to 'meta-nuc/recipes-kernel')
0 files changed, 0 insertions, 0 deletions
