[PATCH] mm: track-active-portions-of-a-section-at-boot-fix fix
From: Arnd Bergmann
Date: Mon Jan 23 2017 - 07:22:16 EST
A bugfix introduced a new warning as it marked a function as __init
that is called by both __init and non-__init functions:
WARNING: vmlinux.o(.text.unlikely+0x1b26): Section mismatch in reference from the function section_deactivate() to the function .init.text:section_active_mask()
WARNING: vmlinux.o(.meminit.text+0x1ce0): Section mismatch in reference from the function sparse_add_section() to the function .init.text:section_active_mask()
This removes the annotation again.
Fixes: mmotm ("mm-track-active-portions-of-a-section-at-boot-fix")
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
---
mm/sparse.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/sparse.c b/mm/sparse.c
index 3e4458c8e0e9..4267d09b656b 100644
--- a/mm/sparse.c
+++ b/mm/sparse.c
@@ -189,8 +189,8 @@ static int __init section_active_index(phys_addr_t phys)
return (phys & ~(PA_SECTION_MASK)) / SECTION_ACTIVE_SIZE;
}
-static unsigned long __init section_active_mask(unsigned long pfn,
- unsigned long nr_pages)
+static unsigned long section_active_mask(unsigned long pfn,
+ unsigned long nr_pages)
{
int idx_start, idx_size;
phys_addr_t start, size;
--
2.9.0