mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
drm: fix issues with systems with no MTRR
On systems with no MTRR we should still define the interface. Original bug from apkm. Signed-off-by: Dave Airlie <airlied@linux.ie>
This commit is contained in:
parent
aab8df141f
commit
9c7d462eda
1 changed files with 14 additions and 0 deletions
|
@ -767,6 +767,20 @@ static inline int drm_mtrr_del(int handle, unsigned long offset,
|
|||
|
||||
#else
|
||||
#define drm_core_has_MTRR(dev) (0)
|
||||
|
||||
#define DRM_MTRR_WC 0
|
||||
|
||||
static inline int drm_mtrr_add(unsigned long offset, unsigned long size,
|
||||
unsigned int flags)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int drm_mtrr_del(int handle, unsigned long offset,
|
||||
unsigned long size, unsigned int flags)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/******************************************************************/
|
||||
|
|
Loading…
Reference in a new issue