* [bug report] drm/amd/display: Fix indentation in dcn10 resource constructor
@ 2018-06-27 13:14 Dan Carpenter
[not found] ` <20180627131423.vedoul3vvw73dwhn-vMlZ3nK25oGAIHFoDFOv9A@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2018-06-27 13:14 UTC (permalink / raw)
To: hersenxs.wu-5C7GfCeVMHo; +Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
Hello Hersen Wu,
The patch cb1d7eacb58f: "drm/amd/display: Fix indentation in dcn10
resource constructor" from May 8, 2018, leads to the following static
checker warning:
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_resource.c:1008 construct()
warn: inconsistent indenting
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_resource.c
996 static bool construct(
997 uint8_t num_virtual_links,
998 struct dc *dc,
999 struct dcn10_resource_pool *pool)
1000 {
1001 int i;
1002 int j;
1003 struct dc_context *ctx = dc->ctx;
1004 uint32_t pipe_fuses = read_pipe_fuses(ctx);
1005
1006 ctx->dc_bios->regs = &bios_regs;
1007
1008 pool->base.res_cap = &res_cap;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This line was indented correctly in the original code when it was merged
last November... It's a mystery. Merge error perhaps?
https://www.mail-archive.com/amd-gfx@lists.freedesktop.org/msg21750.html
1009
1010 pool->base.funcs = &dcn10_res_pool_funcs;
1011
1012 /*
1013 * TODO fill in from actual raven resource when we create
1014 * more than virtual encoder
1015 */
regards,
dan carpenter
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [bug report] drm/amd/display: Fix indentation in dcn10 resource constructor
[not found] ` <20180627131423.vedoul3vvw73dwhn-vMlZ3nK25oGAIHFoDFOv9A@public.gmane.org>
@ 2018-07-04 17:44 ` Harry Wentland
0 siblings, 0 replies; 2+ messages in thread
From: Harry Wentland @ 2018-07-04 17:44 UTC (permalink / raw)
To: Dan Carpenter, hersenxs.wu-5C7GfCeVMHo
Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
On 2018-06-27 09:14 AM, Dan Carpenter wrote:
> Hello Hersen Wu,
>
> The patch cb1d7eacb58f: "drm/amd/display: Fix indentation in dcn10
> resource constructor" from May 8, 2018, leads to the following static
> checker warning:
>
> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_resource.c:1008 construct()
> warn: inconsistent indenting
>
> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_resource.c
> 996 static bool construct(
> 997 uint8_t num_virtual_links,
> 998 struct dc *dc,
> 999 struct dcn10_resource_pool *pool)
> 1000 {
> 1001 int i;
> 1002 int j;
> 1003 struct dc_context *ctx = dc->ctx;
> 1004 uint32_t pipe_fuses = read_pipe_fuses(ctx);
> 1005
> 1006 ctx->dc_bios->regs = &bios_regs;
> 1007
> 1008 pool->base.res_cap = &res_cap;
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> This line was indented correctly in the original code when it was merged
> last November... It's a mystery. Merge error perhaps?
>
That was a merge error when I pulled the change from our internal repo. I'll send a patch to clean this up.
Harry
> https://www.mail-archive.com/amd-gfx@lists.freedesktop.org/msg21750.html
>
> 1009
> 1010 pool->base.funcs = &dcn10_res_pool_funcs;
> 1011
> 1012 /*
> 1013 * TODO fill in from actual raven resource when we create
> 1014 * more than virtual encoder
> 1015 */
>
> regards,
> dan carpenter
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-04 17:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-27 13:14 [bug report] drm/amd/display: Fix indentation in dcn10 resource constructor Dan Carpenter
[not found] ` <20180627131423.vedoul3vvw73dwhn-vMlZ3nK25oGAIHFoDFOv9A@public.gmane.org>
2018-07-04 17:44 ` Harry Wentland
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.