* drm-next amdgpu warning
@ 2015-08-17 5:58 Dave Airlie
2015-08-17 10:48 ` Thierry Reding
0 siblings, 1 reply; 3+ messages in thread
From: Dave Airlie @ 2015-08-17 5:58 UTC (permalink / raw)
To: dri-devel, Alex Deucher
Hey Alex,
this seems valid,
/home/airlied/devel/kernel/drm-next/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:
In function ‘amdgpu_uvd_cs_pass2’:
/home/airlied/devel/kernel/drm-next/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:491:17:
warning: ‘min_ctx_size’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
buf_sizes[0x4] = min_ctx_size;
^
/home/airlied/devel/kernel/drm-next/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:377:58:
note: ‘min_ctx_size’ was declared here
unsigned image_size, tmp, min_dpb_size, num_dpb_buffer, min_ctx_size;
^
Dave.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: drm-next amdgpu warning
2015-08-17 5:58 drm-next amdgpu warning Dave Airlie
@ 2015-08-17 10:48 ` Thierry Reding
2015-08-17 14:33 ` Alex Deucher
0 siblings, 1 reply; 3+ messages in thread
From: Thierry Reding @ 2015-08-17 10:48 UTC (permalink / raw)
To: Dave Airlie; +Cc: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 960 bytes --]
On Mon, Aug 17, 2015 at 03:58:10PM +1000, Dave Airlie wrote:
> Hey Alex,
>
> this seems valid,
>
> /home/airlied/devel/kernel/drm-next/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:
> In function ‘amdgpu_uvd_cs_pass2’:
> /home/airlied/devel/kernel/drm-next/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:491:17:
> warning: ‘min_ctx_size’ may be used uninitialized in this function
> [-Wmaybe-uninitialized]
> buf_sizes[0x4] = min_ctx_size;
> ^
> /home/airlied/devel/kernel/drm-next/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:377:58:
> note: ‘min_ctx_size’ was declared here
> unsigned image_size, tmp, min_dpb_size, num_dpb_buffer, min_ctx_size;
> ^
There's a patch for this here:
https://patchwork.kernel.org/patch/7014391/
There's apparently also an internal patch that fixes this, but it wasn't
clear yet which one was going to be picked up.
Thierry
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: drm-next amdgpu warning
2015-08-17 10:48 ` Thierry Reding
@ 2015-08-17 14:33 ` Alex Deucher
0 siblings, 0 replies; 3+ messages in thread
From: Alex Deucher @ 2015-08-17 14:33 UTC (permalink / raw)
To: Thierry Reding; +Cc: dri-devel
On Mon, Aug 17, 2015 at 6:48 AM, Thierry Reding
<thierry.reding@gmail.com> wrote:
> On Mon, Aug 17, 2015 at 03:58:10PM +1000, Dave Airlie wrote:
>> Hey Alex,
>>
>> this seems valid,
>>
>> /home/airlied/devel/kernel/drm-next/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:
>> In function ‘amdgpu_uvd_cs_pass2’:
>> /home/airlied/devel/kernel/drm-next/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:491:17:
>> warning: ‘min_ctx_size’ may be used uninitialized in this function
>> [-Wmaybe-uninitialized]
>> buf_sizes[0x4] = min_ctx_size;
>> ^
>> /home/airlied/devel/kernel/drm-next/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:377:58:
>> note: ‘min_ctx_size’ was declared here
>> unsigned image_size, tmp, min_dpb_size, num_dpb_buffer, min_ctx_size;
>> ^
>
> There's a patch for this here:
>
> https://patchwork.kernel.org/patch/7014391/
>
> There's apparently also an internal patch that fixes this, but it wasn't
> clear yet which one was going to be picked up.
>
> Thierry
Fixed here:
http://cgit.freedesktop.org/~agd5f/linux/commit/?h=drm-next-4.3-wip&id=21df89a5667de5fcd061753d3833e7dfcf5509d3
It's included in the -next pull I'll be sending out today.
Alex
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-17 14:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-17 5:58 drm-next amdgpu warning Dave Airlie
2015-08-17 10:48 ` Thierry Reding
2015-08-17 14:33 ` Alex Deucher
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.