projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d369bb
)
drm/ttm: Fix build on architectures without AGP
author
Ben Hutchings
<ben@decadent.org.uk>
Sun, 18 Jul 2010 20:51:42 +0000
(21:51 +0100)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 20 Jul 2010 05:24:06 +0000
(15:24 +1000)
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>
drivers/gpu/drm/ttm/ttm_page_alloc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/ttm/ttm_page_alloc.c
b/drivers/gpu/drm/ttm/ttm_page_alloc.c
index b1d67dc973dce9b2f86581f3de139bf2ad34f80b..1f32b460adceff38c58a06073eb18f7d14fc26ec 100644
(file)
--- a/
drivers/gpu/drm/ttm/ttm_page_alloc.c
+++ b/
drivers/gpu/drm/ttm/ttm_page_alloc.c
@@
-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"