Skip to contentSkip to conversation

drm/amd/display: fix a missing prototype warning in DCN303

PATCH In review Aurabindo Pillai 2 participants 3 messages Dec 7, 2021 – Dec 8, 2021

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

PATCH 1/1 drm/amd/display: fix a missing prototype warning in DCN303

[Why&How]
A missing include statement triggered a warning when running a build with W=1:

Quoted 1 line
Quoted 1 line

drivers/gpu/drm/amd/amdgpu/../display/dc/dcn303/dcn303_init.c:30:6: warning: no previous prototype for 'dcn303_hw_sequencer_construct' [-Wmissing-prototypes]

30 | void dcn303_hw_sequencer_construct(struct dc *dc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes cd6d421e3d1a (drm/amd/display: Initial DC support for Beige Goby)
---
 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.c +1 -0
index aa5dbbade2bd..d59b24a972bc 100644
@@ -7,6 +7,7 @@
 
 #include "dcn303_hwseq.h"
 #include "dcn30/dcn30_init.h"
+#include "dcn303_init.h"
 #include "dc.h"
 
 void dcn303_hw_sequencer_construct(struct dc *dc)
Signature · 1 line
2.30.2
#1 lore raw
Quoted 21 lines · Aurabindo Pillai

[Why&How]
A missing include statement triggered a warning when running a build with W=1:

Quoted 1 line
Quoted 1 line

drivers/gpu/drm/amd/amdgpu/../display/dc/dcn303/dcn303_init.c:30:6: warning: no previous prototype for 'dcn303_hw_sequencer_construct' [-Wmissing-prototypes]

30 | void dcn303_hw_sequencer_construct(struct dc *dc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes cd6d421e3d1a (drm/amd/display: Initial DC support for Beige Goby)
---
  drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.c +0 -0
index aa5dbbade2bd..d59b24a972bc 100644

drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.c line 13

Quoted 7 lines
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.c +1 -0
@@ -7,6 +7,7 @@
 
  #include "dcn303_hwseq.h"
  #include "dcn30/dcn30_init.h"
+#include "dcn303_init.h"
  #include "dc.h"
 
  void dcn303_hw_sequencer_construct(struct dc *dc)

Hi Jay,

Isabella made the below patch that fixes this issue in multiple files:

https://patchwork.freedesktop.org/patch/465821/?series=97701&rev=1

Maybe we can go ahead with Isabella's patch?

Thanks
Siqueira

#2 lore raw

[AMD Official Use Only]

Hi Siqueira,

Thanks for the heads up, lets apply Isabella's patch instead.

--

Regards,
Jay
________________________________
From: Siqueira, Rodrigo <[email protected]>
Sent: Wednesday, December 8, 2021 10:17 AM
To: Pillai, Aurabindo <[email protected]>; [email protected] <[email protected]>; Isabella Basso <[email protected]>
Cc: Wentland, Harry <[email protected]>; Siqueira, Rodrigo <[email protected]>; kernel test robot <[email protected]>
Subject: Re: [PATCH] drm/amd/display: fix a missing prototype warning in DCN303

Quoted 21 lines · Aurabindo Pillai

[Why&How]
A missing include statement triggered a warning when running a build with W=1:

Quoted 1 line
Quoted 1 line

drivers/gpu/drm/amd/amdgpu/../display/dc/dcn303/dcn303_init.c:30:6: warning: no previous prototype for 'dcn303_hw_sequencer_construct' [-Wmissing-prototypes]

30 | void dcn303_hw_sequencer_construct(struct dc *dc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes cd6d421e3d1a (drm/amd/display: Initial DC support for Beige Goby)
---
  drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.c +0 -0
index aa5dbbade2bd..d59b24a972bc 100644

drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.c line 13

Quoted 7 lines
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_init.c +1 -0
@@ -7,6 +7,7 @@
 
  #include "dcn303_hwseq.h"
  #include "dcn30/dcn30_init.h"
+#include "dcn303_init.h"
  #include "dc.h"
 
  void dcn303_hw_sequencer_construct(struct dc *dc)

Hi Jay,

Isabella made the below patch that fixes this issue in multiple files:

https://patchwork.freedesktop.org/patch/465821/?series=97701&rev=1

Maybe we can go ahead with Isabella's patch?

Thanks
Siqueira