Skip to contentSkip to conversation

mm: track-active-portions-of-a-section-at-boot-fix fix

PATCH New Arnd Bergmann 1 participant 1 message Jan 23, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: track-active-portions-of-a-section-at-boot-fix fix

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")
---
 mm/sparse.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/sparse.c +2 -2
index 3e4458c8e0e9..4267d09b656b 100644
@@ -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;
Signature · 7 lines
2.9.0

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>