From e0863dbb74261a043052b393c29598810d7b17fd Mon Sep 17 00:00:00 2001 From: "Shih, Jude" Date: Fri, 5 Jan 2024 14:11:00 +0800 Subject: [PATCH] amd/vpelib: Solve link error due to missing static for one function is_target_rect_equal_to_dest_rect is used in color_bg.c only. Therefore, it needs keyword as static in front of it. This issue is reported from diag team. Reviewed-by: Bichao Wang Reviewed-by: Tomson Chang Acked-by: Alan Liu Signed-off-by: Jude Shih Part-of: --- src/amd/vpelib/src/core/color_bg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/amd/vpelib/src/core/color_bg.c b/src/amd/vpelib/src/core/color_bg.c index 1f6f73251e1..0f53c36f973 100644 --- a/src/amd/vpelib/src/core/color_bg.c +++ b/src/amd/vpelib/src/core/color_bg.c @@ -581,8 +581,7 @@ enum vpe_status vpe_bg_color_outside_cs_gamut( return VPE_STATUS_OK; } - -inline bool is_target_rect_equal_to_dest_rect(const struct vpe_priv *vpe_priv) +static inline bool is_target_rect_equal_to_dest_rect(const struct vpe_priv *vpe_priv) { const struct vpe_rect *target_rect = &vpe_priv->output_ctx.target_rect; const struct vpe_rect *dst_rect = &vpe_priv->stream_ctx[0].stream.scaling_info.dst_rect;