aboutsummaryrefslogtreecommitdiff
path: root/linux-core/drm_compat.c
diff options
context:
space:
mode:
authorPatrice Mandin <pmandin@caramail.com>2008-02-29 21:57:40 +0100
committerPatrice Mandin <pmandin@caramail.com>2008-02-29 21:57:40 +0100
commit09999c90ab1bf3f7d8b277895c962c8a7b3afc18 (patch)
tree95532b65695b840b213526de40bcfd959c258ae3 /linux-core/drm_compat.c
parent1d068973d5f5e6d8d14b4c0c6e28588107aafc6f (diff)
FIX_KMAP_BEGIN requires CONFIG_HIMEM (see include/asm-i386.h/fixmap.h)
Diffstat (limited to 'linux-core/drm_compat.c')
-rw-r--r--linux-core/drm_compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_compat.c b/linux-core/drm_compat.c
index eb6c5d81..d4044cbd 100644
--- a/linux-core/drm_compat.c
+++ b/linux-core/drm_compat.c
@@ -730,7 +730,7 @@ void *idr_replace(struct idr *idp, void *ptr, int id)
EXPORT_SYMBOL(idr_replace);
#endif
-#if defined(DRM_KMAP_ATOMIC_PROT_PFN)
+#if defined(DRM_KMAP_ATOMIC_PROT_PFN) && defined(CONFIG_HIMEM)
#define drm_kmap_get_fixmap_pte(vaddr) \
pte_offset_kernel(pmd_offset(pud_offset(pgd_offset_k(vaddr), vaddr), (vaddr)), (vaddr))