diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-05-20 23:20:04 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-22 14:36:49 +0100 |
commit | 6443b3cdf546dfbd215ac3bdf7bd3cb261af72b7 (patch) | |
tree | 2092df58b650198d511cf20e274d5e6267578246 /meta | |
parent | ee22a23e989c6f3edc4a1c28a3fa6da4e981024c (diff) | |
download | poky-6443b3cdf546dfbd215ac3bdf7bd3cb261af72b7.tar.gz |
perf: Do not treat maybe-uninitialized warnings as errors
Clang finds more warnings in kernel code, make clang happy to not treat
these extra warnings as errors
(From OE-Core rev: c587f473a4581d1640aa227a23d517c51b7ec3cc)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-kernel/perf/perf.bb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index d06dd2fa5a..0d19e1bdc2 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb | |||
@@ -81,6 +81,16 @@ LDFLAGS = "-ldl -lutil" | |||
81 | # avoiding the 'buildpaths' QA warning. | 81 | # avoiding the 'buildpaths' QA warning. |
82 | TARGET_CC_ARCH += "${SELECTED_OPTIMIZATION} ${DEBUG_PREFIX_MAP}" | 82 | TARGET_CC_ARCH += "${SELECTED_OPTIMIZATION} ${DEBUG_PREFIX_MAP}" |
83 | 83 | ||
84 | #| libbpf.c: In function 'find_kernel_btf_id.constprop': | ||
85 | #| libbpf.c:10009:33: error: 'mod_len' may be used uninitialized [-Werror=maybe-uninitialized] | ||
86 | #| 10009 | if (mod_name && strncmp(mod->name, mod_name, mod_len) != 0) | ||
87 | #| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
88 | #| libbpf.c:9979:21: note: 'mod_len' was declared here | ||
89 | #| 9979 | int ret, i, mod_len; | ||
90 | #| | ^~~~~~~ | ||
91 | #| cc1: all warnings being treated as errors | ||
92 | TARGET_CC_ARCH:append:toolchain-clang:arm = " -fno-error=maybe-uninitialized" | ||
93 | |||
84 | EXTRA_OEMAKE = '\ | 94 | EXTRA_OEMAKE = '\ |
85 | V=1 \ | 95 | V=1 \ |
86 | VF=1 \ | 96 | VF=1 \ |