From: Fabian Frederick Date: Fri, 8 Aug 2014 21:21:20 +0000 (-0700) Subject: fs/proc/kcore.c: use PAGE_ALIGN instead of ALIGN(PAGE_SIZE) X-Git-Tag: v3.17-rc1~73^2~136 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=108a8a11cb64981b03bcb78fd78d09a53967d14f;p=platform%2Fkernel%2Flinux-stable.git fs/proc/kcore.c: use PAGE_ALIGN instead of ALIGN(PAGE_SIZE) Use mm.h definition. Signed-off-by: Fabian Frederick Cc: Xishi Qiu Acked-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c index 39e6ef3..6df8d07 100644 --- a/fs/proc/kcore.c +++ b/fs/proc/kcore.c @@ -172,7 +172,7 @@ get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head) start = ((unsigned long)pfn_to_page(pfn)) & PAGE_MASK; end = ((unsigned long)pfn_to_page(pfn + nr_pages)) - 1; - end = ALIGN(end, PAGE_SIZE); + end = PAGE_ALIGN(end); /* overlap check (because we have to align page */ list_for_each_entry(tmp, head, list) { if (tmp->type != KCORE_VMEMMAP)