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

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>
This commit is contained in:
Konstantin Khlebnikov 2012-03-21 02:56:33 -03:00 коммит произвёл Mauro Carvalho Chehab
Родитель 72da1f20af
Коммит 7cfce77d77
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;

Просмотреть файл

@ -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) |