FIX_KMAP_BEGIN requires CONFIG_HIMEM (see include/asm-i386.h/fixmap.h)
authorPatrice Mandin <pmandin@caramail.com>
Fri, 29 Feb 2008 20:57:40 +0000 (21:57 +0100)
committerPatrice Mandin <pmandin@caramail.com>
Fri, 29 Feb 2008 20:57:40 +0000 (21:57 +0100)
linux-core/drm_compat.c
linux-core/drm_compat.h

index eb6c5d8..d4044cb 100644 (file)
@@ -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))
 
index 08892e6..136a729 100644 (file)
@@ -328,7 +328,7 @@ void *idr_replace(struct idr *idp, void *ptr, int id);
 typedef _Bool                   bool;
 #endif
 
-#if (defined(CONFIG_X86) && defined(CONFIG_X86_32))
+#if (defined(CONFIG_X86) && defined(CONFIG_X86_32) && defined(CONFIG_HIMEM))
 #define DRM_KMAP_ATOMIC_PROT_PFN
 extern void *kmap_atomic_prot_pfn(unsigned long pfn, enum km_type type,
                                  pgprot_t protection);