mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 15:58:47 +00:00
mm/vmalloc: use PAGE_ALIGNED() to check PAGE_SIZE alignment
We have 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> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
e0775d10f1
commit
a1c0b1a074
@ -1085,7 +1085,7 @@ void vm_unmap_ram(const void *mem, unsigned int count)
|
|||||||
BUG_ON(!addr);
|
BUG_ON(!addr);
|
||||||
BUG_ON(addr < VMALLOC_START);
|
BUG_ON(addr < VMALLOC_START);
|
||||||
BUG_ON(addr > VMALLOC_END);
|
BUG_ON(addr > VMALLOC_END);
|
||||||
BUG_ON(!IS_ALIGNED(addr, PAGE_SIZE));
|
BUG_ON(!PAGE_ALIGNED(addr));
|
||||||
|
|
||||||
debug_check_no_locks_freed(mem, size);
|
debug_check_no_locks_freed(mem, size);
|
||||||
vmap_debug_free_range(addr, addr+size);
|
vmap_debug_free_range(addr, addr+size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user