summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2008-05-09 16:36:28 +0100
committerAlan Hourihane <alanh@tungstengraphics.com>2008-05-09 16:36:28 +0100
commiteeff906aa0f64da12a0154c66d99e8492dd95107 (patch)
tree8a2e46e6f61e5beca1ef212f223053ba1e8b1073
parent7317e774b5cddb7218c1416fa4d9ee98756e4890 (diff)
Fix build problems
-rw-r--r--linux-core/drm_compat.c2
-rw-r--r--tests/mode/modetest.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_compat.c b/linux-core/drm_compat.c
index 2a761963..dbb31578 100644
--- a/linux-core/drm_compat.c
+++ b/linux-core/drm_compat.c
@@ -217,7 +217,7 @@ static struct page *drm_bo_vm_fault(struct vm_area_struct *vma,
mutex_lock(&bo->mutex);
- err = drm_bo_wait(bo, 0, 1, 0);
+ err = drm_bo_wait(bo, 0, 1, 0, 1);
if (err) {
data->type = (err == -EAGAIN) ?
VM_FAULT_MINOR : VM_FAULT_SIGBUS;
diff --git a/tests/mode/modetest.c b/tests/mode/modetest.c
index 1fab0406..99238d5a 100644
--- a/tests/mode/modetest.c
+++ b/tests/mode/modetest.c
@@ -351,7 +351,7 @@ int main(int argc, char **argv)
printf("Starting test\n");
- fd = drmOpenControl(0);
+ fd = drmOpen("i915", NULL);
if (fd < 0) {
printf("Failed to open the card fb (%d)\n",fd);