Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f934bc98 authored by Chen Gang's avatar Chen Gang Committed by Laura Abbott
Browse files

mm/page_alloc.c: use '__paginginit' instead of '__init'



set_pageblock_order() may be called when memory hotplug, so need use
'__paginginit' instead of '__init'.

The related warning:

  The function __meminit .free_area_init_node() references
  a function __init .set_pageblock_order().
  If .set_pageblock_order is only used by .free_area_init_node then
  annotate .set_pageblock_order with a matching annotation.

Change-Id: I982ee702a2ff92670cf386cabcc47fdfd3de8180
Signed-off-by: default avatarChen Gang <gang.chen@asianux.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Git-commit: 15ca220e1a63af06e000691e4ae1beaba5430c32
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
parent 70d51296
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4638,7 +4638,7 @@ static inline void setup_usemap(struct pglist_data *pgdat, struct zone *zone,
#ifdef CONFIG_HUGETLB_PAGE_SIZE_VARIABLE

/* Initialise the number of pages represented by NR_PAGEBLOCK_BITS */
void __init set_pageblock_order(void)
void __paginginit set_pageblock_order(void)
{
	unsigned int order;

@@ -4666,7 +4666,7 @@ void __init set_pageblock_order(void)
 * include/linux/pageblock-flags.h for the values of pageblock_order based on
 * the kernel config
 */
void __init set_pageblock_order(void)
void __paginginit set_pageblock_order(void)
{
}