From e17abf5d5dc7c9895ed9aea0efb4ac501171fa54 Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Thu, 30 Sep 2004 23:47:45 +0000 Subject: Make the debug memory functions compile for the core model. --- linux-core/drm_memory.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'linux-core/drm_memory.h') diff --git a/linux-core/drm_memory.h b/linux-core/drm_memory.h index 3a31e74b..e3ac883d 100644 --- a/linux-core/drm_memory.h +++ b/linux-core/drm_memory.h @@ -160,9 +160,9 @@ static inline unsigned long drm_follow_page(void *vaddr) { return 0; } - #endif +#ifndef DEBUG_MEMORY static inline void *drm_ioremap(unsigned long offset, unsigned long size, drm_device_t * dev) { @@ -218,3 +218,11 @@ static inline void drm_ioremapfree(void *pt, unsigned long size, #endif iounmap(pt); } +#else +extern void *drm_ioremap(unsigned long offset, unsigned long size, + drm_device_t * dev); +extern void *drm_ioremap_nocache(unsigned long offset, + unsigned long size, drm_device_t * dev); +extern void drm_ioremapfree(void *pt, unsigned long size, + drm_device_t * dev); +#endif -- cgit v1.2.3