diff options
author | Wei Yang <richard.weiyang@gmail.com> | 2024-05-07 07:58:32 +0000 |
---|---|---|
committer | Mike Rapoport (IBM) <rppt@kernel.org> | 2024-06-05 10:22:22 +0300 |
commit | b73f6b98bbd0b4c1fdcebc0c5b926349455035bf (patch) | |
tree | 630141cc011f2e40191a76e8839840808b216fbd /tools/include | |
parent | 1eb0a28d039a479bb4adec0320592caf5bd5175b (diff) |
mm/memblock: use PAGE_ALIGN_DOWN to get pgend in free_memmap
Leverage the macro PAGE_ALIGN_DOWN to get pgend.
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Link: https://lore.kernel.org/r/20240507075833.6346-7-richard.weiyang@gmail.com
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Diffstat (limited to 'tools/include')
-rw-r--r-- | tools/include/linux/mm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/include/linux/mm.h b/tools/include/linux/mm.h index dc0fc7125bc3..cad4f2927983 100644 --- a/tools/include/linux/mm.h +++ b/tools/include/linux/mm.h @@ -12,6 +12,7 @@ #define PHYS_ADDR_MAX (~(phys_addr_t)0) #define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE) +#define PAGE_ALIGN_DOWN(addr) ALIGN_DOWN(addr, PAGE_SIZE) #define __va(x) ((void *)((unsigned long)(x))) #define __pa(x) ((unsigned long)(x)) |