From: Ben Hutchings Date: Sun, 18 Jul 2010 20:51:42 +0000 (+0100) Subject: drm/ttm: Fix build on architectures without AGP X-Git-Tag: v2.6.35-rc6~12^2~11 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1e8655f87333def92bb8215b423adc65403b08a5;p=~shefty%2Frdma-dev.git drm/ttm: Fix build on architectures without AGP Make inclusion of conditional on TTM_HAS_AGP. The use of the functions declared in it is already conditional. Reported-by: Geert Stappers Signed-off-by: Ben Hutchings Tested-by: Geert Stappers Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c b/drivers/gpu/drm/ttm/ttm_page_alloc.c index b1d67dc973d..1f32b460adc 100644 --- a/drivers/gpu/drm/ttm/ttm_page_alloc.c +++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c @@ -40,7 +40,9 @@ #include #include +#ifdef TTM_HAS_AGP #include +#endif #include "ttm/ttm_bo_driver.h" #include "ttm/ttm_page_alloc.h"