[media] mm/drivers: use vm_flags_t for vma flags
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Wed, 21 Mar 2012 05:56:33 +0000 (02:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 10 Apr 2012 18:44:21 +0000 (15:44 -0300)
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>
drivers/media/video/omap3isp/ispqueue.h
drivers/staging/android/ashmem.c

index 92c5a12157d56ecd63861f131088904870868a0a..908dfd712e8e3fa809637962f141b76dd0768571 100644 (file)
@@ -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;
index 9f1f27e7c86e2f59cbec618eb63726ea042c34e2..4511420849bc1dd61368e7cbbfc7b8080e819bee 100644 (file)
@@ -269,7 +269,7 @@ out:
        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) |