Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Use offset_in_page macro instead of (var & ~PAGE_MASK) The Coccinelle semantic patch used to make this change is as follows: // @@ unsigned long p; @@ – p & ~PAGE_MASK + offset_in_page(p) // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman — drivers/staging/rdma/hfi1/user_sdma.c | 4 ++– 1 file changed, 2 insertions(+), …