Tag: 437b29d1159af16b54b6571efb92c6e048d03c15

staging: rdma: hfi1: file_ops: Replace ALIGN with PAGE_ALIGN

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> mm.h contains a helper function PAGE_ALIGN which aligns the pointer to the page boundary instead of using ALIGN(expression, PAGE_SIZE) This change was made with the help of the following Coccinelle semantic patch: // @@ expression e; symbol PAGE_SIZE; @@ ( – ALIGN(e, PAGE_SIZE) + PAGE_ALIGN(e) | – IS_ALIGNED(e, PAGE_SIZE) + …

Continue reading