drm/amd/display: Adjust prefix of dcn31_apg construct function name
Subsystems (3)
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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_apgconstruct function name from 'apg31_construct' to 'dcn31_apg_construct'.
This helps the ftrace to detect the file by the function name.Signed-off-by Leonardo da Silva Gomes <[email protected]>Co-developed-by Derick Frias <[email protected]>Signed-off-by Derick Frias <[email protected]>--- 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@@ -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@@ -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@@ -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@@ -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@@ -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@@ -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@@ -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@@ -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@@ -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@@ -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@@ -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@@ -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);
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_apgconstruct function name from 'apg31_construct' to 'dcn31_apg_construct'.
This helps the ftrace to detect the file by the function name.Signed-off-by Leonardo da Silva Gomes <[email protected]>Co-developed-by Derick Frias <[email protected]>Signed-off-by Derick Frias <[email protected]>--- 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.cReview
Quoted 13 lines
index
05aac3e444b4..d1ccc9a34b2e100644drivers/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.hQuoted 12 lines
index
1b81f6773c53..54c6b62195c2100644drivers/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.cb/drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.cQuoted 12 lines
index
dddddbfef85f..b3553ae26d7c100644drivers/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.cb/drivers/gpu/drm/amd/display/dc/resource/dcn314/dcn314_resource.cQuoted 12 lines
index
26becc4cb804..be55a3c36a78100644drivers/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.cb/drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.cQuoted 12 lines
index
6c2bb3f63be1..b9847b4bb0f3100644drivers/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.cb/drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.cQuoted 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.cb/drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.cQuoted 12 lines
index
2a59cc61ed8c..66fef6f6000e100644drivers/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.cb/drivers/gpu/drm/amd/display/dc/resource/dcn321/dcn321_resource.cQuoted 12 lines
index
38d76434683e..9be23da216d0100644drivers/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.cb/drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.cQuoted 12 lines
index
ffd2b816cd02..27affafb14f1100644drivers/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.cb/drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.cQuoted 12 lines
index
98f5bc1b929e..d5341b0d59f3100644drivers/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.cb/drivers/gpu/drm/amd/display/dc/resource/dcn36/dcn36_resource.cQuoted 12 lines
index
b6468573dc33..6fb2261c554d100644drivers/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.cb/drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.cQuoted 12 lines
index
7436dfbdf927..ef4d758bfb5a100644drivers/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);