[PATCH] drm: Fix undefined reference to drm_agp_clear() on non-AGP platforms

2013-08-07 Thread David Herrmann
Hi On Wed, Aug 7, 2013 at 2:39 PM, Laurent Pinchart wrote: > Hi Daniel, > > On Wednesday 07 August 2013 14:19:34 Daniel Vetter wrote: >> On Wed, Aug 7, 2013 at 2:17 PM, Laurent Pinchart wrote: >> > The drm_agp_clear() function is only defined on platforms with AGP >> > support. Move the drm_core_

[PATCH] drm: Fix undefined reference to drm_agp_clear() on non-AGP platforms

2013-08-07 Thread Laurent Pinchart
Hi Daniel, On Wednesday 07 August 2013 14:19:34 Daniel Vetter wrote: > On Wed, Aug 7, 2013 at 2:17 PM, Laurent Pinchart wrote: > > The drm_agp_clear() function is only defined on platforms with AGP > > support. Move the drm_core_has_AGP() check from drm_agp_clear() to the > > caller to let the com

[PATCH] drm: Fix undefined reference to drm_agp_clear() on non-AGP platforms

2013-08-07 Thread Daniel Vetter
On Wed, Aug 7, 2013 at 2:17 PM, Laurent Pinchart wrote: > The drm_agp_clear() function is only defined on platforms with AGP > support. Move the drm_core_has_AGP() check from drm_agp_clear() to the > caller to let the compiler optimize the drm_agp_clear() call away. > > Signed-off-by: Laurent Pinc

[PATCH] drm: Fix undefined reference to drm_agp_clear() on non-AGP platforms

2013-08-07 Thread Laurent Pinchart
The drm_agp_clear() function is only defined on platforms with AGP support. Move the drm_core_has_AGP() check from drm_agp_clear() to the caller to let the compiler optimize the drm_agp_clear() call away. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/drm_agpsupport.c | 2 +- drivers/gpu/dr

Re: [PATCH] drm: Fix undefined reference to drm_agp_clear() on non-AGP platforms

2013-08-07 Thread David Herrmann
Hi On Wed, Aug 7, 2013 at 2:39 PM, Laurent Pinchart wrote: > Hi Daniel, > > On Wednesday 07 August 2013 14:19:34 Daniel Vetter wrote: >> On Wed, Aug 7, 2013 at 2:17 PM, Laurent Pinchart wrote: >> > The drm_agp_clear() function is only defined on platforms with AGP >> > support. Move the drm_core_

Re: [PATCH] drm: Fix undefined reference to drm_agp_clear() on non-AGP platforms

2013-08-07 Thread Laurent Pinchart
Hi Daniel, On Wednesday 07 August 2013 14:19:34 Daniel Vetter wrote: > On Wed, Aug 7, 2013 at 2:17 PM, Laurent Pinchart wrote: > > The drm_agp_clear() function is only defined on platforms with AGP > > support. Move the drm_core_has_AGP() check from drm_agp_clear() to the > > caller to let the com

Re: [PATCH] drm: Fix undefined reference to drm_agp_clear() on non-AGP platforms

2013-08-07 Thread Daniel Vetter
On Wed, Aug 7, 2013 at 2:17 PM, Laurent Pinchart wrote: > The drm_agp_clear() function is only defined on platforms with AGP > support. Move the drm_core_has_AGP() check from drm_agp_clear() to the > caller to let the compiler optimize the drm_agp_clear() call away. > > Signed-off-by: Laurent Pinc

[PATCH] drm: Fix undefined reference to drm_agp_clear() on non-AGP platforms

2013-08-07 Thread Laurent Pinchart
The drm_agp_clear() function is only defined on platforms with AGP support. Move the drm_core_has_AGP() check from drm_agp_clear() to the caller to let the compiler optimize the drm_agp_clear() call away. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/drm_agpsupport.c | 2 +- drivers/gpu/dr