+ make-__memblock_free_early-a-wrapper-of-memblock_free-rather-dup-it.patch added to -mm tree

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

 



The patch titled
     Subject: mm/page_alloc.c: deduplicate __memblock_free_early() and memblock_free()
has been added to the -mm tree.  Its filename is
     make-__memblock_free_early-a-wrapper-of-memblock_free-rather-dup-it.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/make-__memblock_free_early-a-wrapper-of-memblock_free-rather-dup-it.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/make-__memblock_free_early-a-wrapper-of-memblock_free-rather-dup-it.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: Wentao Wang <witallwang@xxxxxxxxx>
Subject: mm/page_alloc.c: deduplicate __memblock_free_early() and memblock_free()

Link: http://lkml.kernel.org/r/C8ECE1B7A767434691FEEFA3A01765D72AFB8E78@xxxxxxxxxxxxxxxxxxxxxx
Signed-off-by: Wentao Wang <witallwang@xxxxxxxxx>
Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---


--- a/mm/memblock.c~make-__memblock_free_early-a-wrapper-of-memblock_free-rather-dup-it
+++ a/mm/memblock.c
@@ -1609,12 +1609,7 @@ void * __init memblock_alloc_try_nid(
  */
 void __init __memblock_free_early(phys_addr_t base, phys_addr_t size)
 {
-	phys_addr_t end = base + size - 1;
-
-	memblock_dbg("%s: [%pa-%pa] %pF\n",
-		     __func__, &base, &end, (void *)_RET_IP_);
-	kmemleak_free_part_phys(base, size);
-	memblock_remove_range(&memblock.reserved, base, size);
+	memblock_free(base, size);
 }
 
 /**
_

Patches currently in -mm which might be from witallwang@xxxxxxxxx are

make-__memblock_free_early-a-wrapper-of-memblock_free-rather-dup-it.patch




[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