summaryrefslogtreecommitdiff
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorLaura Abbott <lauraa@codeaurora.org>2013-06-28 12:52:17 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:03:23 -0700
commita7470fb452691c07f79cbd431e72f0315ab25e1d (patch)
tree6c01b443a46d6a2e828d9836036eac0bb5091dde /mm/page_alloc.c
parent753315050c99999e6cd6d9df0e78070007582738 (diff)
mm: Remove __init annotations from free_bootmem_late
free_bootmem_late is currently set up to only be used in init functions. Some clients need to use this function past initcalls. The functions themselves have no restrictions on being used later minus the __init annotations so remove the annotation. Change-Id: I7c7e15cf2780a8843ebb4610da5b633c9abb0b3d Signed-off-by: Laura Abbott <lauraa@codeaurora.org> [abhimany@codeaurora.org: resolve minor conflict and remove __init from nobootmem.c] Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 89ef8347900c..0b9e7c1513bf 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1015,8 +1015,7 @@ static void __free_pages_ok(struct page *page, unsigned int order)
local_irq_restore(flags);
}
-static void __init __free_pages_boot_core(struct page *page,
- unsigned long pfn, unsigned int order)
+static void __init __free_pages_boot_core(struct page *page, unsigned long pfn, unsigned int order)
{
unsigned int nr_pages = 1 << order;
struct page *p = page;
@@ -1088,7 +1087,7 @@ static inline bool __meminit meminit_pfn_in_nid(unsigned long pfn, int node,
#endif
-void __init __free_pages_bootmem(struct page *page, unsigned long pfn,
+void __free_pages_bootmem(struct page *page, unsigned long pfn,
unsigned int order)
{
if (early_page_uninitialised(pfn))