[PATCH, RESEND] drm: avoid uninitialized timestamp use in wait_vblank

2016-02-26 Thread David Herrmann
Hi On Thu, Feb 25, 2016 at 10:09 PM, Arnd Bergmann wrote: > gcc warns about the timestamp in drm_wait_vblank being possibly > used without an initialization: > > drivers/gpu/drm/drm_irq.c: In function 'drm_wait_vblank': > drivers/gpu/drm/drm_irq.c:1755:28: warning: 'now.tv_usec' may be used > un

[PATCH, RESEND] drm: avoid uninitialized timestamp use in wait_vblank

2016-02-25 Thread Arnd Bergmann
gcc warns about the timestamp in drm_wait_vblank being possibly used without an initialization: drivers/gpu/drm/drm_irq.c: In function 'drm_wait_vblank': drivers/gpu/drm/drm_irq.c:1755:28: warning: 'now.tv_usec' may be used uninitialized in this function [-Wmaybe-uninitialized] vblwait->reply.