aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4009-drm-amd-display-Make-function-wait_for_alt_mode-stat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4009-drm-amd-display-Make-function-wait_for_alt_mode-stat.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4009-drm-amd-display-Make-function-wait_for_alt_mode-stat.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4009-drm-amd-display-Make-function-wait_for_alt_mode-stat.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4009-drm-amd-display-Make-function-wait_for_alt_mode-stat.patch
new file mode 100644
index 00000000..31442d7c
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4009-drm-amd-display-Make-function-wait_for_alt_mode-stat.patch
@@ -0,0 +1,34 @@
+From 0a6668178735fb59fa2ac0f59f6e0bf0bfcc8a8c Mon Sep 17 00:00:00 2001
+From: zhengbin <zhengbin13@huawei.com>
+Date: Sat, 5 Oct 2019 10:44:32 +0800
+Subject: [PATCH 4009/4256] drm/amd/display: Make function wait_for_alt_mode
+ static
+
+Fix sparse warnings:
+
+drivers/gpu/drm/amd/display/dc/core/dc_link.c:687:6: warning: symbol 'wait_for_alt_mode' was not declared. Should it be static?
+
+Reviewed-by: Harry Wentland <harry.wentland@amd.com>
+Reported-by: Hulk Robot <hulkci@huawei.com>
+Signed-off-by: zhengbin <zhengbin13@huawei.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc_link.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+index 2da239765690..ec2a249c13f0 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+@@ -683,7 +683,7 @@ static bool is_same_edid(struct dc_edid *old_edid, struct dc_edid *new_edid)
+ return (memcmp(old_edid->raw_edid, new_edid->raw_edid, new_edid->length) == 0);
+ }
+
+-bool wait_for_alt_mode(struct dc_link *link)
++static bool wait_for_alt_mode(struct dc_link *link)
+ {
+
+ /**
+--
+2.17.1
+