drm/ttm: Fix build on architectures without AGP
Subsystems (3)
PATCH 1/1 drm/ttm: Fix build on architectures without AGP
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 <[email protected]>
Signed-off-by Ben Hutchings <[email protected]>
Tested-by Geert Stappers <[email protected]>
--- drivers/gpu/drm/ttm/ttm_page_alloc.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/ttm/ttm_page_alloc.c +2 -0
@@ -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"
Signature · 1 line
1.7.1