Commit 7cfce77d authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov Committed by Mauro Carvalho Chehab

[media] mm/drivers: use vm_flags_t for vma flags

Signed-off-by: default avatarKonstantin Khlebnikov <khlebnikov@openvz.org>
Cc: linux-media@vger.kernel.org
Cc: devel@driverdev.osuosl.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: John Stultz <john.stultz@linaro.org>
Cc: "Arve Hjønnevåg" <arve@android.com>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 72da1f20
...@@ -90,7 +90,7 @@ struct isp_video_buffer { ...@@ -90,7 +90,7 @@ struct isp_video_buffer {
void *vaddr; void *vaddr;
/* For userspace buffers. */ /* For userspace buffers. */
unsigned long vm_flags; vm_flags_t vm_flags;
unsigned long offset; unsigned long offset;
unsigned int npages; unsigned int npages;
struct page **pages; struct page **pages;
......
...@@ -269,7 +269,7 @@ static loff_t ashmem_llseek(struct file *file, loff_t offset, int origin) ...@@ -269,7 +269,7 @@ static loff_t ashmem_llseek(struct file *file, loff_t offset, int origin)
return ret; return ret;
} }
static inline unsigned long calc_vm_may_flags(unsigned long prot) static inline vm_flags_t calc_vm_may_flags(unsigned long prot)
{ {
return _calc_vm_trans(prot, PROT_READ, VM_MAYREAD) | return _calc_vm_trans(prot, PROT_READ, VM_MAYREAD) |
_calc_vm_trans(prot, PROT_WRITE, VM_MAYWRITE) | _calc_vm_trans(prot, PROT_WRITE, VM_MAYWRITE) |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment