+ mm-remove-unused-arg-from-memblock_next_valid_pfn.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm: remove unused arg from memblock_next_valid_pfn()
has been added to the -mm tree.  Its filename is
     mm-remove-unused-arg-from-memblock_next_valid_pfn.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mm-remove-unused-arg-from-memblock_next_valid_pfn.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-remove-unused-arg-from-memblock_next_valid_pfn.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@xxxxxxxxxxxxxxxxxxxx>
Subject: mm: remove unused arg from memblock_next_valid_pfn()

864b75f9d6b01 ("mm/page_alloc: fix memmap_init_zone pageblock alignment")
made the second arg to memblock_next_valid_pfn() obsolete, but it remained
in place due to a merge mess.  Fix.

Fixes: 864b75f9d6b01 ("mm/page_alloc: fix memmap_init_zone pageblock alignment")
Cc: Daniel Vacek <neelx@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/memblock.h |    2 +-
 mm/memblock.c            |    3 +--
 mm/page_alloc.c          |    2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff -puN mm/memblock.c~mm-remove-unused-arg-from-memblock_next_valid_pfn mm/memblock.c
--- a/mm/memblock.c~mm-remove-unused-arg-from-memblock_next_valid_pfn
+++ a/mm/memblock.c
@@ -1101,8 +1101,7 @@ void __init_memblock __next_mem_pfn_rang
 		*out_nid = r->nid;
 }
 
-unsigned long __init_memblock memblock_next_valid_pfn(unsigned long pfn,
-						      unsigned long max_pfn)
+unsigned long __init_memblock memblock_next_valid_pfn(unsigned long pfn)
 {
 	struct memblock_type *type = &memblock.memory;
 	unsigned int right = type->cnt;
diff -puN mm/page_alloc.c~mm-remove-unused-arg-from-memblock_next_valid_pfn mm/page_alloc.c
--- a/mm/page_alloc.c~mm-remove-unused-arg-from-memblock_next_valid_pfn
+++ a/mm/page_alloc.c
@@ -5365,7 +5365,7 @@ void __meminit memmap_init_zone(unsigned
 			 * the valid region but still depends on correct page
 			 * metadata.
 			 */
-			pfn = (memblock_next_valid_pfn(pfn, end_pfn) &
+			pfn = (memblock_next_valid_pfn(pfn) &
 					~(pageblock_nr_pages-1)) - 1;
 #endif
 			continue;
diff -puN include/linux/memblock.h~mm-remove-unused-arg-from-memblock_next_valid_pfn include/linux/memblock.h
--- a/include/linux/memblock.h~mm-remove-unused-arg-from-memblock_next_valid_pfn
+++ a/include/linux/memblock.h
@@ -187,7 +187,7 @@ int memblock_search_pfn_nid(unsigned lon
 			    unsigned long  *end_pfn);
 void __next_mem_pfn_range(int *idx, int nid, unsigned long *out_start_pfn,
 			  unsigned long *out_end_pfn, int *out_nid);
-unsigned long memblock_next_valid_pfn(unsigned long pfn, unsigned long max_pfn);
+unsigned long memblock_next_valid_pfn(unsigned long pfn);
 
 /**
  * for_each_mem_pfn_range - early memory pfn range iterator
_

Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are

i-need-old-gcc.patch
mm-mempolicy-avoid-use-uninitialized-preferred_node-fix.patch
hugetlbfs-check-for-pgoff-value-overflow-v3-fix.patch
mm-remove-unused-arg-from-memblock_next_valid_pfn.patch
arm-arch-arm-include-asm-pageh-needs-personalityh.patch
ocfs2-without-quota-support-try-to-avoid-calling-quota-recovery-checkpatch-fixes.patch
mm.patch
mm-initialize-pages-on-demand-during-boot-fix-4-fix.patch
mm-initialize-pages-on-demand-during-boot-v5-fix.patch
mm-page_alloc-skip-over-regions-of-invalid-pfns-on-uma-fix.patch
direct-io-minor-cleanups-in-do_blockdev_direct_io-fix.patch
mm-fix-races-between-swapoff-and-flush-dcache-fix.patch
list_lru-prefetch-neighboring-list-entries-before-acquiring-lock-fix.patch
mm-oom-cgroup-aware-oom-killer-fix.patch
mm-oom-docs-describe-the-cgroup-aware-oom-killer-fix-2-fix.patch
proc-add-seq_put_decimal_ull_width-to-speed-up-proc-pid-smaps-fix.patch
ipc-clamp-semmni-to-the-real-ipcmni-limit-fix.patch
linux-next-rejects.patch
linux-next-fixup.patch
linux-next-git-rejects.patch
fs-fsnotify-account-fsnotify-metadata-to-kmemcg-fix.patch
headers-untangle-kmemleakh-from-mmh-fix.patch
kernel-forkc-export-kernel_thread-to-modules.patch
slab-leaks3-default-y.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux