OSDN Git Service

Fix build problems
authorAlan Hourihane <alanh@tungstengraphics.com>
Fri, 9 May 2008 15:36:28 +0000 (16:36 +0100)
committerAlan Hourihane <alanh@tungstengraphics.com>
Fri, 9 May 2008 15:36:28 +0000 (16:36 +0100)
linux-core/drm_compat.c
tests/mode/modetest.c

index 2a76196..dbb3157 100644 (file)
@@ -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;
index 1fab040..99238d5 100644 (file)
@@ -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);