[PATCH] drm/radeon: Update radeon_get_vblank_counter_kms()

2016-01-04 Thread Thierry Reding
On Mon, Jan 04, 2016 at 11:45:05AM -0500, Alex Deucher wrote: > On Mon, Jan 4, 2016 at 10:44 AM, Thierry Reding > wrote: > > From: Thierry Reding > > > > Commit 88e72717c2de ("drm/irq: Use unsigned int pipe in public API") > > updated the prototype of this function but not the implementation. Thi

[PATCH] drm/radeon: Update radeon_get_vblank_counter_kms()

2016-01-04 Thread Thierry Reding
From: Thierry Reding Commit 88e72717c2de ("drm/irq: Use unsigned int pipe in public API") updated the prototype of this function but not the implementation. This wasn't noticed even through compile tests because the prototype is part of the source file that uses it and hence the compiler won't kn

[PATCH] drm/radeon: Update radeon_get_vblank_counter_kms()

2016-01-04 Thread Thierry Reding
On Thu, Dec 17, 2015 at 03:35:50PM +0900, Michel Dänzer wrote: > On 16.12.2015 23:31, Thierry Reding wrote: > > > > - if (crtc < 0 || crtc >= rdev->num_crtc) { > > - DRM_ERROR("Invalid crtc %d\n", crtc); > > + if (pipe < 0 || pipe >= rdev->num_crtc) { > > + DRM_ERROR("Inva

[PATCH] drm/radeon: Update radeon_get_vblank_counter_kms()

2016-01-04 Thread Alex Deucher
On Mon, Jan 4, 2016 at 10:44 AM, Thierry Reding wrote: > From: Thierry Reding > > Commit 88e72717c2de ("drm/irq: Use unsigned int pipe in public API") > updated the prototype of this function but not the implementation. This > wasn't noticed even through compile tests because the prototype is par

[PATCH] drm/radeon: Update radeon_get_vblank_counter_kms()

2015-12-17 Thread Michel Dänzer
On 16.12.2015 23:31, Thierry Reding wrote: > > - if (crtc < 0 || crtc >= rdev->num_crtc) { > - DRM_ERROR("Invalid crtc %d\n", crtc); > + if (pipe < 0 || pipe >= rdev->num_crtc) { > + DRM_ERROR("Invalid crtc %u\n", pipe); Does it still make sense to test for < 0? Do

[PATCH] drm/radeon: Update radeon_get_vblank_counter_kms()

2015-12-16 Thread Christian König
On 16.12.2015 15:31, Thierry Reding wrote: > From: Thierry Reding > > Commit 88e72717c2de ("drm/irq: Use unsigned int pipe in public API") > updated the prototype of this function but not the implementation. This > wasn't noticed even through compile tests because the prototype is part > of the so

[PATCH] drm/radeon: Update radeon_get_vblank_counter_kms()

2015-12-16 Thread Thierry Reding
From: Thierry Reding Commit 88e72717c2de ("drm/irq: Use unsigned int pipe in public API") updated the prototype of this function but not the implementation. This wasn't noticed even through compile tests because the prototype is part of the source file that uses it and hence the compiler won't kn