All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20130319055042.GD8858@lge.com>

diff --git a/a/1.txt b/N1/1.txt
index a200504..77f799f 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -51,3 +51,49 @@ Sorry, this patch makes build warning.
 Below is fixed version.
 
 -------------------->&------------------------
+>From 05f4a768dd5c514113916908f4710f8863704ed9 Mon Sep 17 00:00:00 2001
+From: Joonsoo Kim <iamjoonsoo.kim@lge.com>
+Date: Mon, 18 Mar 2013 14:17:57 +0900
+Subject: [PATCH] mm, nobootmem: clean-up of free_low_memory_core_early()
+
+Remove unused argument and make function static,
+because there is no user outside of nobootmem.c
+
+Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
+
+diff --git a/include/linux/bootmem.h b/include/linux/bootmem.h
+index cdc3bab..5f0b0e1 100644
+--- a/include/linux/bootmem.h
++++ b/include/linux/bootmem.h
+@@ -44,7 +44,6 @@ extern unsigned long init_bootmem_node(pg_data_t *pgdat,
+ 				       unsigned long endpfn);
+ extern unsigned long init_bootmem(unsigned long addr, unsigned long memend);
+ 
+-extern unsigned long free_low_memory_core_early(int nodeid);
+ extern unsigned long free_all_bootmem_node(pg_data_t *pgdat);
+ extern unsigned long free_all_bootmem(void);
+ 
+diff --git a/mm/nobootmem.c b/mm/nobootmem.c
+index 4711e91..9c38698 100644
+--- a/mm/nobootmem.c
++++ b/mm/nobootmem.c
+@@ -120,7 +120,7 @@ static unsigned long __init __free_memory_core(phys_addr_t start,
+ 	return end_pfn - start_pfn;
+ }
+ 
+-unsigned long __init free_low_memory_core_early(int nodeid)
++static unsigned long __init free_low_memory_core_early(void)
+ {
+ 	unsigned long count = 0;
+ 	phys_addr_t start, end, size;
+@@ -170,7 +170,7 @@ unsigned long __init free_all_bootmem(void)
+ 	 *  because in some case like Node0 doesn't have RAM installed
+ 	 *  low ram will be on Node1
+ 	 */
+-	return free_low_memory_core_early(MAX_NUMNODES);
++	return free_low_memory_core_early();
+ }
+ 
+ /**
+-- 
+1.7.9.5
diff --git a/a/content_digest b/N1/content_digest
index 0502325..9b0d666 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -63,6 +63,52 @@
  "Sorry, this patch makes build warning.\n"
  "Below is fixed version.\n"
  "\n"
- -------------------->&------------------------
+ "-------------------->&------------------------\n"
+ ">From 05f4a768dd5c514113916908f4710f8863704ed9 Mon Sep 17 00:00:00 2001\n"
+ "From: Joonsoo Kim <iamjoonsoo.kim@lge.com>\n"
+ "Date: Mon, 18 Mar 2013 14:17:57 +0900\n"
+ "Subject: [PATCH] mm, nobootmem: clean-up of free_low_memory_core_early()\n"
+ "\n"
+ "Remove unused argument and make function static,\n"
+ "because there is no user outside of nobootmem.c\n"
+ "\n"
+ "Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>\n"
+ "\n"
+ "diff --git a/include/linux/bootmem.h b/include/linux/bootmem.h\n"
+ "index cdc3bab..5f0b0e1 100644\n"
+ "--- a/include/linux/bootmem.h\n"
+ "+++ b/include/linux/bootmem.h\n"
+ "@@ -44,7 +44,6 @@ extern unsigned long init_bootmem_node(pg_data_t *pgdat,\n"
+ " \t\t\t\t       unsigned long endpfn);\n"
+ " extern unsigned long init_bootmem(unsigned long addr, unsigned long memend);\n"
+ " \n"
+ "-extern unsigned long free_low_memory_core_early(int nodeid);\n"
+ " extern unsigned long free_all_bootmem_node(pg_data_t *pgdat);\n"
+ " extern unsigned long free_all_bootmem(void);\n"
+ " \n"
+ "diff --git a/mm/nobootmem.c b/mm/nobootmem.c\n"
+ "index 4711e91..9c38698 100644\n"
+ "--- a/mm/nobootmem.c\n"
+ "+++ b/mm/nobootmem.c\n"
+ "@@ -120,7 +120,7 @@ static unsigned long __init __free_memory_core(phys_addr_t start,\n"
+ " \treturn end_pfn - start_pfn;\n"
+ " }\n"
+ " \n"
+ "-unsigned long __init free_low_memory_core_early(int nodeid)\n"
+ "+static unsigned long __init free_low_memory_core_early(void)\n"
+ " {\n"
+ " \tunsigned long count = 0;\n"
+ " \tphys_addr_t start, end, size;\n"
+ "@@ -170,7 +170,7 @@ unsigned long __init free_all_bootmem(void)\n"
+ " \t *  because in some case like Node0 doesn't have RAM installed\n"
+ " \t *  low ram will be on Node1\n"
+ " \t */\n"
+ "-\treturn free_low_memory_core_early(MAX_NUMNODES);\n"
+ "+\treturn free_low_memory_core_early();\n"
+ " }\n"
+ " \n"
+ " /**\n"
+ "-- \n"
+ 1.7.9.5
 
-c8f400383e6832b41050e5785bf4080f92f45ac75b8ee4d7cfdab145d24c2ce0
+95f01b52331b1d2d5e64415f38f8cd01e7114e1b3b5a4139537c780c92e1bc1a

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.