mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + mm-page_allocc-refactor-initialization-of-struct-page-for-holes-in-memory-layout-fix.patch added to -mm tree
@ 2021-02-26  0:09 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-02-26  0:09 UTC (permalink / raw)
  To: akpm, mm-commits, rppt


The patch titled
     Subject: mm-page_allocc-refactor-initialization-of-struct-page-for-holes-in-memory-layout-fix
has been added to the -mm tree.  Its filename is
     mm-page_allocc-refactor-initialization-of-struct-page-for-holes-in-memory-layout-fix.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/mm-page_allocc-refactor-initialization-of-struct-page-for-holes-in-memory-layout-fix.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/mm-page_allocc-refactor-initialization-of-struct-page-for-holes-in-memory-layout-fix.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: mm-page_allocc-refactor-initialization-of-struct-page-for-holes-in-memory-layout-fix

don't initialize static to zero, use %llu for u64

Cc: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/page_alloc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/mm/page_alloc.c~mm-page_allocc-refactor-initialization-of-struct-page-for-holes-in-memory-layout-fix
+++ a/mm/page_alloc.c
@@ -6315,7 +6315,7 @@ void __meminit __weak memmap_init_zone(s
 	unsigned long zone_start_pfn = zone->zone_start_pfn;
 	unsigned long zone_end_pfn = zone_start_pfn + zone->spanned_pages;
 	int i, nid = zone_to_nid(zone), zone_id = zone_idx(zone);
-	static unsigned long hole_pfn = 0;
+	static unsigned long hole_pfn;
 	unsigned long start_pfn, end_pfn;
 	u64 pgcnt = 0;
 
@@ -6348,7 +6348,7 @@ void __meminit __weak memmap_init_zone(s
 #endif
 
 	if (pgcnt)
-		pr_info("  %s zone: %lld pages in unavailable ranges\n",
+		pr_info("  %s zone: %llu pages in unavailable ranges\n",
 			zone->name, pgcnt);
 }
 
_

Patches currently in -mm which might be from akpm@linux-foundation.org are

mm-cma-allocate-cma-areas-bottom-up-fix-3-fix.patch
mm-memory_hotplug-prevalidate-the-address-range-being-added-with-platform-fix.patch
bdi-use-might_alloc-fix.patch
kfence-kasan-make-kfence-compatible-with-kasan-fix.patch
lib-stackdepot-add-support-to-disable-stack-depot-fix.patch
seq_file-document-how-per-entry-resources-are-managed-fix.patch
initramfs-panic-with-memory-information-fix.patch
mm-page_allocc-refactor-initialization-of-struct-page-for-holes-in-memory-layout-fix.patch
mm.patch
mm-vmstat-fix-proc-sys-vm-stat_refresh-generating-false-warnings-fix-2.patch
linux-next-rejects.patch
linux-next-git-rejects.patch
kernel-forkc-export-kernel_thread-to-modules.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-26  0:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-26  0:09 + mm-page_allocc-refactor-initialization-of-struct-page-for-holes-in-memory-layout-fix.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).