diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4196-drm-amd-display-Make-dc_link_detect_helper-static.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4196-drm-amd-display-Make-dc_link_detect_helper-static.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4196-drm-amd-display-Make-dc_link_detect_helper-static.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4196-drm-amd-display-Make-dc_link_detect_helper-static.patch new file mode 100644 index 00000000..ff1fe442 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4196-drm-amd-display-Make-dc_link_detect_helper-static.patch @@ -0,0 +1,34 @@ +From 7ce4c5d8b0adaa37aaf0a0bb434274c1dec9d982 Mon Sep 17 00:00:00 2001 +From: YueHaibing <yuehaibing@huawei.com> +Date: Wed, 16 Oct 2019 19:15:41 +0800 +Subject: [PATCH 4196/4736] drm/amd/display: Make dc_link_detect_helper static + +Fix sparse warning: + +drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:746:6: + warning: symbol 'dc_link_detect_helper' was not declared. Should it be static? + +Reported-by: Hulk Robot <hulkci@huawei.com> +Signed-off-by: YueHaibing <yuehaibing@huawei.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/display/dc/core/dc_link.c | 3 ++- + 1 file changed, 2 insertions(+), 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 2a7fb79ad9f3..5474e2525e0c 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c +@@ -741,7 +741,8 @@ static bool wait_for_alt_mode(struct dc_link *link) + * This does not create remote sinks but will trigger DM + * to start MST detection if a branch is detected. + */ +-bool dc_link_detect_helper(struct dc_link *link, enum dc_detect_reason reason) ++static bool dc_link_detect_helper(struct dc_link *link, ++ enum dc_detect_reason reason) + { + struct dc_sink_init_data sink_init_data = { 0 }; + struct display_sink_capability sink_caps = { 0 }; +-- +2.17.1 + |