mirror of
git://git.yoctoproject.org/meta-intel.git
synced 2025-07-19 12:59:03 +02:00
intel-compute-runtime: backport fix
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 <yogesh.tyagi@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
This commit is contained in:
parent
6162444a46
commit
474bdffd8b
|
@ -0,0 +1,25 @@
|
|||
From 894bab05efb447d249c9f0afdbf0ca62c82395c6 Mon Sep 17 00:00:00 2001
|
||||
From: Mateusz Jablonski <mateusz.jablonski@intel.com>
|
||||
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 <mateusz.jablonski@intel.com>
|
||||
---
|
||||
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;
|
||||
};
|
||||
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue
Block a user