Skip to content

Commit

Permalink
[media] mm/drivers: use vm_flags_t for vma flags
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantin 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: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Konstantin Khlebnikov authored and Mauro Carvalho Chehab committed Apr 10, 2012
1 parent 72da1f2 commit 7cfce77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/media/video/omap3isp/ispqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ struct isp_video_buffer {
void *vaddr;

/* For userspace buffers. */
unsigned long vm_flags;
vm_flags_t vm_flags;
unsigned long offset;
unsigned int npages;
struct page **pages;
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/android/ashmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ static loff_t ashmem_llseek(struct file *file, loff_t offset, int origin)
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) |
_calc_vm_trans(prot, PROT_WRITE, VM_MAYWRITE) |
Expand Down

0 comments on commit 7cfce77

Please sign in to comment.