Skip to content

Commit

Permalink
drm: fix issues with systems with no MTRR
Browse files Browse the repository at this point in the history
On systems with no MTRR we should still define the interface.

Original bug from apkm.
Signed-off-by: Dave Airlie <airlied@linux.ie>
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Jan 12, 2006
1 parent aab8df1 commit 9c7d462
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions drivers/char/drm/drmP.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/******************************************************************/
Expand Down

0 comments on commit 9c7d462

Please sign in to comment.