Skip to contentSkip to conversation

amd: display: modules: Remove repeated struct declaration

PATCH Applied Wan Jiabing 2 participants 2 messages Apr 1, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 amd: display: modules: Remove repeated struct declaration

struct mod_hdcp is declared twice. One is declared at 33rd line. The blew one is not needed. Remove the duplicate.

---
 drivers/gpu/drm/amd/display/modules/inc/mod_hdcp.h | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/display/modules/inc/mod_hdcp.h +0 -2
index d223ed3be5d3..03fe49c5b7d0 100644
@@ -255,8 +255,6 @@ struct mod_hdcp_config {
 	uint8_t index;
 };
 
-struct mod_hdcp;
-
 /* dm allocates memory of mod_hdcp per dc_link on dm init based on memory size*/
 size_t mod_hdcp_get_memory_size(void);
 
Signature · 6 lines
2.25.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Applied
#1 lore raw

Applied. Thanks!

Alex

Quoted 25 lines · Wan Jiabing

struct mod_hdcp is declared twice. One is declared at 33rd line. The blew one is not needed. Remove the duplicate.

---
 drivers/gpu/drm/amd/display/modules/inc/mod_hdcp.h | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/display/modules/inc/mod_hdcp.h +0 -3
index d223ed3be5d3..03fe49c5b7d0 100644
@@ -255,8 +255,6 @@ struct mod_hdcp_config {
        uint8_t index;
 };
 
-struct mod_hdcp;
-
 /* dm allocates memory of mod_hdcp per dc_link on dm init based on memory size*/
 size_t mod_hdcp_get_memory_size(void);
 
--

2.25.1

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