]> 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>
Thu, 27 Jun 2013 23:51:21 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:26 +0000 (16:37 +1000)
commit4193079bc8cb8ebb1808e3681ccd347a6666bd76
tree72d58214853359ed6ba80300f7119d0b696fc3e9
parent9e46a8c3c13b030b63c4f4efb4856e143886a8ac
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