From f4c73b0482c3a169d99cf8575b35b6e3c3512ded Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Fri, 21 Nov 2025 15:44:10 +0100 Subject: [PATCH] rtpengine: add patch fixing compilation error for pthread tid Add patch fixing compilation error for wrong pthread tid init. While at it also renumber the patch to to follow the pattern of 1xx for downstream patch. Signed-off-by: Christian Marangi --- ...ch => 100-prevent-systemd-detection.patch} | 0 ...-spandsp3.patch => 101-use-spandsp3.patch} | 0 ...ally-allocate-buffer-for-kernel-mod.patch} | 0 .../{08-no-docs.patch => 103-no-docs.patch} | 0 ...ix-compilation-error-for-pthread-tid.patch | 31 +++++++++++++++++++ 5 files changed, 31 insertions(+) rename net/rtpengine/patches/{04-prevent-systemd-detection.patch => 100-prevent-systemd-detection.patch} (100%) rename net/rtpengine/patches/{05-use-spandsp3.patch => 101-use-spandsp3.patch} (100%) rename net/rtpengine/patches/{07-always-dynamically-allocate-buffer-for-kernel-mod.patch => 102-always-dynamically-allocate-buffer-for-kernel-mod.patch} (100%) rename net/rtpengine/patches/{08-no-docs.patch => 103-no-docs.patch} (100%) create mode 100644 net/rtpengine/patches/104-daemon-poller-fix-compilation-error-for-pthread-tid.patch diff --git a/net/rtpengine/patches/04-prevent-systemd-detection.patch b/net/rtpengine/patches/100-prevent-systemd-detection.patch similarity index 100% rename from net/rtpengine/patches/04-prevent-systemd-detection.patch rename to net/rtpengine/patches/100-prevent-systemd-detection.patch diff --git a/net/rtpengine/patches/05-use-spandsp3.patch b/net/rtpengine/patches/101-use-spandsp3.patch similarity index 100% rename from net/rtpengine/patches/05-use-spandsp3.patch rename to net/rtpengine/patches/101-use-spandsp3.patch diff --git a/net/rtpengine/patches/07-always-dynamically-allocate-buffer-for-kernel-mod.patch b/net/rtpengine/patches/102-always-dynamically-allocate-buffer-for-kernel-mod.patch similarity index 100% rename from net/rtpengine/patches/07-always-dynamically-allocate-buffer-for-kernel-mod.patch rename to net/rtpengine/patches/102-always-dynamically-allocate-buffer-for-kernel-mod.patch diff --git a/net/rtpengine/patches/08-no-docs.patch b/net/rtpengine/patches/103-no-docs.patch similarity index 100% rename from net/rtpengine/patches/08-no-docs.patch rename to net/rtpengine/patches/103-no-docs.patch diff --git a/net/rtpengine/patches/104-daemon-poller-fix-compilation-error-for-pthread-tid.patch b/net/rtpengine/patches/104-daemon-poller-fix-compilation-error-for-pthread-tid.patch new file mode 100644 index 0000000..7f1e4e5 --- /dev/null +++ b/net/rtpengine/patches/104-daemon-poller-fix-compilation-error-for-pthread-tid.patch @@ -0,0 +1,31 @@ +From 77e2cd4b250e806701081a8b262aa0a804423659 Mon Sep 17 00:00:00 2001 +From: Christian Marangi +Date: Fri, 21 Nov 2025 15:39:53 +0100 +Subject: [PATCH] daemon: poller: fix compilation error for pthread tid + +Fix compilation error for pthread tid wrong init. + +poller.c: In function 'poller_map_add': +poller.c:54:18: error: initialization of 'pthread_t' {aka 'struct __pthread *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] + 54 | + | + +Setting to -1 is wrong and actually not useful as it gets set right +after if map is not NULL. + +Signed-off-by: Christian Marangi +--- + lib/poller.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/lib/poller.c ++++ b/lib/poller.c +@@ -51,7 +51,7 @@ struct poller_map *poller_map_new(void) + } + + static void poller_map_add(struct poller_map *map) { +- pthread_t tid = -1; ++ pthread_t tid; + struct poller *p; + if (!map) + return; -- 2.30.2