Skip to contentSkip to conversation

+ mm-bootmemc-remove-unused-local-map.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Oct 16, 2013 Memory management

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + mm-bootmemc-remove-unused-local-map.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Wed, 16 Oct 2013 13:15:57 -0700

The patch titled
Subject: mm/bootmem.c: remove unused local `map'
has been added to the -mm tree. Its filename is
mm-bootmemc-remove-unused-local-map.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-bootmemc-remove-unused-local-map.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-bootmemc-remove-unused-local-map.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/SubmitChecklist when testing your code ***

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

------------------------------------------------------
From: Daeseok Youn <[email protected]>
Subject: mm/bootmem.c: remove unused local `map'

---

 mm/bootmem.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
mm/bootmem.c renamed from mm/bootmem.c~mm-bootmemc-remove-unused-local-map +3 -3
diff -puN mm/bootmem.c~mm-bootmemc-remove-unused-local-map mm/bootmem.c
@@ -172,11 +172,12 @@ void __init free_bootmem_late(unsigned l
 static unsigned long __init free_all_bootmem_core(bootmem_data_t *bdata)
 {
 	struct page *page;
-	unsigned long start, end, pages, count = 0;
+	unsigned long *map, start, end, pages, count = 0;
 
 	if (!bdata->node_bootmem_map)
 		return 0;
 
+	map = bdata->node_bootmem_map;
 	start = bdata->node_min_pfn;
 	end = bdata->node_low_pfn;
 
@@ -184,10 +185,9 @@ static unsigned long __init free_all_boo
 		bdata - bootmem_node_data, start, end);
 
 	while (start < end) {
-		unsigned long *map, idx, vec;
+		unsigned long idx, vec;
 		unsigned shift;
 
-		map = bdata->node_bootmem_map;
 		idx = start - bdata->node_min_pfn;
 		shift = idx & (BITS_PER_LONG - 1);
 		/*

_

Patches currently in -mm which might be from [email protected] are

mm-bootmemc-remove-unused-local-map.patch