Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c7d462e authored by Dave Airlie's avatar Dave Airlie Committed by Dave Airlie
Browse files

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: default avatarDave Airlie <airlied@linux.ie>
parent aab8df14
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -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

/******************************************************************/