]> err.no Git - linux-2.6/commitdiff
drm: fix issues with systems with no MTRR
authorDave Airlie <airlied@starflyer.(none)>
Thu, 12 Jan 2006 09:44:30 +0000 (20:44 +1100)
committerDave Airlie <airlied@linux.ie>
Thu, 12 Jan 2006 09:44:30 +0000 (20:44 +1100)
On systems with no MTRR we should still define the interface.

Original bug from apkm.
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drmP.h

index 307254da7d08561a9a4a60d803c5c8ec4fe6899c..54b561e694862ef6924ef08f61ba2ad520c18a8f 100644 (file)
@@ -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
 
 /******************************************************************/