]> git.karo-electronics.de Git - karo-tx-linux.git/commit
uio: use vma_pages() to replace (vm_end - vm_start) >> PAGE_SHIFT
authorLibin <huawei.libin@huawei.com>
Wed, 19 Jun 2013 00:05:52 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:56 +0000 (17:12 +1000)
commit7b22f771efdab89396bbe56de4ccd32e4b4e8d7b
tree4ea200919ef3f356d41d0bd00173192184bb420f
parentb8ed09b980fed951d06bc9fef0e63dd5943c448c
uio: use vma_pages() to replace (vm_end - vm_start) >> PAGE_SHIFT

(*->vm_end - *->vm_start) >> PAGE_SHIFT operation is implemented
as a inline funcion vma_pages() in linux/mm.h, so using it.

Signed-off-by: Libin <huawei.libin@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/uio/uio.c