]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mm: Use PAGE_ALIGNED(x) instead of IS_ALIGNED(x, PAGE_SIZE)
authorFanjun Kong <bh1scw@gmail.com>
Thu, 26 May 2022 14:20:39 +0000 (22:20 +0800)
committerIngo Molnar <mingo@kernel.org>
Fri, 27 May 2022 10:19:56 +0000 (12:19 +0200)
commit3a1e653a69ec0904cedb13e3a248e81feb805c12
tree3181fe609026bf8298704454f144f101b9b01e71
parente6578f34b5f8aeb99ca67ee1e00cffc7b6d8282d
x86/mm: Use PAGE_ALIGNED(x) instead of IS_ALIGNED(x, PAGE_SIZE)

The <linux/mm.h> already provides the PAGE_ALIGNED() macro. Let's
use this macro instead of IS_ALIGNED() and passing PAGE_SIZE directly.

No change in functionality.

[ mingo: Tweak changelog. ]

Signed-off-by: Fanjun Kong <bh1scw@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20220526142038.1582839-1-bh1scw@gmail.com
arch/x86/mm/init_64.c