fixes following build error in intel-compute-runtime-native on Ubuntu 24.04 
host:
error: ‘*(const NEO::ArgDescValue::Element*)((char*)&<unnamed> + 
offsetof(NEO::ArgDescValue, 
NEO::ArgDescValue::elements.StackVec<NEO::ArgDescValue::Element, 1, unsigned 
char>::onStackMemRawBytes[0]))’ may be used uninitialized 
[-Werror=maybe-uninitialized]

Backport patch:
* 0001-fix-add-missing-zero-initialization-in-StackVec-clas.patch

Signed-off-by: Yogesh Tyagi <[email protected]>
---
 ...zero-initialization-in-StackVec-clas.patch | 25 +++++++++++++++++++
 .../intel-compute-runtime_22.31.23852.bb      |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 
dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0001-fix-add-missing-zero-initialization-in-StackVec-clas.patch

diff --git 
a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0001-fix-add-missing-zero-initialization-in-StackVec-clas.patch
 
b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0001-fix-add-missing-zero-initialization-in-StackVec-clas.patch
new file mode 100644
index 00000000..4aed37b8
--- /dev/null
+++ 
b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0001-fix-add-missing-zero-initialization-in-StackVec-clas.patch
@@ -0,0 +1,25 @@
+From 894bab05efb447d249c9f0afdbf0ca62c82395c6 Mon Sep 17 00:00:00 2001
+From: Mateusz Jablonski <[email protected]>
+Date: Tue, 22 Aug 2023 10:55:50 +0000
+Subject: [PATCH] fix: add missing zero-initialization in StackVec class
+
+Upstream-Status: Backport 
[https://github.com/intel/compute-runtime/commit/894bab05efb447d249c9f0afdbf0ca62c82395c6]
+
+Signed-off-by: Mateusz Jablonski <[email protected]>
+---
+ shared/source/utilities/stackvec.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: git/shared/source/utilities/stackvec.h
+===================================================================
+--- git.orig/shared/source/utilities/stackvec.h
++++ git/shared/source/utilities/stackvec.h
+@@ -431,7 +431,7 @@ class StackVec { // NOLINT(clang-analyze
+         DataType *onStackMem;
+     };
+ 
+-    alignas(alignof(DataType)) char 
onStackMemRawBytes[sizeof(DataType[onStackCaps])];
++    alignas(alignof(DataType)) char 
onStackMemRawBytes[sizeof(DataType[onStackCaps])]{};
+     SizeT onStackSize = 0U;
+ };
+ 
diff --git 
a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_22.31.23852.bb
 
b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_22.31.23852.bb
index ebf69af2..9bbbb3a7 100644
--- 
a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_22.31.23852.bb
+++ 
b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_22.31.23852.bb
@@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = 
"file://LICENSE.md;md5=9280143b568466d8fbe385f838078b93 \
                     
file://third_party/opencl_headers/LICENSE;md5=dcefc90f4c3c689ec0c2489064e7273b"
 
 SRC_URI = 
"git://github.com/intel/compute-runtime.git;protocol=https;branch=master \
+           
file://0001-fix-add-missing-zero-initialization-in-StackVec-clas.patch \
           "
 
 SRC_URI:append:class-target = "file://allow-to-find-cpp-generation-tool.patch \
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8414): 
https://lists.yoctoproject.org/g/meta-intel/message/8414
Mute This Topic: https://lists.yoctoproject.org/mt/108627038/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to