Skip to content

Commit

Permalink
drm/ttm: Fix build on architectures without AGP
Browse files Browse the repository at this point in the history
Make inclusion of <asm/agp.h> conditional on TTM_HAS_AGP.  The use
of the functions declared in it is already conditional.

Reported-by: Geert Stappers <stappers@stappers.nl>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Tested-by: Geert Stappers <stappers@stappers.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Ben Hutchings authored and Dave Airlie committed Jul 20, 2010
1 parent 8d369bb commit 1e8655f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/ttm/ttm_page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
#include <linux/slab.h>

#include <asm/atomic.h>
#ifdef TTM_HAS_AGP
#include <asm/agp.h>
#endif

#include "ttm/ttm_bo_driver.h"
#include "ttm/ttm_page_alloc.h"
Expand Down

0 comments on commit 1e8655f

Please sign in to comment.