mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-06 08:30:18 +01:00
bug 5942: add stubs for drm_mtrr_add/del for non-MTRR configured linux
This commit is contained in:
parent
255f3e6f76
commit
62f6ea2256
1 changed files with 12 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue