2022-09-20 12:00:37

by Sudip Mukherjee

[permalink] [raw]
Subject: build failure of next-20220920 due to c2b08e7a6d27 ("drm/amdgpu: move entity selection and job init earlier during CS")

Hi All,

The builds of arm64 allmodconfig with clang failed to build next-20220920
with the error:

drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:1190:3: error: variable 'r' is uninitialized when used here [-Werror,-Wuninitialized]
r |= !amdgpu_ttm_tt_get_user_pages_done(bo->tbo.ttm);
^
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:1171:7: note: initialize the variable 'r' to silence this warning
int r;
^
= 0
1 error generated.


git bisect pointed to c2b08e7a6d27 ("drm/amdgpu: move entity selection and job init earlier during CS")

I will be happy to test any patch or provide any extra log if needed.


--
Regards
Sudip


2022-09-20 12:56:35

by Christian König

[permalink] [raw]
Subject: Re: build failure of next-20220920 due to c2b08e7a6d27 ("drm/amdgpu: move entity selection and job init earlier during CS")

Thanks for pointing this out! It's indeed quite a bug.

Going to send a patch ASAP.

Regards,
Christian.

Am 20.09.22 um 13:47 schrieb Sudip Mukherjee:
> Hi All,
>
> The builds of arm64 allmodconfig with clang failed to build next-20220920
> with the error:
>
> drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:1190:3: error: variable 'r' is uninitialized when used here [-Werror,-Wuninitialized]
> r |= !amdgpu_ttm_tt_get_user_pages_done(bo->tbo.ttm);
> ^
> drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:1171:7: note: initialize the variable 'r' to silence this warning
> int r;
> ^
> = 0
> 1 error generated.
>
>
> git bisect pointed to c2b08e7a6d27 ("drm/amdgpu: move entity selection and job init earlier during CS")
>
> I will be happy to test any patch or provide any extra log if needed.
>
>