Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1356368 > unrolled thread
| Started by | Shawn Lin <shawn.lin@rock-chips.com> |
|---|---|
| First post | 2016-03-12 09:10 +0100 |
| Last post | 2016-03-12 09:10 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] mm/vmalloc: reuse PAGE_ALIGNED to check PAGE_SIZE aligned Shawn Lin <shawn.lin@rock-chips.com> - 2016-03-12 09:10 +0100
| From | Shawn Lin <shawn.lin@rock-chips.com> |
|---|---|
| Date | 2016-03-12 09:10 +0100 |
| Subject | [PATCH] mm/vmalloc: reuse PAGE_ALIGNED to check PAGE_SIZE aligned |
| Message-ID | <rbMMx-31O-1@gated-at.bofh.it> |
we have defined PAGE_ALIGNED in mm.h, so let's use it instead of IS_ALIGNED for checking PAGE_SIZE aligned case. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> --- mm/vmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index e86c24e..ae7d20b 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -1085,7 +1085,7 @@ void vm_unmap_ram(const void *mem, unsigned int count) BUG_ON(!addr); BUG_ON(addr < VMALLOC_START); BUG_ON(addr > VMALLOC_END); - BUG_ON(!IS_ALIGNED(addr, PAGE_SIZE)); + BUG_ON(!PAGE_ALIGNED(addr)); debug_check_no_locks_freed(mem, size); vmap_debug_free_range(addr, addr+size); -- 2.3.7
Back to top | Article view | linux.kernel
csiph-web