]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rdma: hfi1: Use offset_in_page macro
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Sat, 20 Feb 2016 13:38:02 +0000 (19:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 22:54:05 +0000 (14:54 -0800)
commit2f9a97913c343c64bcbef697f9cc688d4a8c5bad
treef8ae8014378aaa7598d95bbe8474bf84136e3a92
parente44911410c55d75b7e2b2bdc91ce24cdd5941470
staging: rdma: hfi1: Use offset_in_page macro

Use offset_in_page macro instead of (var & ~PAGE_MASK)

The Coccinelle semantic patch used to make this change is as follows:
// <smpl>
@@
unsigned long p;
@@
- p & ~PAGE_MASK
+ offset_in_page(p)
// </smpl>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/user_sdma.c