summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorKhem Raj <khem.raj@oss.qualcomm.com>2026-04-17 23:38:40 -0700
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-04-17 23:39:32 -0700
commit626ce67c5307bda210aae6099b9c0732853b5fbd (patch)
tree35d59d57a16c5490b7747a1d79bd7bab51697184 /meta-oe
parent9707426b830433477c1a7990d07f77ad6ef0cc9e (diff)
downloadmeta-openembedded-626ce67c5307bda210aae6099b9c0732853b5fbd.tar.gz
dlt-daemon: fix sign-conversion warning in dlt_timer_conn_types array type
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-extended/dlt-daemon/dlt-daemon/char_conversion.patch27
-rw-r--r--meta-oe/recipes-extended/dlt-daemon/dlt-daemon_3.0.0.bb1
2 files changed, 28 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/char_conversion.patch b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/char_conversion.patch
new file mode 100644
index 0000000000..8d943b9764
--- /dev/null
+++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/char_conversion.patch
@@ -0,0 +1,27 @@
1daemon: fix sign-conversion warning in dlt_timer_conn_types array type
2
3Change dlt_timer_conn_types from char[] to DltConnectionType[] to match
4the actual type of values stored in the array.
5
6This was silently working on arm64 because char is unsigned by default on
7that architecture, making it compatible with DltConnectionType (an unsigned
8enum). On x86_64, char is signed by default, causing an implicit signed-to-
9unsigned conversion when passing array elements to dlt_connection_create(),
10which triggered -Wsign-conversion and broke the build.
11
12The fix corrects the array's declared type to match its contents, making the
13code portable regardless of the platform's char signedness.
14
15Upstream-Status: Pending
16Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
17--- a/src/daemon/dlt-daemon.c
18+++ b/src/daemon/dlt-daemon.c
19@@ -140,7 +140,7 @@ int g_signo = 0;
20 /* used for value from conf file */
21 static int value_length = 1024;
22
23-static char dlt_timer_conn_types[DLT_TIMER_UNKNOWN + 1] = {
24+static DltConnectionType dlt_timer_conn_types[DLT_TIMER_UNKNOWN + 1] = {
25 [DLT_TIMER_PACKET] = DLT_CONNECTION_ONE_S_TIMER,
26 [DLT_TIMER_ECU] = DLT_CONNECTION_SIXTY_S_TIMER,
27 #ifdef DLT_SYSTEMD_WATCHDOG_ENABLE
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_3.0.0.bb b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_3.0.0.bb
index cbeb8c3703..6de62c2a3d 100644
--- a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_3.0.0.bb
+++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_3.0.0.bb
@@ -25,6 +25,7 @@ SRC_URI = "git://github.com/COVESA/${BPN}.git;protocol=https;branch=master \
25 file://0001-CMakeLists.txt-make-CONFIGURATION_FILES_DIR-aligned.patch \ 25 file://0001-CMakeLists.txt-make-CONFIGURATION_FILES_DIR-aligned.patch \
26 file://0001-warnings-Fix-clang-generated-warnings.patch \ 26 file://0001-warnings-Fix-clang-generated-warnings.patch \
27 file://0001-dlt-daemon.c-fix-wrong-len.patch \ 27 file://0001-dlt-daemon.c-fix-wrong-len.patch \
28 file://char_conversion.patch \
28 " 29 "
29SRCREV = "f595ea29d1007ca1c3b2d1fd3a88adf7d3db6320" 30SRCREV = "f595ea29d1007ca1c3b2d1fd3a88adf7d3db6320"
30 31