mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] remove pfn in add_one_highpage_init
@ 2009-10-22  2:27 Minchan Kim
  2009-10-24  1:04 ` [tip:branch?] x86: Remove pfn in add_one_highpage_init() tip-bot for Minchan Kim
  0 siblings, 1 reply; 2+ messages in thread
From: Minchan Kim @ 2009-10-22  2:27 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Yinghai Lu, lkml


commit cc9f7a0ccf000d4db5fbdc7b0ae48eefea102f69 changed add_one_highpage_init.
We don't use pfn any more. 
Let's remove unnecessary argument.

This patch doesn't chage function behavior.
This patch is based on v2.6.32-rc5.

Signed-off-by: Minchan Kim <minchan.kim@gmail.com>

diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c
index 30938c1..d70269c 100644
--- a/arch/x86/mm/init_32.c
+++ b/arch/x86/mm/init_32.c
@@ -412,7 +412,7 @@ static void __init permanent_kmaps_init(pgd_t *pgd_base)
 	pkmap_page_table = pte;
 }

-static void __init add_one_highpage_init(struct page *page, int pfn)
+static void __init add_one_highpage_init(struct page *page)
 {
 	ClearPageReserved(page);
 	init_page_count(page);
@@ -445,7 +445,7 @@ static int __init add_highpages_work_fn(unsigned long start_pfn,
 		if (!pfn_valid(node_pfn))
 			continue;
 		page = pfn_to_page(node_pfn);
-		add_one_highpage_init(page, node_pfn);
+		add_one_highpage_init(page);
 	}

 	return 0;



-- 
Kind regards,
Minchan Kim

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-24  1:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-22  2:27 [PATCH] remove pfn in add_one_highpage_init Minchan Kim
2009-10-24  1:04 ` [tip:branch?] x86: Remove pfn in add_one_highpage_init() tip-bot for Minchan Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome