diff options
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_bo_util.c')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_bo_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c index 406152152315..1df856f78568 100644 --- a/drivers/gpu/drm/ttm/ttm_bo_util.c +++ b/drivers/gpu/drm/ttm/ttm_bo_util.c | |||
@@ -187,7 +187,7 @@ void ttm_mem_io_free_vm(struct ttm_buffer_object *bo) | |||
187 | } | 187 | } |
188 | } | 188 | } |
189 | 189 | ||
190 | int ttm_mem_reg_ioremap(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem, | 190 | static int ttm_mem_reg_ioremap(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem, |
191 | void **virtual) | 191 | void **virtual) |
192 | { | 192 | { |
193 | struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; | 193 | struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; |
@@ -219,7 +219,7 @@ int ttm_mem_reg_ioremap(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem, | |||
219 | return 0; | 219 | return 0; |
220 | } | 220 | } |
221 | 221 | ||
222 | void ttm_mem_reg_iounmap(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem, | 222 | static void ttm_mem_reg_iounmap(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem, |
223 | void *virtual) | 223 | void *virtual) |
224 | { | 224 | { |
225 | struct ttm_mem_type_manager *man; | 225 | struct ttm_mem_type_manager *man; |
@@ -594,7 +594,7 @@ int ttm_bo_kmap(struct ttm_buffer_object *bo, | |||
594 | if (start_page > bo->num_pages) | 594 | if (start_page > bo->num_pages) |
595 | return -EINVAL; | 595 | return -EINVAL; |
596 | #if 0 | 596 | #if 0 |
597 | if (num_pages > 1 && !DRM_SUSER(DRM_CURPROC)) | 597 | if (num_pages > 1 && !capable(CAP_SYS_ADMIN)) |
598 | return -EPERM; | 598 | return -EPERM; |
599 | #endif | 599 | #endif |
600 | (void) ttm_mem_io_lock(man, false); | 600 | (void) ttm_mem_io_lock(man, false); |