VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Mike Rapoport <rppt@linux.ibm.com> 2020-06-03 15:57:06 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2020-06-03 20:09:43 -0700 commit: fa3354e4ea39e97af906c05551a36396541d70b4 parent: 3f08a302f533f74ad2e909e7a61274aa7eebc0ab
Commit Summary:
mm: free_area_init: use maximal zone PFNs rather than zone sizes
Diffstat:
1 file changed, 3 insertions, 3 deletions
diff --git a/arch/h8300/mm/init.c b/arch/h8300/mm/init.c
index 1eab16b1a0bc..27a0020e3771 100644
--- a/arch/h8300/mm/init.c
+++ b/arch/h8300/mm/init.c
@@ -83,10 +83,10 @@ void __init paging_init(void)
 		 start_mem, end_mem);
 
 	{
-		unsigned long zones_size[MAX_NR_ZONES] = {0, };
+		unsigned long max_zone_pfn[MAX_NR_ZONES] = {0, };
 
-		zones_size[ZONE_NORMAL] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT;
-		free_area_init(zones_size);
+		max_zone_pfn[ZONE_NORMAL] = end_mem >> PAGE_SHIFT;
+		free_area_init(max_zone_pfn);
 	}
 }