From: Luck, Tony Date: Wed, 21 Jul 2010 17:15:39 +0000 (-0700) Subject: Fix ttm_page_alloc.c build breakage X-Git-Tag: v2.6.35-rc6~2^2~2 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=d667865114d10723f4d22cc5b7bf2c743d1f2198;hp=15cb02c0a0338ee724bf23e31c7c410ecbffeeba;p=net-next-2.6.git Fix ttm_page_alloc.c build breakage The commit 1e8655f87333def92bb8215b423adc65403b08a5 drm/ttm: Fix build on architectures without AGP looks at TTM_HAS_AGP before it has been set in ttm_bo_driver.h Move the conditional inclusion of *after* we have included ttm_bo_driver.h Signed-of-by: Tony Luck 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 1f32b460adc..f394b3b2fad 100644 --- a/drivers/gpu/drm/ttm/ttm_page_alloc.c +++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c @@ -40,13 +40,13 @@ #include #include -#ifdef TTM_HAS_AGP -#include -#endif #include "ttm/ttm_bo_driver.h" #include "ttm/ttm_page_alloc.h" +#ifdef TTM_HAS_AGP +#include +#endif #define NUM_PAGES_TO_ALLOC (PAGE_SIZE/sizeof(struct page *)) #define SMALL_ALLOCATION 16