public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] page_alloc.c: remove argument to pageblock_default_order
@ 2012-05-03 17:15 rajman mekaco
  2012-05-03 23:37 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: rajman mekaco @ 2012-05-03 17:15 UTC (permalink / raw)
  To: Andrew Morton, Mel Gorman, KAMEZAWA Hiroyuki, Tejun Heo,
	Minchan Kim
  Cc: linux-mm, linux-kernel, rajman mekaco

When CONFIG_HUGETLB_PAGE_SIZE_VARIABLE is not defined, then
pageblock_default_order has an argument to it.

However, free_area_init_core will call it without any argument
anyway.

Remove the argument to pageblock_default_order when
CONFIG_HUGETLB_PAGE_SIZE_VARIABLE is not defined.

Signed-off-by: rajman mekaco <rajman.mekaco@gmail.com>
---
 mm/page_alloc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index a712fb9..4b95412 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -4274,7 +4274,7 @@ static inline void __init set_pageblock_order(unsigned int order)
  * at compile-time. See include/linux/pageblock-flags.h for the values of
  * pageblock_order based on the kernel config
  */
-static inline int pageblock_default_order(unsigned int order)
+static inline int pageblock_default_order(void)
 {
 	return MAX_ORDER-1;
 }
-- 
1.7.5.4


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

end of thread, other threads:[~2012-05-10 13:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-03 17:15 [PATCH 1/1] page_alloc.c: remove argument to pageblock_default_order rajman mekaco
2012-05-03 23:37 ` Andrew Morton
2012-05-10 13:34   ` Mel Gorman

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