From: Dave Airlie Date: Thu, 12 Jan 2006 09:44:30 +0000 (+1100) Subject: drm: fix issues with systems with no MTRR X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9c7d462eda13ca211b7b4a62f191f4cfda135e2d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h index 307254da7d08..54b561e69486 100644 --- a/drivers/char/drm/drmP.h +++ b/drivers/char/drm/drmP.h @@ -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 /******************************************************************/