Skip to contentSkip to conversation

drm/amd/display: Add missing header

PATCH In review Rodrigo Siqueira 2 participants 2 messages Jul 6, 2022

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

PATCH 1/1 drm/amd/display: Add missing header

Kernel test robot reported this GCC error:

warning: no previous prototype for 'dc_reset_state' [-Wmissing-prototypes]
2720 | void dc_reset_state(struct dc *dc, struct dc_state *context)

This commit adds the missing prototype.

---
 drivers/gpu/drm/amd/display/dc/dc.h | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dc.h +1 -0
index 02bbc90a2c80..7586500ec87f 100644
@@ -1209,6 +1209,7 @@ bool dc_commit_state(struct dc *dc, struct dc_state *context);
 
 struct dc_state *dc_create_state(struct dc *dc);
 struct dc_state *dc_copy_state(struct dc_state *src_ctx);
+void dc_reset_state(struct dc *dc, struct dc_state *context);
 void dc_retain_state(struct dc_state *context);
 void dc_release_state(struct dc_state *context);
 
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

nit: "Add missing function definition"

Quoted 9 lines · Rodrigo Siqueira

Kernel test robot reported this GCC error:

warning: no previous prototype for 'dc_reset_state' [-Wmissing-prototypes]
2720 | void dc_reset_state(struct dc *dc, struct dc_state *context)

This commit adds the missing prototype.

Harry

Quoted 16 lines
---
 drivers/gpu/drm/amd/display/dc/dc.h | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dc.h +1 -0
index 02bbc90a2c80..7586500ec87f 100644
@@ -1209,6 +1209,7 @@ bool dc_commit_state(struct dc *dc, struct dc_state *context);
 
 struct dc_state *dc_create_state(struct dc *dc);
 struct dc_state *dc_copy_state(struct dc_state *src_ctx);
+void dc_reset_state(struct dc *dc, struct dc_state *context);
 void dc_retain_state(struct dc_state *context);
 void dc_release_state(struct dc_state *context);