diff options
author | 2016-03-04 22:40:17 +0530 | |
---|---|---|
committer | 2016-03-11 22:09:09 -0800 | |
commit | f53896608128f311b7c4982fa479ab7400be3164 (patch) | |
tree | 4aadf4914580f1200bbb6df02ed3ca862604efb1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | staging: rdma: hfi1: Replace ALIGN with PAGE_ALIGN (diff) | |
download | wireguard-linux-f53896608128f311b7c4982fa479ab7400be3164.tar.xz wireguard-linux-f53896608128f311b7c4982fa479ab7400be3164.zip |
staging: rdma: hfi1: driver: Replace IS_ALIGNED with PAGE_ALIGNED
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:
//<smpl>
@@
expression e;
symbol PAGE_SIZE;
@@
(
- ALIGN(e, PAGE_SIZE)
+ PAGE_ALIGN(e)
|
- IS_ALIGNED(e, PAGE_SIZE)
+ PAGE_ALIGNED(e)
)
//</smpl>
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions