bug 5942: add stubs for drm_mtrr_add/del for non-MTRR configured linux
parent
255f3e6f76
commit
62f6ea2256
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue