Fix compilation breakage on x86-64.

main
Thomas Hellstrom 2008-02-29 13:31:14 +01:00
parent cdbd616ea5
commit 1d068973d5
2 changed files with 2 additions and 3 deletions

View File

@ -730,8 +730,7 @@ void *idr_replace(struct idr *idp, void *ptr, int id)
EXPORT_SYMBOL(idr_replace);
#endif
#if defined(CONFIG_X86)
#if defined(DRM_KMAP_ATOMIC_PROT_PFN)
#define drm_kmap_get_fixmap_pte(vaddr) \
pte_offset_kernel(pmd_offset(pud_offset(pgd_offset_k(vaddr), vaddr), (vaddr)), (vaddr))

View File

@ -328,7 +328,7 @@ void *idr_replace(struct idr *idp, void *ptr, int id);
typedef _Bool bool;
#endif
#if defined(CONFIG_X86)
#if (defined(CONFIG_X86) && defined(CONFIG_X86_32))
#define DRM_KMAP_ATOMIC_PROT_PFN
extern void *kmap_atomic_prot_pfn(unsigned long pfn, enum km_type type,
pgprot_t protection);