drm/amd/display: Make dc_link_detect_helper static
Subsystems (3)
PATCH 1/1 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 <[email protected]>
Signed-off-by YueHaibing <[email protected]>
--- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc_link.c +2 -1
@@ -743,7 +743,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 };
Signature · 1 line
2.7.4
Alex Deucher
AppliedQuoted 8 lines · YueHaibing
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 <[email protected]>Signed-off-by YueHaibing <[email protected]>
Applied. thanks!
Alex
Quoted 22 lines
--- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/display/dc/core/dc_link.c +2
-2@@ -743,7 +743,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.7.4
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx