Skip to contentSkip to conversation

drm/amd/display: Adjust prefix of dcn31_apg construct function name

PATCH RESEND In review Leonardo Gomes 2 participants 3 messages May 21, 2025 – May 27, 2025

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

PATCH RESEND 1/1 drm/amd/display: Adjust prefix of dcn31_apg construct function name

From: Leonardo da Silva Gomes <[email protected]>

Adjust the dcn31_apg construct function name from 'apg31_construct' to 'dcn31_apg_construct'.
This helps the ftrace to detect the file by the function name.

---
 drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.c                | 2 +-
 drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.h                | 2 +-
 drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c  | 2 +-
 .../gpu/drm/amd/display/dc/resource/dcn314/dcn314_resource.c    | 2 +-
 .../gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c    | 2 +-
 .../gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c    | 2 +-
 drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c  | 2 +-
 .../gpu/drm/amd/display/dc/resource/dcn321/dcn321_resource.c    | 2 +-
 drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c  | 2 +-
 .../gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c    | 2 +-
 drivers/gpu/drm/amd/display/dc/resource/dcn36/dcn36_resource.c  | 2 +-
 .../gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c    | 2 +-
 12 files changed, 12 insertions(+), 12 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.c +1 -1
index 05aac3e444b4..d1ccc9a34b2e 100644
@@ -101,7 +101,7 @@ static struct apg_funcs dcn31_apg_funcs = {
 	.disable_apg			= apg31_disable,
 };
 
-void apg31_construct(struct dcn31_apg *apg31,
+void dcn31_apg_construct(struct dcn31_apg *apg31,
 	struct dc_context *ctx,
 	uint32_t inst,
 	const struct dcn31_apg_registers *apg_regs,
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.h +1 -1
index 1b81f6773c53..54c6b62195c2 100644
@@ -100,7 +100,7 @@ struct dcn31_apg {
 	const struct dcn31_apg_mask *apg_mask;
 };
 
-void apg31_construct(struct dcn31_apg *apg3,
+void dcn31_apg_construct(struct dcn31_apg *apg3,
 	struct dc_context *ctx,
 	uint32_t inst,
 	const struct dcn31_apg_registers *apg_regs,
drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c +1 -1
index dddddbfef85f..b3553ae26d7c 100644
@@ -1207,7 +1207,7 @@ static struct apg *dcn31_apg_create(
 	if (!apg31)
 		return NULL;
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
 			&apg_regs[inst],
 			&apg_shift,
 			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn314/dcn314_resource.c +1 -1
index 26becc4cb804..be55a3c36a78 100644
@@ -1263,7 +1263,7 @@ static struct apg *dcn31_apg_create(
 	if (!apg31)
 		return NULL;
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
 			&apg_regs[inst],
 			&apg_shift,
 			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c +1 -1
index 6c2bb3f63be1..b9847b4bb0f3 100644
@@ -1205,7 +1205,7 @@ static struct apg *dcn31_apg_create(
 	if (!apg31)
 		return NULL;
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
 			&apg_regs[inst],
 			&apg_shift,
 			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c +1 -1
index 568094827212..b6cf2a296ab4 100644
@@ -1200,7 +1200,7 @@ static struct apg *dcn31_apg_create(
 	if (!apg31)
 		return NULL;
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
 			&apg_regs[inst],
 			&apg_shift,
 			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c +1 -1
index 2a59cc61ed8c..66fef6f6000e 100644
@@ -1187,7 +1187,7 @@ static struct apg *dcn31_apg_create(
 	apg_regs_init(2),
 	apg_regs_init(3);
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
 			&apg_regs[inst],
 			&apg_shift,
 			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn321/dcn321_resource.c +1 -1
index 38d76434683e..9be23da216d0 100644
@@ -1170,7 +1170,7 @@ static struct apg *dcn321_apg_create(
 	apg_regs_init(2),
 	apg_regs_init(3);
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
 			&apg_regs[inst],
 			&apg_shift,
 			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c +1 -1
index ffd2b816cd02..27affafb14f1 100644
@@ -1252,7 +1252,7 @@ static struct apg *dcn31_apg_create(
 	apg_regs_init(2),
 	apg_regs_init(3);
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
 			&apg_regs[inst],
 			&apg_shift,
 			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c +1 -1
index 98f5bc1b929e..d5341b0d59f3 100644
@@ -1232,7 +1232,7 @@ static struct apg *dcn31_apg_create(
 	apg_regs_init(2),
 	apg_regs_init(3);
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
 			&apg_regs[inst],
 			&apg_shift,
 			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn36/dcn36_resource.c +1 -1
index b6468573dc33..6fb2261c554d 100644
@@ -1233,7 +1233,7 @@ static struct apg *dcn31_apg_create(
 	apg_regs_init(2),
 	apg_regs_init(3);
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
 			&apg_regs[inst],
 			&apg_shift,
 			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c +1 -1
index 7436dfbdf927..ef4d758bfb5a 100644
@@ -1162,7 +1162,7 @@ static struct apg *dcn401_apg_create(
 	apg_regs_init(2),
 	apg_regs_init(3);
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
 			&apg_regs[inst],
 			&apg_shift,
 			&apg_mask);
Signature · 1 line
2.43.0
#1 lore raw

Hi Leonardo,

Thank you for this patch, but unfortunately some unit test suites depend on the names.

Quoted 180 lines · Leonardo Gomes

From: Leonardo da Silva Gomes <[email protected]>

Adjust the dcn31_apg construct function name from 'apg31_construct' to 'dcn31_apg_construct'.
This helps the ftrace to detect the file by the function name.

---
  drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.c                | 2 +-
  drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.h                | 2 +-
  drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c  | 2 +-
  .../gpu/drm/amd/display/dc/resource/dcn314/dcn314_resource.c    | 2 +-
  .../gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c    | 2 +-
  .../gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c    | 2 +-
  drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c  | 2 +-
  .../gpu/drm/amd/display/dc/resource/dcn321/dcn321_resource.c    | 2 +-
  drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c  | 2 +-
  .../gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c    | 2 +-
  drivers/gpu/drm/amd/display/dc/resource/dcn36/dcn36_resource.c  | 2 +-
  .../gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c    | 2 +-
  12 files changed, 12 insertions(+), 12 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.c +1 -1
index 05aac3e444b4..d1ccc9a34b2e 100644
@@ -101,7 +101,7 @@ static struct apg_funcs dcn31_apg_funcs = {
  	.disable_apg			= apg31_disable,
  };
 
-void apg31_construct(struct dcn31_apg *apg31,
+void dcn31_apg_construct(struct dcn31_apg *apg31,
  	struct dc_context *ctx,
  	uint32_t inst,
  	const struct dcn31_apg_registers *apg_regs,
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.h +1 -1
index 1b81f6773c53..54c6b62195c2 100644
@@ -100,7 +100,7 @@ struct dcn31_apg {
  	const struct dcn31_apg_mask *apg_mask;
  };
 
-void apg31_construct(struct dcn31_apg *apg3,
+void dcn31_apg_construct(struct dcn31_apg *apg3,
  	struct dc_context *ctx,
  	uint32_t inst,
  	const struct dcn31_apg_registers *apg_regs,
drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c +1 -1
index dddddbfef85f..b3553ae26d7c 100644
@@ -1207,7 +1207,7 @@ static struct apg *dcn31_apg_create(
  	if (!apg31)
  		return NULL;
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
  			&apg_regs[inst],
  			&apg_shift,
  			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn314/dcn314_resource.c +1 -1
index 26becc4cb804..be55a3c36a78 100644
@@ -1263,7 +1263,7 @@ static struct apg *dcn31_apg_create(
  	if (!apg31)
  		return NULL;
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
  			&apg_regs[inst],
  			&apg_shift,
  			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c +1 -1
index 6c2bb3f63be1..b9847b4bb0f3 100644
@@ -1205,7 +1205,7 @@ static struct apg *dcn31_apg_create(
  	if (!apg31)
  		return NULL;
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
  			&apg_regs[inst],
  			&apg_shift,
  			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c +1 -1
index 568094827212..b6cf2a296ab4 100644
@@ -1200,7 +1200,7 @@ static struct apg *dcn31_apg_create(
  	if (!apg31)
  		return NULL;
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
  			&apg_regs[inst],
  			&apg_shift,
  			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c +1 -1
index 2a59cc61ed8c..66fef6f6000e 100644
@@ -1187,7 +1187,7 @@ static struct apg *dcn31_apg_create(
  	apg_regs_init(2),
  	apg_regs_init(3);
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
  			&apg_regs[inst],
  			&apg_shift,
  			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn321/dcn321_resource.c +1 -1
index 38d76434683e..9be23da216d0 100644
@@ -1170,7 +1170,7 @@ static struct apg *dcn321_apg_create(
  	apg_regs_init(2),
  	apg_regs_init(3);
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
  			&apg_regs[inst],
  			&apg_shift,
  			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c +1 -1
index ffd2b816cd02..27affafb14f1 100644
@@ -1252,7 +1252,7 @@ static struct apg *dcn31_apg_create(
  	apg_regs_init(2),
  	apg_regs_init(3);
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
  			&apg_regs[inst],
  			&apg_shift,
  			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c +1 -1
index 98f5bc1b929e..d5341b0d59f3 100644
@@ -1232,7 +1232,7 @@ static struct apg *dcn31_apg_create(
  	apg_regs_init(2),
  	apg_regs_init(3);
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
  			&apg_regs[inst],
  			&apg_shift,
  			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn36/dcn36_resource.c +1 -1
index b6468573dc33..6fb2261c554d 100644
@@ -1233,7 +1233,7 @@ static struct apg *dcn31_apg_create(
  	apg_regs_init(2),
  	apg_regs_init(3);
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
  			&apg_regs[inst],
  			&apg_shift,
  			&apg_mask);
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c +1 -1
index 7436dfbdf927..ef4d758bfb5a 100644
@@ -1162,7 +1162,7 @@ static struct apg *dcn401_apg_create(
  	apg_regs_init(2),
  	apg_regs_init(3);
 
-	apg31_construct(apg31, ctx, inst,
+	dcn31_apg_construct(apg31, ctx, inst,
  			&apg_regs[inst],
  			&apg_shift,
  			&apg_mask);
#2 lore raw

Hi Alex,

Thanks for your answer!

Quoted 210 lines · On Mon, 26 May 2025 at 23:50 Alex Hung <[email protected]> wrote:

Hi Leonardo,

Thank you for this patch, but unfortunately some unit test suites depend on the names.

Quoted 24 lines · Leonardo Gomes

From: Leonardo da Silva Gomes <[email protected]>

Adjust the dcn31_apg construct function name from 'apg31_construct' to 'dcn31_apg_construct'.
This helps the ftrace to detect the file by the function name.

---
  drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.c                | 2 +-
  drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.h                | 2 +-
  drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c  | 2 +-
  .../gpu/drm/amd/display/dc/resource/dcn314/dcn314_resource.c    | 2 +-
  .../gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c    | 2 +-
  .../gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c    | 2 +-
  drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c  | 2 +-
  .../gpu/drm/amd/display/dc/resource/dcn321/dcn321_resource.c    | 2 +-
  drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c  | 2 +-
  .../gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c    | 2 +-
  drivers/gpu/drm/amd/display/dc/resource/dcn36/dcn36_resource.c  | 2 +-
  .../gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c    | 2 +-
  12 files changed, 12 insertions(+), 12 deletions(-)

Review

Quoted 1 line
(quoted diff) +0 -0

b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.c

Review

Quoted 13 lines

index 05aac3e444b4..d1ccc9a34b2e 100644

drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.c +1 -1
@@ -101,7 +101,7 @@ static struct apg_funcs dcn31_apg_funcs = {
      .disable_apg                    = apg31_disable,
  };
 
-void apg31_construct(struct dcn31_apg *apg31,
+void dcn31_apg_construct(struct dcn31_apg *apg31,
      struct dc_context *ctx,
      uint32_t inst,
      const struct dcn31_apg_registers *apg_regs,
(quoted diff) +0 -0

b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.h

Quoted 12 lines

index 1b81f6773c53..54c6b62195c2 100644

drivers/gpu/drm/amd/display/dc/dcn31/dcn31_apg.h +1 -1
@@ -100,7 +100,7 @@ struct dcn31_apg {
      const struct dcn31_apg_mask *apg_mask;
  };
 
-void apg31_construct(struct dcn31_apg *apg3,
+void dcn31_apg_construct(struct dcn31_apg *apg3,
      struct dc_context *ctx,
      uint32_t inst,
      const struct dcn31_apg_registers *apg_regs,
Quoted 1 line

diff --git

a/drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c b/drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c

Quoted 12 lines

index dddddbfef85f..b3553ae26d7c 100644

drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c +1 -1
@@ -1207,7 +1207,7 @@ static struct apg *dcn31_apg_create(
      if (!apg31)
              return NULL;
 
-     apg31_construct(apg31, ctx, inst,
+     dcn31_apg_construct(apg31, ctx, inst,
                      &apg_regs[inst],
                      &apg_shift,
                      &apg_mask);
Quoted 1 line

diff --git

a/drivers/gpu/drm/amd/display/dc/resource/dcn314/dcn314_resource.c b/drivers/gpu/drm/amd/display/dc/resource/dcn314/dcn314_resource.c

Quoted 12 lines

index 26becc4cb804..be55a3c36a78 100644

drivers/gpu/drm/amd/display/dc/resource/dcn314/dcn314_resource.c +1 -1
@@ -1263,7 +1263,7 @@ static struct apg *dcn31_apg_create(
      if (!apg31)
              return NULL;
 
-     apg31_construct(apg31, ctx, inst,
+     dcn31_apg_construct(apg31, ctx, inst,
                      &apg_regs[inst],
                      &apg_shift,
                      &apg_mask);
Quoted 1 line

diff --git

a/drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c b/drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c

Quoted 12 lines

index 6c2bb3f63be1..b9847b4bb0f3 100644

drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c +1 -1
@@ -1205,7 +1205,7 @@ static struct apg *dcn31_apg_create(
      if (!apg31)
              return NULL;
 
-     apg31_construct(apg31, ctx, inst,
+     dcn31_apg_construct(apg31, ctx, inst,
                      &apg_regs[inst],
                      &apg_shift,
                      &apg_mask);
Quoted 1 line

diff --git

a/drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c b/drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c

Quoted 12 lines

index 568094827212..b6cf2a296ab4 100644

drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c +1 -1
@@ -1200,7 +1200,7 @@ static struct apg *dcn31_apg_create(
      if (!apg31)
              return NULL;
 
-     apg31_construct(apg31, ctx, inst,
+     dcn31_apg_construct(apg31, ctx, inst,
                      &apg_regs[inst],
                      &apg_shift,
                      &apg_mask);
Quoted 1 line

diff --git

a/drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c b/drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c

Quoted 12 lines

index 2a59cc61ed8c..66fef6f6000e 100644

drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c +1 -1
@@ -1187,7 +1187,7 @@ static struct apg *dcn31_apg_create(
      apg_regs_init(2),
      apg_regs_init(3);
 
-     apg31_construct(apg31, ctx, inst,
+     dcn31_apg_construct(apg31, ctx, inst,
                      &apg_regs[inst],
                      &apg_shift,
                      &apg_mask);
Quoted 1 line

diff --git

a/drivers/gpu/drm/amd/display/dc/resource/dcn321/dcn321_resource.c b/drivers/gpu/drm/amd/display/dc/resource/dcn321/dcn321_resource.c

Quoted 12 lines

index 38d76434683e..9be23da216d0 100644

drivers/gpu/drm/amd/display/dc/resource/dcn321/dcn321_resource.c +1 -1
@@ -1170,7 +1170,7 @@ static struct apg *dcn321_apg_create(
      apg_regs_init(2),
      apg_regs_init(3);
 
-     apg31_construct(apg31, ctx, inst,
+     dcn31_apg_construct(apg31, ctx, inst,
                      &apg_regs[inst],
                      &apg_shift,
                      &apg_mask);
Quoted 1 line

diff --git

a/drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c b/drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c

Quoted 12 lines

index ffd2b816cd02..27affafb14f1 100644

drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c +1 -1
@@ -1252,7 +1252,7 @@ static struct apg *dcn31_apg_create(
      apg_regs_init(2),
      apg_regs_init(3);
 
-     apg31_construct(apg31, ctx, inst,
+     dcn31_apg_construct(apg31, ctx, inst,
                      &apg_regs[inst],
                      &apg_shift,
                      &apg_mask);
Quoted 1 line

diff --git

a/drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c b/drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c

Quoted 12 lines

index 98f5bc1b929e..d5341b0d59f3 100644

drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c +1 -1
@@ -1232,7 +1232,7 @@ static struct apg *dcn31_apg_create(
      apg_regs_init(2),
      apg_regs_init(3);
 
-     apg31_construct(apg31, ctx, inst,
+     dcn31_apg_construct(apg31, ctx, inst,
                      &apg_regs[inst],
                      &apg_shift,
                      &apg_mask);
Quoted 1 line

diff --git

a/drivers/gpu/drm/amd/display/dc/resource/dcn36/dcn36_resource.c b/drivers/gpu/drm/amd/display/dc/resource/dcn36/dcn36_resource.c

Quoted 12 lines

index b6468573dc33..6fb2261c554d 100644

drivers/gpu/drm/amd/display/dc/resource/dcn36/dcn36_resource.c +1 -1
@@ -1233,7 +1233,7 @@ static struct apg *dcn31_apg_create(
      apg_regs_init(2),
      apg_regs_init(3);
 
-     apg31_construct(apg31, ctx, inst,
+     dcn31_apg_construct(apg31, ctx, inst,
                      &apg_regs[inst],
                      &apg_shift,
                      &apg_mask);
Quoted 1 line

diff --git

a/drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c b/drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c

Quoted 12 lines

index 7436dfbdf927..ef4d758bfb5a 100644

drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c +1 -1
@@ -1162,7 +1162,7 @@ static struct apg *dcn401_apg_create(
      apg_regs_init(2),
      apg_regs_init(3);
 
-     apg31_construct(apg31, ctx, inst,
+     dcn31_apg_construct(apg31, ctx, inst,
                      &apg_regs[inst],
                      &apg_shift,
                      &apg_mask);