From: Stefan Wahren Date: Thu, 25 May 2017 22:26:18 +0000 (+0200) Subject: staging: vchiq_2835_arm: Use PAGE_MASK macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=244156ca90dceaec2bda8f9b664489d23a5b451f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: vchiq_2835_arm: Use PAGE_MASK macro Use the PAGE_MASK instead of open code it. Signed-off-by: Stefan Wahren Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c index eeeee1bf68b7..0159ca4407d8 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c @@ -474,7 +474,7 @@ create_pagelist(char __user *buf, size_t count, unsigned short type, } else { down_read(&task->mm->mmap_sem); actual_pages = get_user_pages( - (unsigned long)buf & ~(PAGE_SIZE - 1), + (unsigned long)buf & PAGE_MASK, num_pages, (type == PAGELIST_READ) ? FOLL_WRITE : 0, pages,