From: Eric Anholt Date: Tue, 6 Jul 2004 00:25:19 +0000 (+0000) Subject: Fix module loading on alpha by not referencing MTRR symbols on X-Git-Tag: submit/1.0/20121108.012404~2080 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eaccc05b267670a0934675064e37bbd590e1028e;p=profile%2Fivi%2Flibdrm.git Fix module loading on alpha by not referencing MTRR symbols on !__REALLY_HAVE_MTRR. --- diff --git a/bsd-core/drm_memory.c b/bsd-core/drm_memory.c index af8736c..c871274 100644 --- a/bsd-core/drm_memory.c +++ b/bsd-core/drm_memory.c @@ -126,6 +126,7 @@ int DRM(unbind_agp)(agp_memory *handle) } #endif /* __REALLY_HAVE_AGP */ +#if __REALLY_HAVE_MTRR #ifdef __FreeBSD__ int DRM(mtrr_add)(unsigned long offset, size_t size, int flags) @@ -181,5 +182,6 @@ DRM(mtrr_del)(unsigned long offset, size_t size, int flags) return mtrr_set(&mtrrmap, &one, NULL, MTRR_GETSET_KERNEL); } #endif +#endif /* __REALLY_HAVE_MTRR */ #endif /* DEBUG_MEMORY */ diff --git a/bsd/drm_memory.h b/bsd/drm_memory.h index af8736c..c871274 100644 --- a/bsd/drm_memory.h +++ b/bsd/drm_memory.h @@ -126,6 +126,7 @@ int DRM(unbind_agp)(agp_memory *handle) } #endif /* __REALLY_HAVE_AGP */ +#if __REALLY_HAVE_MTRR #ifdef __FreeBSD__ int DRM(mtrr_add)(unsigned long offset, size_t size, int flags) @@ -181,5 +182,6 @@ DRM(mtrr_del)(unsigned long offset, size_t size, int flags) return mtrr_set(&mtrrmap, &one, NULL, MTRR_GETSET_KERNEL); } #endif +#endif /* __REALLY_HAVE_MTRR */ #endif /* DEBUG_MEMORY */