drm/amd/display: make get_color_space_type() static
Subsystems (3)
PATCH 1/1 drm/amd/display: make get_color_space_type() static
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?
--- drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c +1 -1
@@ -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 ;
Signature · 6 lines
2.25.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Jason Yan
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?
If you have multiple fixes of the same or similar nature in the same subsystem (e.g. drm/amd/display) I would prefer a single patch to fix all of them. These really only need separate patches if they go outside a subsystem.
I see a lot of these tiny static checker patches from Huawei and while I appreciate small patches I feel these are needlessly small.
Quoted 2 lines
Reported-by Hulk Robot <[email protected]>Signed-off-by Jason Yan <[email protected]>
Harry
Quoted 10 lines
--- drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c +0
-0
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c static bool is_ycbcr709_limited_type( · line 183
Quoted 8 lines
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c +1
-1@@ -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 ;
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedApplied. Thanks!
Quoted 38 lines · Harry Wentland
Quoted 6 lines · Jason Yan
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?If you have multiple fixes of the same or similar nature in the same subsystem (e.g. drm/amd/display) I would prefer a single patch to fix all of them. These really only need separate patches if they go outside a subsystem.
I see a lot of these tiny static checker patches from Huawei and while I appreciate small patches I feel these are needlessly small.
Quoted 2 lines
Reported-by Hulk Robot <[email protected]>Signed-off-by Jason Yan <[email protected]>Reviewed-by Harry Wentland <[email protected]>Harry
Quoted 14 lines
--- drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c +1
-1@@ -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)
Quoted 8 lines
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c static bool is_ycbcr709_limited_type( · line 183
Quoted 4 lines
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c +0
-0{enum dc_color_space_type type =COLOR_SPACE_RGB_TYPE ;_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx