Skip to contentSkip to conversation

drm/amd/display: make hubp1_wait_pipe_read_start() static

PATCH In review Tales Lelo da Aparecida 2 participants 2 messages Apr 15, 2022 – Apr 19, 2022

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

PATCH 1/1 drm/amd/display: make hubp1_wait_pipe_read_start() static

It's a local function, let's make it static.

---
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c +1 -1
index fbff6beb78be..3a7f76e2c598 100644
@@ -1316,7 +1316,7 @@ void hubp1_set_flip_int(struct hubp *hubp)
  *
  * @hubp: hubp struct reference.
  */
-void hubp1_wait_pipe_read_start(struct hubp *hubp)
+static void hubp1_wait_pipe_read_start(struct hubp *hubp)
 {
 	struct dcn10_hubp *hubp1 = TO_DCN10_HUBP(hubp);
 
Signature · 1 line
2.35.1
#1 lore raw

Applied with minor change to drop the prototype in dcn10_hubp.h. Thanks!

Alex

Quoted 24 lines · Tales Lelo da Aparecida

It's a local function, let's make it static.

---
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c +1 -2
index fbff6beb78be..3a7f76e2c598 100644
@@ -1316,7 +1316,7 @@ void hubp1_set_flip_int(struct hubp *hubp)
  *
  * @hubp: hubp struct reference.
  */
-void hubp1_wait_pipe_read_start(struct hubp *hubp)
+static void hubp1_wait_pipe_read_start(struct hubp *hubp)
 {
        struct dcn10_hubp *hubp1 = TO_DCN10_HUBP(hubp);
 
--

2.35.1