Tag: f53896608128f311b7c4982fa479ab7400be3164

staging: rdma: hfi1: driver: Replace IS_ALIGNED with PAGE_ALIGNED

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> mm.h contains a helper function PAGE_ALIGNED which tests whether an address is aligned to PAGE_SIZE instead of using IS_ALIGNED(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