diff options
author | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2018-07-23 12:13:12 -0400 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2018-07-23 12:13:12 -0400 |
commit | c74a7469f97c0f40b46e82ee979f9fb1bb6e847c (patch) | |
tree | f2690a1a916b73ef94657fbf0e0141ae57701825 /drivers/gpu/drm/drm_vm.c | |
parent | 6f15a7de86c8cf2dc09fc9e6d07047efa40ef809 (diff) | |
parent | 500775074f88d9cf5416bed2ca19592812d62c41 (diff) |
Merge drm/drm-next into drm-intel-next-queued
We need a backmerge to get DP_DPCD_REV_14 before we push other
i915 changes to dinq that could break compilation.
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/drm_vm.c')
-rw-r--r-- | drivers/gpu/drm/drm_vm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/drm_vm.c b/drivers/gpu/drm/drm_vm.c index 2660543ad86a..c3301046dfaa 100644 --- a/drivers/gpu/drm/drm_vm.c +++ b/drivers/gpu/drm/drm_vm.c | |||
@@ -100,7 +100,7 @@ static pgprot_t drm_dma_prot(uint32_t map_type, struct vm_area_struct *vma) | |||
100 | * map, get the page, increment the use count and return it. | 100 | * map, get the page, increment the use count and return it. |
101 | */ | 101 | */ |
102 | #if IS_ENABLED(CONFIG_AGP) | 102 | #if IS_ENABLED(CONFIG_AGP) |
103 | static int drm_vm_fault(struct vm_fault *vmf) | 103 | static vm_fault_t drm_vm_fault(struct vm_fault *vmf) |
104 | { | 104 | { |
105 | struct vm_area_struct *vma = vmf->vma; | 105 | struct vm_area_struct *vma = vmf->vma; |
106 | struct drm_file *priv = vma->vm_file->private_data; | 106 | struct drm_file *priv = vma->vm_file->private_data; |
@@ -173,7 +173,7 @@ vm_fault_error: | |||
173 | return VM_FAULT_SIGBUS; /* Disallow mremap */ | 173 | return VM_FAULT_SIGBUS; /* Disallow mremap */ |
174 | } | 174 | } |
175 | #else | 175 | #else |
176 | static int drm_vm_fault(struct vm_fault *vmf) | 176 | static vm_fault_t drm_vm_fault(struct vm_fault *vmf) |
177 | { | 177 | { |
178 | return VM_FAULT_SIGBUS; | 178 | return VM_FAULT_SIGBUS; |
179 | } | 179 | } |
@@ -189,7 +189,7 @@ static int drm_vm_fault(struct vm_fault *vmf) | |||
189 | * Get the mapping, find the real physical page to map, get the page, and | 189 | * Get the mapping, find the real physical page to map, get the page, and |
190 | * return it. | 190 | * return it. |
191 | */ | 191 | */ |
192 | static int drm_vm_shm_fault(struct vm_fault *vmf) | 192 | static vm_fault_t drm_vm_shm_fault(struct vm_fault *vmf) |
193 | { | 193 | { |
194 | struct vm_area_struct *vma = vmf->vma; | 194 | struct vm_area_struct *vma = vmf->vma; |
195 | struct drm_local_map *map = vma->vm_private_data; | 195 | struct drm_local_map *map = vma->vm_private_data; |
@@ -291,7 +291,7 @@ static void drm_vm_shm_close(struct vm_area_struct *vma) | |||
291 | * | 291 | * |
292 | * Determine the page number from the page offset and get it from drm_device_dma::pagelist. | 292 | * Determine the page number from the page offset and get it from drm_device_dma::pagelist. |
293 | */ | 293 | */ |
294 | static int drm_vm_dma_fault(struct vm_fault *vmf) | 294 | static vm_fault_t drm_vm_dma_fault(struct vm_fault *vmf) |
295 | { | 295 | { |
296 | struct vm_area_struct *vma = vmf->vma; | 296 | struct vm_area_struct *vma = vmf->vma; |
297 | struct drm_file *priv = vma->vm_file->private_data; | 297 | struct drm_file *priv = vma->vm_file->private_data; |
@@ -326,7 +326,7 @@ static int drm_vm_dma_fault(struct vm_fault *vmf) | |||
326 | * | 326 | * |
327 | * Determine the map offset from the page offset and get it from drm_sg_mem::pagelist. | 327 | * Determine the map offset from the page offset and get it from drm_sg_mem::pagelist. |
328 | */ | 328 | */ |
329 | static int drm_vm_sg_fault(struct vm_fault *vmf) | 329 | static vm_fault_t drm_vm_sg_fault(struct vm_fault *vmf) |
330 | { | 330 | { |
331 | struct vm_area_struct *vma = vmf->vma; | 331 | struct vm_area_struct *vma = vmf->vma; |
332 | struct drm_local_map *map = vma->vm_private_data; | 332 | struct drm_local_map *map = vma->vm_private_data; |