drm/amd/display: make get_color_space_type() static
authorJason Yan <yanaijie@huawei.com>
Mon, 28 Sep 2020 02:36:41 +0000 (10:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Sep 2020 20:11:35 +0000 (16:11 -0400)
This addresses the following sparse warning:

drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_hw_sequencer.c:180:26:
warning: symbol 'get_color_space_type' 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: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c

index c026b39..2a90804 100644 (file)
@@ -177,7 +177,7 @@ static bool is_ycbcr709_limited_type(
                ret = true;
        return ret;
 }
-enum dc_color_space_type get_color_space_type(enum dc_color_space color_space)
+static enum dc_color_space_type get_color_space_type(enum dc_color_space color_space)
 {
        enum dc_color_space_type type = COLOR_SPACE_RGB_TYPE;