* [PATCH] mm: track-active-portions-of-a-section-at-boot-fix fix
@ 2017-01-23 12:14 Arnd Bergmann
0 siblings, 0 replies; only message in thread
From: Arnd Bergmann @ 2017-01-23 12:14 UTC (permalink / raw)
To: Andrew Morton; +Cc: Dan Williams, Arnd Bergmann, linux-mm, linux-kernel
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@arndb.de>
---
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
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-23 12:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-23 12:14 [PATCH] mm: track-active-portions-of-a-section-at-boot-fix fix Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox