summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-graphics/xorg-lib/pixman/0001-pixman-combine-float.c-replace-force_inline-with-__.patch36
-rw-r--r--meta/recipes-graphics/xorg-lib/pixman_0.42.2.bb1
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-lib/pixman/0001-pixman-combine-float.c-replace-force_inline-with-__.patch b/meta/recipes-graphics/xorg-lib/pixman/0001-pixman-combine-float.c-replace-force_inline-with-__.patch
new file mode 100644
index 0000000000..cae201629f
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/pixman/0001-pixman-combine-float.c-replace-force_inline-with-__.patch
@@ -0,0 +1,36 @@
1From 49a1644015d073829c17dcd977aab6fdda1ebdee Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Fri, 5 Jul 2024 07:33:44 +0000
4Subject: [PATCH] pixman-combine-float.c: replace force_inline with __inline__
5
6Refer [1], always-inline is not suggested to be used if you have indirect
7calls. so replace force_inline with __inline__ to fix error:
8In function ‘combine_inner’,
9 inlined from ‘combine_soft_light_ca_float’ at ../pixman/pixman-combine-float.c:655:511:
10../pixman/pixman-combine-float.c:655:211: error: inlining failed in call to ‘always_inline’ ‘combine_soft_light_c’: function not considered for inlining
11
12[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115679
13
14Upstream-Status: Submitted [https://www.mail-archive.com/pixman@lists.freedesktop.org/msg04812.html]
15
16Signed-off-by: Changqing Li <changqing.li@windriver.com>
17---
18 pixman/pixman-combine-float.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/pixman/pixman-combine-float.c b/pixman/pixman-combine-float.c
22index f5145bc..52400f4 100644
23--- a/pixman/pixman-combine-float.c
24+++ b/pixman/pixman-combine-float.c
25@@ -44,7 +44,7 @@
26
27 typedef float (* combine_channel_t) (float sa, float s, float da, float d);
28
29-static force_inline void
30+static __inline__ void
31 combine_inner (pixman_bool_t component,
32 float *dest, const float *src, const float *mask, int n_pixels,
33 combine_channel_t combine_a, combine_channel_t combine_c)
34--
352.44.0
36
diff --git a/meta/recipes-graphics/xorg-lib/pixman_0.42.2.bb b/meta/recipes-graphics/xorg-lib/pixman_0.42.2.bb
index 23ae0cbb27..88eef50f7b 100644
--- a/meta/recipes-graphics/xorg-lib/pixman_0.42.2.bb
+++ b/meta/recipes-graphics/xorg-lib/pixman_0.42.2.bb
@@ -9,6 +9,7 @@ DEPENDS = "zlib"
9 9
10SRC_URI = "https://www.cairographics.org/releases/${BP}.tar.gz \ 10SRC_URI = "https://www.cairographics.org/releases/${BP}.tar.gz \
11 file://0001-ARM-qemu-related-workarounds-in-cpu-features-detecti.patch \ 11 file://0001-ARM-qemu-related-workarounds-in-cpu-features-detecti.patch \
12 file://0001-pixman-combine-float.c-replace-force_inline-with-__.patch \
12 " 13 "
13SRC_URI[sha256sum] = "ea1480efada2fd948bc75366f7c349e1c96d3297d09a3fe62626e38e234a625e" 14SRC_URI[sha256sum] = "ea1480efada2fd948bc75366f7c349e1c96d3297d09a3fe62626e38e234a625e"
14 15