[PATCH] pixman-combine-float.c: replace force_inline with __inline__

changqing.li at windriver.com changqing.li at windriver.com
Fri Jul 5 08:15:35 UTC 2024


From: Changqing Li <changqing.li at windriver.com>

Refer [1], always-inline is not suggested to be used if you have indirect
calls. so replace force_inline with __inline__ to fix error:
In function ‘combine_inner’,
    inlined from ‘combine_soft_light_ca_float’ at ../pixman/pixman-combine-float.c:655:511:
../pixman/pixman-combine-float.c:655:211: error: inlining failed in call to ‘always_inline’ ‘combine_soft_light_c’: function not considered for inlining

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115679

Signed-off-by: Changqing Li <changqing.li at windriver.com>
---
 pixman/pixman-combine-float.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pixman/pixman-combine-float.c b/pixman/pixman-combine-float.c
index 27392d6..5eb2c2f 100644
--- a/pixman/pixman-combine-float.c
+++ b/pixman/pixman-combine-float.c
@@ -44,7 +44,7 @@
 
 typedef float (* combine_channel_t) (float sa, float s, float da, float d);
 
-static force_inline void
+static __inline__ void
 combine_inner (pixman_bool_t component,
 	       float *dest, const float *src, const float *mask, int n_pixels,
 	       combine_channel_t combine_a, combine_channel_t combine_c)
-- 
2.34.1



More information about the Pixman mailing list