drm/amd/display: Remove duplicate declaration of dc_state
Subsystems (3)
PATCH 1/1 drm/amd/display: Remove duplicate declaration of dc_state
There are two declarations of struct dc_state here.
The later one is closer to its user. Remove the former duplicate.
--- drivers/gpu/drm/amd/display/dc/dc.h | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dc.h +0 -2
@@ -276,8 +276,6 @@ enum surface_update_type {/* Forward declaration*/ struct dc ;struct dc_plane_state ; -struct dc_state ; -struct dc_cap_funcs { bool (*get_dcc_compression_cap)(const struct dc *dc,
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Wan,
Instead of remove the first dc_state, remove the second one.
Thanks
Quoted 24 lines · Wan Jiabing
There are two declarations of struct
dc_statehere.
The later one is closer to its user. Remove the former duplicate.Signed-off-by Wan Jiabing <[email protected]>--- drivers/gpu/drm/amd/display/dc/dc.h | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/amd/display/dc/dc.h +0
-2@@ -276,8 +276,6 @@ enum surface_update_type {/* Forward declaration*/ struct dc ;struct dc_plane_state ; -struct dc_state ; -struct dc_cap_funcs { bool (*get_dcc_compression_cap)(const struct dc *dc,Signature · 1 line
2.25.1
Signature · 2 lines
Rodrigo Siqueira https://siqueira.tech
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines
Hi Wan,
Instead of remove the first
dc_state, remove the second one.Thanks
Hi Rodrigo,
Thanks for your reply.
OK, in fact, there are no functions using struct dc_state between two struct declarations. So I think removing anyone is OK. Remove the first one to make it more closer to user. Remove the second one more secure.
I will send v2. You can choose one of the two.
Quoted 20 lines · Wan Jiabing
Quoted 19 lines
There are two declarations of struct
dc_statehere.
The later one is closer to its user. Remove the former duplicate.Signed-off-by Wan Jiabing <[email protected]>--- drivers/gpu/drm/amd/display/dc/dc.h | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/amd/display/dc/dc.h +0
-2@@ -276,8 +276,6 @@ enum surface_update_type {/* Forward declaration*/ struct dc ;struct dc_plane_state ; -struct dc_state ; -
Quoted 9 lines
Quoted 5 lines
drivers/gpu/drm/amd/display/dc/dc.h +0
-0struct dc_cap_funcs { bool (*get_dcc_compression_cap)(const struct dc *dc,Signature · 1 line
2.25.1Signature · 2 lines
Rodrigo Siqueira https://siqueira.tech
Yours,
Wan Jiabing
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel