summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorFelix Kuhling <fxkuehl@gmx.de>2006-09-22 03:46:54 +1000
committerDave Airlie <airlied@linux.ie>2006-09-22 03:46:54 +1000
commit62f6ea225615392098dedee47d4ccdd69e126a43 (patch)
treefe736aa540449b7595f3c18449c1d62f369fd786 /linux-core
parent255f3e6f76dfd267a14765dd1293229184298d89 (diff)
bug 5942: add stubs for drm_mtrr_add/del for non-MTRR configured linux
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drmP.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index a955c3de..fd48059a 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -810,6 +810,18 @@ static inline int drm_mtrr_del(int handle, unsigned long offset,
}
#else
+static inline int drm_mtrr_add(unsigned long offset, unsigned long size,
+ unsigned int flags)
+{
+ return -ENODEV;
+}
+
+static inline int drm_mtrr_del(int handle, unsigned long offset,
+ unsigned long size, unsigned int flags)
+{
+ return -ENODEV;
+}
+
#define drm_core_has_MTRR(dev) (0)
#endif