Message ID | 1359504590-23517-1-git-send-email-swarren@wwwdotorg.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 01/29/2013 05:09 PM, Stephen Warren wrote: > From: Stephen Warren <swarren@nvidia.com> > > Silence the following: > drivers/gpu/drm/drm_irq.c: In function 'drm_calc_vbltimestamp_from_scanoutpos': > drivers/gpu/drm/drm_irq.c:583:24: warning: 'mono_time_offset.tv64' may be used uninitialized in this function FYI, I found that I see this warning with gcc-4.5.3, but not with gcc-4.7.2 or gcc-4.6.3. Hence, you might decide you don't care about this patch.
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index 19c01ca..b199818 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c @@ -580,7 +580,7 @@ int drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev, int crtc, unsigned flags, struct drm_crtc *refcrtc) { - ktime_t stime, etime, mono_time_offset; + ktime_t stime, etime, mono_time_offset = {0}; struct timeval tv_etime; struct drm_display_mode *mode; int vbl_status, vtotal, vdisplay;