bug 5942: add stubs for drm_mtrr_add/del for non-MTRR configured linux

main
Felix Kuhling 2006-09-22 03:46:54 +10:00 committed by Dave Airlie
parent 255f3e6f76
commit 62f6ea2256
1 changed files with 12 additions and 0 deletions

View File

@ -810,6 +810,18 @@ static inline int drm_mtrr_del(int handle, unsigned long offset,
}
#else
static inline int drm_mtrr_add(unsigned long offset, unsigned long size,
unsigned int flags)
{
return -ENODEV;
}
static inline int drm_mtrr_del(int handle, unsigned long offset,
unsigned long size, unsigned int flags)
{
return -ENODEV;
}
#define drm_core_has_MTRR(dev) (0)
#endif