diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-11 19:42:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-11 19:42:39 -0400 |
commit | 06a660ada2064bbdcd09aeb8173f2ad128c71978 (patch) | |
tree | 1d0172ca83bd0a8c2186fcb41ae750420d7acb14 /include/media | |
parent | d9b44fe30fb8637b23f804eab2e7afbce129d714 (diff) | |
parent | 63540f01917c0d8b03b9813a0d6539469b163139 (diff) |
Merge tag 'media/v4.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
Pull media updates from Mauro Carvalho Chehab:
"A series of patches that move part of the code used to allocate memory
from the media subsystem to the mm subsystem"
[ The mm parts have been acked by VM people, and the series was
apparently in -mm for a while - Linus ]
* tag 'media/v4.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
[media] drm/exynos: Convert g2d_userptr_get_dma_addr() to use get_vaddr_frames()
[media] media: vb2: Remove unused functions
[media] media: vb2: Convert vb2_dc_get_userptr() to use frame vector
[media] media: vb2: Convert vb2_vmalloc_get_userptr() to use frame vector
[media] media: vb2: Convert vb2_dma_sg_get_userptr() to use frame vector
[media] vb2: Provide helpers for mapping virtual addresses
[media] media: omap_vout: Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns()
[media] mm: Provide new get_vaddr_frames() helper
[media] vb2: Push mmap_sem down to memops
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/videobuf2-memops.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/media/videobuf2-memops.h b/include/media/videobuf2-memops.h index 9f36641a6781..6513c7ec3116 100644 --- a/include/media/videobuf2-memops.h +++ b/include/media/videobuf2-memops.h | |||
@@ -15,6 +15,7 @@ | |||
15 | #define _MEDIA_VIDEOBUF2_MEMOPS_H | 15 | #define _MEDIA_VIDEOBUF2_MEMOPS_H |
16 | 16 | ||
17 | #include <media/videobuf2-core.h> | 17 | #include <media/videobuf2-core.h> |
18 | #include <linux/mm.h> | ||
18 | 19 | ||
19 | /** | 20 | /** |
20 | * struct vb2_vmarea_handler - common vma refcount tracking handler | 21 | * struct vb2_vmarea_handler - common vma refcount tracking handler |
@@ -31,11 +32,9 @@ struct vb2_vmarea_handler { | |||
31 | 32 | ||
32 | extern const struct vm_operations_struct vb2_common_vm_ops; | 33 | extern const struct vm_operations_struct vb2_common_vm_ops; |
33 | 34 | ||
34 | int vb2_get_contig_userptr(unsigned long vaddr, unsigned long size, | 35 | struct frame_vector *vb2_create_framevec(unsigned long start, |
35 | struct vm_area_struct **res_vma, dma_addr_t *res_pa); | 36 | unsigned long length, |
36 | 37 | bool write); | |
37 | struct vm_area_struct *vb2_get_vma(struct vm_area_struct *vma); | 38 | void vb2_destroy_framevec(struct frame_vector *vec); |
38 | void vb2_put_vma(struct vm_area_struct *vma); | ||
39 | |||
40 | 39 | ||
41 | #endif | 40 | #endif |